summaryrefslogtreecommitdiff
path: root/nix/flake.nix
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2025-09-07 00:37:22 -0700
committerPreston Pan <ret2pop@gmail.com>2025-09-07 00:37:22 -0700
commit8f4f46e59ad0b7c5662a417d10f3074f17c962c3 (patch)
tree0559b33322f902e76498b5864f39d8c663ce45a8 /nix/flake.nix
parent262a367c90362403ed5e0b4db41daf20e191538c (diff)
big update; fix vps and streamline some stuff
Diffstat (limited to 'nix/flake.nix')
-rw-r--r--nix/flake.nix21
1 files changed, 11 insertions, 10 deletions
diff --git a/nix/flake.nix b/nix/flake.nix
index 4b08aa9..021bcce 100644
--- a/nix/flake.nix
+++ b/nix/flake.nix
@@ -35,6 +35,13 @@
outputs = { self, nixpkgs, home-manager, nur, disko, lanzaboote, sops-nix, nix-topology, nixos-dns, deep-research, ... }@attrs:
let
+ hostnames = [
+ "affinity"
+ "continuity"
+ "installer"
+ "spontaneity"
+ # add hostnames here
+ ];
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
generate = nixos-dns.utils.generate nixpkgs.legacyPackages."${system}";
@@ -42,8 +49,7 @@
inherit (self) nixosConfigurations;
extraConfig = import ./dns/default.nix;
};
- mkConfigs = map (hostname: {
- name = "${hostname}";
+ mkConfigs = map (hostname: {name = "${hostname}";
value = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = attrs;
@@ -54,7 +60,7 @@
] else [
{
environment.systemPackages = with nixpkgs.lib; [
- deep-research.packages.${system}.deep-research
+ deep-research.packages."${system}".deep-research
];
}
nix-topology.nixosModules.default
@@ -65,7 +71,7 @@
nixos-dns.nixosModules.dns
{
nixpkgs.overlays = [ nur.overlays.default ];
- home-manager.extraSpecialArgs = attrs;
+ home-manager.extraSpecialArgs = attrs // { systemHostName = "${hostname}"; };
networking.hostName = "${hostname}";
}
(./. + "/systems/${hostname}/default.nix")
@@ -74,12 +80,7 @@
});
in {
# add new systems here
- nixosConfigurations = builtins.listToAttrs (mkConfigs [
- "affinity"
- "continuity"
- "installer"
- "spontaneity"
- ]);
+ nixosConfigurations = builtins.listToAttrs (mkConfigs hostnames);
topology."${system}" = import nix-topology {
pkgs = import nixpkgs {