From 825956dc9cabd43794a49dd2bfe68c17366b5c2a Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Fri, 19 Apr 2024 17:59:10 -0400 Subject: [PATCH] created update.nix --- modules/update.nix | 15 ++++++++++ systems/configuration.nix | 30 +------------------ .../systems/artemision/configuration.nix | 1 + .../rhapsody-in-green/configuration.nix | 2 ++ 4 files changed, 19 insertions(+), 29 deletions(-) create mode 100644 modules/update.nix diff --git a/modules/update.nix b/modules/update.nix new file mode 100644 index 0000000..7cb5a3d --- /dev/null +++ b/modules/update.nix @@ -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"; + }; +} diff --git a/systems/configuration.nix b/systems/configuration.nix index b6f47c1..a07a654 100644 --- a/systems/configuration.nix +++ b/systems/configuration.nix @@ -1,32 +1,4 @@ -{ lib, ... }: { security.auditd.enable = 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"; - }; + boot.default = true; } diff --git a/users/alice/systems/artemision/configuration.nix b/users/alice/systems/artemision/configuration.nix index 6d09c1b..0c2a173 100644 --- a/users/alice/systems/artemision/configuration.nix +++ b/users/alice/systems/artemision/configuration.nix @@ -57,6 +57,7 @@ #systemd.services.spotifyd.serviceConfig = systemd.services.spotifyd. }; + system.autoUpgrade.enable = false; system.stateVersion = "24.05"; sops = { diff --git a/users/richie/systems/rhapsody-in-green/configuration.nix b/users/richie/systems/rhapsody-in-green/configuration.nix index 0e29b66..142255c 100644 --- a/users/richie/systems/rhapsody-in-green/configuration.nix +++ b/users/richie/systems/rhapsody-in-green/configuration.nix @@ -19,6 +19,7 @@ sound.enable = true; services = { + autopull.enable = false; displayManager.sddm.enable = true; @@ -91,5 +92,6 @@ }; }; + system.autoUpgrade.enable = false; system.stateVersion = "23.11"; }