Skip to content

Instantly share code, notes, and snippets.

@szethh
Last active September 23, 2024 14:43
Show Gist options
  • Save szethh/d4091426e1ad837515c7c50d0e9240d9 to your computer and use it in GitHub Desktop.
Save szethh/d4091426e1ad837515c7c50d0e9240d9 to your computer and use it in GitHub Desktop.
{
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