sysadmin: init, replacing deployment directory
This commit is contained in:
parent
b4b879a87b
commit
8076f91738
8 changed files with 36 additions and 29 deletions
21
flake.nix
21
flake.nix
|
@ -22,11 +22,14 @@
|
|||
|
||||
outputs = inputs@{ self, nixpkgs, home-manager, nur, agenix, birdsong, ... }: {
|
||||
colmena = {
|
||||
meta.nixpkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||
meta.nodeNixpkgs.kalessin = import nixpkgs { system = "aarch64-linux"; }; # TODO: this should be generated from the host config somehow
|
||||
meta = {
|
||||
nixpkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||
nodeNixpkgs = {
|
||||
kalessin = import nixpkgs { system = "aarch64-linux"; }; # TODO: this should be generated from the host config somehow
|
||||
};
|
||||
};
|
||||
|
||||
defaults = { name, nodes, config, lib, pkgs, ... }: {
|
||||
deployment.replaceUnknownProfiles = lib.mkDefault false;
|
||||
networking.hostName = name;
|
||||
|
||||
nix.settings.experimental-features = "nix-command flakes";
|
||||
|
@ -62,9 +65,12 @@
|
|||
tohru = { name, nodes, ... }: {
|
||||
networking.hostId = "31da19c1";
|
||||
time.timeZone = "Europe/London";
|
||||
deployment = {
|
||||
allowLocalDeployment = true;
|
||||
targetHost = null; # disallow remote deployment
|
||||
};
|
||||
|
||||
imports = [
|
||||
./deployment/local.nix
|
||||
./hosts/tohru/configuration.nix
|
||||
];
|
||||
};
|
||||
|
@ -72,9 +78,9 @@
|
|||
yevaud = { name, nodes, ... }: {
|
||||
networking.hostId = "09673d65";
|
||||
time.timeZone = "Etc/UTC";
|
||||
deployment.targetHost = "yevaud.birdsong.network";
|
||||
|
||||
imports = [
|
||||
./deployment/remote.nix
|
||||
./hosts/yevaud/configuration.nix
|
||||
];
|
||||
};
|
||||
|
@ -82,9 +88,9 @@
|
|||
orm = { name, nodes, ... }: {
|
||||
networking.hostId = "00000000";
|
||||
time.timeZone = "Etc/UTC";
|
||||
deployment.targetHost = "orm.birdsong.network";
|
||||
|
||||
imports = [
|
||||
./deployment/remote.nix
|
||||
./hosts/orm/configuration.nix
|
||||
];
|
||||
};
|
||||
|
@ -93,12 +99,11 @@
|
|||
networking.hostId = "534b538e";
|
||||
time.timeZone = "Etc/UTC";
|
||||
deployment = {
|
||||
targetHost = "kalessin.birdsong.network";
|
||||
buildOnTarget = true;
|
||||
replaceUnknownProfiles = true;
|
||||
};
|
||||
|
||||
imports = [
|
||||
./deployment/remote.nix
|
||||
./hosts/kalessin/configuration.nix
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue