Compare commits
No commits in common. "d6304ab7832434eae4a70487ef386ffed168d7b0" and "8902ed72acf7222ec4c0f3523a7599c3c9fd6496" have entirely different histories.
d6304ab783
...
8902ed72ac
3 changed files with 6 additions and 28 deletions
22
flake.nix
22
flake.nix
|
@ -53,33 +53,14 @@
|
||||||
description = "All my NixoS machines";
|
description = "All my NixoS machines";
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs outputs;
|
inherit inputs outputs;
|
||||||
nodes = colmenaHive.nodes;
|
|
||||||
pkgs-unstable = import nixpkgs-unstable { system = "x86_64-linux"; };
|
pkgs-unstable = import nixpkgs-unstable { system = "x86_64-linux"; };
|
||||||
};
|
};
|
||||||
nixpkgs = import nixpkgs { system = "x86_64-linux"; };
|
nixpkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
defaults = { lib, config, name, nodes, ... }: {
|
defaults = { lib, config, name, ... }: {
|
||||||
imports = [ ./hosts/${name} ./profiles/base ];
|
imports = [ ./hosts/${name} ./profiles/base ];
|
||||||
|
|
||||||
options.cherrykitten = {
|
|
||||||
primaryIPv4 = lib.mkOption {
|
|
||||||
type = lib.types.nullOr lib.types.str;
|
|
||||||
default =
|
|
||||||
if (config.networking.interfaces ? eth0) then
|
|
||||||
(builtins.elemAt config.networking.interfaces.eth0.ipv4.addresses 0).address
|
|
||||||
else null;
|
|
||||||
};
|
|
||||||
primaryIPv6 = lib.mkOption {
|
|
||||||
type = lib.types.nullOr lib.types.str;
|
|
||||||
default =
|
|
||||||
if (config.networking.interfaces ? eth0) then
|
|
||||||
(builtins.elemAt config.networking.interfaces.eth0.ipv6.addresses 0).address
|
|
||||||
else null;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = {
|
|
||||||
networking.hostName = name;
|
networking.hostName = name;
|
||||||
networking.domain = "cherrykitten.xyz";
|
networking.domain = "cherrykitten.xyz";
|
||||||
|
|
||||||
|
@ -88,7 +69,6 @@
|
||||||
pkgs-unstable = import nixpkgs-unstable { system = "x86_64-linux"; };
|
pkgs-unstable = import nixpkgs-unstable { system = "x86_64-linux"; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
} // hosts;
|
} // hosts;
|
||||||
|
|
||||||
colmenaHive = inputs.colmena.lib.makeHive colmena;
|
colmenaHive = inputs.colmena.lib.makeHive colmena;
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
# misc
|
# misc
|
||||||
nodePackages.prettier
|
nodePackages.prettier
|
||||||
marksman
|
marksman
|
||||||
haskell-language-server
|
|
||||||
];
|
];
|
||||||
|
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
|
|
|
@ -69,7 +69,6 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
hls = {},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue