re-organize

This commit is contained in:
Henry Hiles 2025-03-22 21:31:51 -04:00
parent 81b49aa923
commit 350973f556
35 changed files with 8 additions and 8 deletions

View file

@ -1 +0,0 @@
{networking.hostName = "quadraticpc";}

View file

@ -1 +0,0 @@
{networking.hostName = "quadraticserver";}

View file

@ -1 +0,0 @@
{networking.hostName = "quadtop";}

View file

@ -40,12 +40,14 @@
modules = with dirUtils; modules = with dirUtils;
[ [
./wrappers ./wrappers
{networking.hostName = hostname;}
inputs.agenix.nixosModules.default inputs.agenix.nixosModules.default
] ]
++ dirFiles ".nix" "${./clients}/${hostname}" ++ dirFiles ".nix" "${./clients}/${hostname}"
++ dirFiles ".nix" ./modules/common ++ dirFiles ".nix" ./modules/common
++ opt (!isDesktop) (dirFiles ./modules/server)
++ opt isDesktop ( ++ opt isDesktop (
(dirFiles ".nix" ./modules/common-desktop) (dirFiles ".nix" ./modules/desktop)
++ [ ++ [
inputs.stylix.nixosModules.stylix inputs.stylix.nixosModules.stylix
./stylix.nix ./stylix.nix
@ -56,10 +58,10 @@
); );
}; };
in { in {
nixosConfigurations = { nixosConfigurations = builtins.mapAttrs (name: value: system name value) {
"quadraticserver" = system "quadraticserver" false; "quadraticserver" = false;
"quadraticpc" = system "quadraticpc" true; "quadraticpc" = true;
"quadtop" = system "quadtop" true; "quadtop" = true;
}; };
formatter.x86_64-linux = inputs.nixpkgs.legacyPackages.x86_64-linux.alejandra; formatter.x86_64-linux = inputs.nixpkgs.legacyPackages.x86_64-linux.alejandra;

View file

@ -28,6 +28,7 @@
# NixOS # NixOS
clean = "nh clean all"; clean = "nh clean all";
rebuild = "nh os switch"; rebuild = "nh os switch";
rebuildServer = "nixos-rebuild switch --flake ~/.config/nixos#quadraticserver --target-host quadradical@192.168.0.132 --use-remote-sudo";
update = "pushd ~/.config/nixos && nix flake update && popd && rebuild"; update = "pushd ~/.config/nixos && nix flake update && popd && rebuild";
}; };
}; };