From 78244233374eb1ba15d4e21c27c7e97880f439fb Mon Sep 17 00:00:00 2001 From: tootbrute Date: Sun, 10 Nov 2024 20:28:45 +0800 Subject: [PATCH] Update NixOS config. --- flake.nix | 30 +++++++++++++++--------------- update.sh | 15 +++++++++++++++ 2 files changed, 30 insertions(+), 15 deletions(-) create mode 100755 update.sh diff --git a/flake.nix b/flake.nix index 95143ca..fd814b0 100644 --- a/flake.nix +++ b/flake.nix @@ -13,39 +13,39 @@ greynix = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ - /home/elias/nixos-config/base.nix - /home/elias/nixos-config/greynix/configuration.nix + ./base.nix + ./greynix/configuration.nix home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; - home-manager.users.elias = import /home/elias/nixos-config/home.nix; + home-manager.users.elias = import ./home.nix; # Optionally, use home-manager.extraSpecialArgs to pass # arguments to home.nix - } - ]; + } #close home-manager + ]; #close modules + }; #close greynix + # bluenix - Blue Acer machine bluenix = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ - /home/elias/nixos-config/base.nix - /home/elias/nixos-config/bluenix/configuration.nix + ./base.nix + ./bluenix/configuration.nix home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; - home-manager.users.elias = import /home/elias/nixos-config/home.nix; + home-manager.users.elias = import ./nixos-config/home.nix; # Optionally, use home-manager.extraSpecialArgs to pass # arguments to home.nix - } - ]; - }; - }; - }; -}; - + } #close homemanager + ]; #close modules + }; # close bluenix + }; #close nixosconfigurations + }; #close outputs } diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..bdb087c --- /dev/null +++ b/update.sh @@ -0,0 +1,15 @@ +# add things to git +git add . +git commit -m "Update NixOS config." +git push origin main + +# update nixos +# sudo nixos-rebuild switch --flake .#HOST +#sudo nixos-rebuild switch --flake '.#greynix' +#sudo nixos-rebuild switch --flake '.#bluenix' + +# flake update +# sudo nix flake update + +# check on things +# git status