Last active
September 23, 2024 14:43
-
-
Save szethh/d4091426e1ad837515c7c50d0e9240d9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
description = "pbek's machines"; | |
inputs = { | |
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; | |
home-manager.url = "github:nix-community/home-manager"; | |
home-manager.inputs.nixpkgs.follows = "nixpkgs"; | |
disko.url = "github:nix-community/disko"; | |
disko.inputs.nixpkgs.follows = "nixpkgs"; | |
}; | |
outputs = | |
{ | |
self, | |
home-manager, | |
nixpkgs, | |
disko, | |
... | |
}@inputs: | |
{ | |
colmena = { | |
meta = { | |
# specify specialArgs for all hosts | |
specialArgs = self.commonArgs // { | |
inherit inputs; | |
}; | |
# in case you need to override it for a specific host | |
# nodeSpecialArgs = { | |
# netcup01 = { | |
# # netcup01-specific specialArgs | |
# }; | |
# }; | |
}; | |
defaults = { | |
# default modules for all hosts | |
imports = [ | |
home-manager.nixosModules.home-manager | |
disko.nixosModules.disko | |
]; | |
}; | |
netcup01 = { | |
imports = [ ./hosts/netcup01/configuration.nix ]; | |
# you can run locally with colmena apply-local --sudo | |
# but you must set these settings | |
deployment.allowLocalDeployment = true; | |
networking.hostName = "netcup01"; | |
}; | |
}; | |
# you can keep these alongside colmena! | |
nixosConfigurations = { | |
# netcup01 = ... | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment