created update.nix

This commit is contained in:
Richie Cahill 2024-04-19 17:59:10 -04:00
parent bf2fe7396d
commit 825956dc9c
4 changed files with 19 additions and 29 deletions

15
modules/update.nix Normal file
View File

@ -0,0 +1,15 @@
{ lib, ... }:
{ services.autopull = {
enable = lib.mkDefault true;
ssh-key = lib.mkDefau "/root/.ssh/id_ed25519_ghdeploy";
path = lib.mkDefau /root/dotfiles;
};
system.autoUpgrade = {
enable = lib.mkDefault true;
flags = [ "--accept-flake-config" ];
randomizedDelaySec = "1h";
persistent = true;
flake = "github:RAD-Development/nix-dotfiles";
};
}

View File

@ -1,32 +1,4 @@
{ lib, ... }:
{ {
security.auditd.enable = true; security.auditd.enable = true;
boot.default = true;
boot = {
default = true;
kernel.sysctl = {
"net.ipv6.conf.ens3.accept_ra" = 1;
};
};
networking = {
firewall = {
enable = lib.mkDefault true;
allowedTCPPorts = [ ];
};
};
services.autopull = {
enable = true;
ssh-key = "/root/.ssh/id_ed25519_ghdeploy";
path = /root/dotfiles;
};
system.autoUpgrade = {
enable = true;
flags = [ "--accept-flake-config" ];
randomizedDelaySec = "1h";
persistent = true;
flake = "github:RAD-Development/nix-dotfiles";
};
} }

View File

@ -57,6 +57,7 @@
#systemd.services.spotifyd.serviceConfig = systemd.services.spotifyd. #systemd.services.spotifyd.serviceConfig = systemd.services.spotifyd.
}; };
system.autoUpgrade.enable = false;
system.stateVersion = "24.05"; system.stateVersion = "24.05";
sops = { sops = {

View File

@ -19,6 +19,7 @@
sound.enable = true; sound.enable = true;
services = { services = {
autopull.enable = false;
displayManager.sddm.enable = true; displayManager.sddm.enable = true;
@ -91,5 +92,6 @@
}; };
}; };
system.autoUpgrade.enable = false;
system.stateVersion = "23.11"; system.stateVersion = "23.11";
} }