re-organize
This commit is contained in:
parent
81b49aa923
commit
350973f556
35 changed files with 8 additions and 8 deletions
|
@ -1 +0,0 @@
|
||||||
{networking.hostName = "quadraticpc";}
|
|
|
@ -1 +0,0 @@
|
||||||
{networking.hostName = "quadraticserver";}
|
|
|
@ -1 +0,0 @@
|
||||||
{networking.hostName = "quadtop";}
|
|
12
flake.nix
12
flake.nix
|
@ -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;
|
||||||
|
|
|
@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue