reorganize
This commit is contained in:
parent
0c98c6f620
commit
c635ff186a
2 changed files with 15 additions and 15 deletions
21
flake.nix
21
flake.nix
|
@ -58,12 +58,6 @@
|
|||
"albert@nixos-rpi4-02" = libx.mkHome { hostname = "nixos-rpi4-02"; platform = "aarch64-linux"; };
|
||||
"albert@nixos-rpi4-03" = libx.mkHome { hostname = "nixos-rpi4-03"; platform = "aarch64-linux"; };
|
||||
};
|
||||
imageConfigurations = {
|
||||
nixos-linode-img = libx.mkMinImage { hostname = "nixos-linode-img"; format = "linode"; };
|
||||
nixos-rpi4-img = libx.mkImage { hostname = "nixos-rpi4-img"; format = "sd-aarch64"; platform = "aarch64-linux"; };
|
||||
nixos-iso-console = libx.mkImage { hostname = "nixos-iso-console"; format = "iso"; };
|
||||
nixos-iso-desktop = libx.mkImage { hostname = "nixos-iso-desktop"; format = "iso"; desktop = "gnome"; };
|
||||
};
|
||||
deploy.nodes = {
|
||||
osaka-linode-01 = libx.deploy { hostname = "osaka-linode-01"; };
|
||||
nixos-vm-01 = libx.deploy { hostname = "nixos-vm-01"; };
|
||||
|
@ -74,14 +68,11 @@
|
|||
nixos-rpi4-02 = libx.deploy { hostname = "nixos-rpi4-02"; platform = "aarch64-linux"; };
|
||||
nixos-rpi4-03 = libx.deploy { hostname = "nixos-rpi4-03"; platform = "aarch64-linux"; };
|
||||
};
|
||||
|
||||
# Checks for deploy-rs - Makes deploy-rs fail when system evaluations fail
|
||||
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
||||
|
||||
# Devshell for bootstrapping; acessible via 'nix develop'
|
||||
devShells = libx.forAllSystems (system:
|
||||
let pkgs = nixpkgs.legacyPackages.${system};
|
||||
in import ./shell.nix { inherit pkgs sops-nix deploy-rs system; }
|
||||
);
|
||||
imageConfigurations = {
|
||||
nixos-linode-img = libx.mkMinImage { hostname = "nixos-linode-img"; format = "linode"; };
|
||||
nixos-rpi4-img = libx.mkImage { hostname = "nixos-rpi4-img"; format = "sd-aarch64"; platform = "aarch64-linux"; };
|
||||
nixos-iso-console = libx.mkImage { hostname = "nixos-iso-console"; format = "iso"; };
|
||||
nixos-iso-desktop = libx.mkImage { hostname = "nixos-iso-desktop"; format = "iso"; desktop = "gnome"; };
|
||||
};
|
||||
};
|
||||
}
|
|
@ -109,4 +109,13 @@
|
|||
"aarch64-linux"
|
||||
"x86_64-linux"
|
||||
];
|
||||
|
||||
# Checks for deploy-rs - Makes deploy-rs fail when system evaluations fail
|
||||
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
||||
|
||||
# Devshell for bootstrapping; acessible via 'nix develop'
|
||||
devShells = libx.forAllSystems (system:
|
||||
let pkgs = nixpkgs.legacyPackages.${system};
|
||||
in import ./shell.nix { inherit pkgs sops-nix deploy-rs system; }
|
||||
);
|
||||
}
|
Loading…
Reference in a new issue