working on fixing

This commit is contained in:
Bryan Ramos 2023-06-06 09:29:16 -04:00
parent 164c765a83
commit 4dab7a6a37
10 changed files with 67 additions and 34 deletions

View file

@ -53,7 +53,7 @@
};
# Virtualisation
nix.system-features = "kvm";
nix.settings.system-features = "kvm";
environment.systemPackages = pkgs.virt-manager;
virtualisation.libvirtd = {

View file

@ -1,4 +1,4 @@
{ pkgs, lib, desktop, me, ... }:
{ pkgs, lib, ... }:
{ system.stateVersion = "22.11";
environment.defaultPackages = [ ];
@ -8,10 +8,12 @@
extraOptions = "experimental-features = nix-command flakes";
settings = {
auto-optimise-store = true;
trusted-users = [ "bryan" ];
};
gc = {
automatics = true;
options = "weekly";
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
};
environment.systemPackages = with pkgs; [ nix-init pavucontrol ];
@ -30,10 +32,10 @@
};
# Users
users.users.${me} = {
users.users.bryan = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "home-manager" "input" "video" "audio" "kvm" "libvirtd" "docker" ];
openssh.authorizedKeys.keyFiles = [ /etc/ssh/authorized_keys ];
openssh.authorizedKeys.keyFiles = [ /home/bryan/.ssh/authorized_keys ];
};
security.sudo = {
@ -48,7 +50,7 @@
cron = {
enable = true;
systemCronJobs = [
"0 0 * * * ${me} /home/${me}/Documents/scripts/lnbackup_script.sh"
"0 0 * * * bryan /home/bryan/Documents/scripts/lnbackup_script.sh"
];
};
};
@ -77,7 +79,7 @@
# Networking
networking = {
hostName = desktop;
hostName = "socratesV2";
useDHCP = lib.mkDefault true;
networkmanager.enable = true;
firewall = {
@ -89,6 +91,10 @@
services.openssh = {
enable = true;
startWhenNeeded = true;
settings.PasswordAuthentication = false;
settings = {
permitRootLogin = false;
X11Forwarding = true;
PasswordAuthentication = false;
};
};
}