From a67e367c68bdc8fa61731193b3e501347a3a4a7b Mon Sep 17 00:00:00 2001 From: Alex Davies Date: Fri, 24 May 2024 07:00:23 -0300 Subject: [PATCH] Changed auto-update to just pull form git --- flake.nix | 13 +++++++++++++ nixos/configuration.nix | 3 +-- nixos/family.nix | 7 ++++--- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index dc425a1..7e3e92b 100644 --- a/flake.nix +++ b/flake.nix @@ -115,6 +115,19 @@ ./nixos/zerotier.nix ]; }; + bill = nixpkgs.lib.nixosSystem { + specialArgs = { + inherit inputs outputs; + hostname = "bill"; + mainUser = "bill"; + }; + modules = [ + ./nixos/configuration.nix + ./nixos/kde-desktop.nix + ./nixos/family.nix + ./nixos/zerotier.nix + ]; + }; }; # Standalone home-manager configuration entrypoint diff --git a/nixos/configuration.nix b/nixos/configuration.nix index c320e1d..8bdc843 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -145,9 +145,8 @@ }; system.autoUpgrade = { enable = true; - flake = inputs.self.outPath; + flake = "git+https://codeberg.org/traverseda/nixos-config#${hostname}"; flags = [ - "--update-input" "nixpkgs" ]; dates = "02:00"; diff --git a/nixos/family.nix b/nixos/family.nix index eb3f04c..f9988ea 100644 --- a/nixos/family.nix +++ b/nixos/family.nix @@ -7,9 +7,10 @@ }; users.users = { gwen = { - # You can set an initial password for your user. - # If you do, you can skip setting a root password by passing '--no-root-passwd' to nixos-install. - # Be sure to change it (using passwd) after rebooting! + isNormalUser = true; + extraGroups = [ "networkManager" ]; + }; + bill = { isNormalUser = true; extraGroups = [ "networkManager" ]; };