--wip-- [skip ci]
This commit is contained in:
parent
a335e1c42d
commit
cc1abacb29
1 changed files with 51 additions and 33 deletions
84
flake.nix
84
flake.nix
|
|
@ -229,38 +229,38 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
freyaConfig = {
|
# freyaConfig = {
|
||||||
nixosConfigurations = rec {
|
# nixosConfigurations = rec {
|
||||||
freya = nixpkgs.lib.nixosSystem rec {
|
# freya = nixpkgs.lib.nixosSystem rec {
|
||||||
system = "aarch64-linux";
|
# system = "aarch64-linux";
|
||||||
modules =
|
# modules =
|
||||||
commonModules
|
# commonModules
|
||||||
++ [
|
# ++ [
|
||||||
nixos-hardware.nixosModules.raspberry-pi."4"
|
# nixos-hardware.nixosModules.raspberry-pi-4
|
||||||
./freya/hardware-configuration.nix
|
# ./freya/hardware-configuration.nix
|
||||||
./freya/configuration.nix
|
# ./freya/configuration.nix
|
||||||
{ home-manager.users.bertof = import ./freya/hm.nix; }
|
# { home-manager.users.bertof = import ./freya/hm.nix; }
|
||||||
];
|
# ];
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
|
||||||
baldurConfig = {
|
# baldurConfig = {
|
||||||
nixosConfigurations = rec {
|
# nixosConfigurations = rec {
|
||||||
baldur = nixpkgs.lib.nixosSystem rec {
|
# baldur = nixpkgs.lib.nixosSystem rec {
|
||||||
system = "x86_64-linux";
|
# system = "x86_64-linux";
|
||||||
modules =
|
# modules =
|
||||||
commonModules
|
# commonModules
|
||||||
++ [
|
# ++ [
|
||||||
# nixos-hardware.nixosModules.common-cpu-amd
|
# # nixos-hardware.nixosModules.common-cpu-amd
|
||||||
# nixos-hardware.nixosModules.common-pc-ssd
|
# # nixos-hardware.nixosModules.common-pc-ssd
|
||||||
./baldur/hardware-configuration.nix
|
# ./baldur/hardware-configuration.nix
|
||||||
./baldur/configuration.nix
|
# ./baldur/configuration.nix
|
||||||
{ home-manager.users.bertof = import ./baldur/hm.nix; }
|
# { home-manager.users.bertof = import ./baldur/hm.nix; }
|
||||||
];
|
# ];
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
|
||||||
lokiConfig = {
|
lokiConfig = {
|
||||||
nixosConfigurations = rec {
|
nixosConfigurations = rec {
|
||||||
|
|
@ -278,13 +278,31 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
deployments = {
|
||||||
|
# Deploy-rs checks
|
||||||
|
checks = builtins.mapAttrs (_system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
|
||||||
|
|
||||||
|
# Map nodes to Deploy-rs deployments
|
||||||
|
deploy.nodes = {
|
||||||
|
loki = {
|
||||||
|
hostname = "loki.local";
|
||||||
|
profiles.system = {
|
||||||
|
user = "root";
|
||||||
|
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.loki;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
builtins.foldl' nixpkgs.lib.recursiveUpdate { } [
|
builtins.foldl' nixpkgs.lib.recursiveUpdate { } [
|
||||||
basic
|
basic
|
||||||
thorConfig
|
thorConfig
|
||||||
odinConfig
|
odinConfig
|
||||||
freyaConfig
|
# freyaConfig
|
||||||
baldurConfig
|
# baldurConfig
|
||||||
lokiConfig
|
lokiConfig
|
||||||
|
deployments
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue