Imports all modules with colmena. Cleaner node declaration
This commit is contained in:
parent
eb9f742b1e
commit
f8eb1bb696
1 changed files with 43 additions and 40 deletions
57
flake.nix
57
flake.nix
|
|
@ -20,30 +20,39 @@
|
|||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, agenix, home-manager, ... }@flakeInputs:
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
nixpkgs-unstable,
|
||||
agenix,
|
||||
home-manager,
|
||||
...
|
||||
}@inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
{
|
||||
|
||||
# used with: `nix fmt`
|
||||
formatter.${system} = pkgs.nixfmt-rfc-style;
|
||||
|
||||
colmena = {
|
||||
meta = {
|
||||
nixpkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [ ];
|
||||
|
||||
# modules = [
|
||||
# ./modules
|
||||
|
||||
# ];
|
||||
|
||||
|
||||
nixpkgs = pkgs;
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
};
|
||||
|
||||
defaults = {
|
||||
imports = [
|
||||
"${nixpkgs}/nixos/modules/virtualisation/proxmox-lxc.nix"
|
||||
./modules
|
||||
];
|
||||
};
|
||||
|
||||
# childnixos = {
|
||||
# deployment = {
|
||||
# targetHost = "10.233.244.63";
|
||||
|
|
@ -61,11 +70,7 @@
|
|||
targetUser = "root";
|
||||
};
|
||||
|
||||
imports = [
|
||||
<nixpkgs/nixos/modules/virtualisation/proxmox-lxc.nix>
|
||||
./modules
|
||||
./hosts/arr
|
||||
];
|
||||
imports = [ ./hosts/arr ];
|
||||
};
|
||||
|
||||
# deadbeef = {
|
||||
|
|
@ -83,14 +88,15 @@
|
|||
|
||||
};
|
||||
|
||||
|
||||
formatter.${system} = pkgs.nixpkgs-fmt;
|
||||
|
||||
nixosConfigurations =
|
||||
let
|
||||
mkNixosConfiguration = name: extraModules: nixpkgs.lib.nixosSystem {
|
||||
mkNixosConfiguration =
|
||||
name: extraModules:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = { inherit flakeInputs; };
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
modules = [
|
||||
{
|
||||
networking.hostName = name;
|
||||
|
|
@ -110,8 +116,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
# formatter.${system} = pkgs.nixpkgs-fmt;
|
||||
|
||||
# nixosConfigurations = {
|
||||
|
|
@ -129,7 +133,6 @@
|
|||
# ./hosts/deadbeef
|
||||
# ];
|
||||
|
||||
|
||||
# };
|
||||
# };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue