Use nixos-facter
This commit is contained in:
parent
14872a2e6b
commit
a423fd024e
12 changed files with 14266 additions and 5 deletions
|
@ -2,6 +2,7 @@
|
|||
machines.atlas = {
|
||||
arch = "x86_64-linux";
|
||||
kubernetesNodeLabels.storageType = "slow";
|
||||
facterReportPath = ./facter.json;
|
||||
|
||||
nixosModule.lab = {
|
||||
storage.profile = "kubernetes";
|
3758
machines/atlas/facter.json
Normal file
3758
machines/atlas/facter.json
Normal file
File diff suppressed because it is too large
Load diff
|
@ -17,6 +17,14 @@ flake-utils.lib.eachDefaultSystem (system: let
|
|||
'';
|
||||
};
|
||||
|
||||
facterReportPath = lib.mkOption {
|
||||
default = null;
|
||||
type = with lib.types; nullOr path;
|
||||
description = ''
|
||||
Path to the nixos-facter report JSON for this machine.
|
||||
'';
|
||||
};
|
||||
|
||||
isRaspberryPi = lib.mkOption {
|
||||
default = false;
|
||||
type = lib.types.bool;
|
||||
|
@ -52,12 +60,11 @@ in {
|
|||
(lib.modules.evalModules {
|
||||
modules = [
|
||||
allOpts
|
||||
./warwick.nix
|
||||
./atlas.nix
|
||||
./jefke.nix
|
||||
./lewis.nix
|
||||
./warwick
|
||||
./atlas
|
||||
./jefke
|
||||
./lewis
|
||||
# ./talos.nix
|
||||
# ./pikvm.nix
|
||||
];
|
||||
})
|
||||
.config
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
machines.jefke = {
|
||||
arch = "x86_64-linux";
|
||||
kubernetesNodeLabels.storageType = "fast";
|
||||
facterReportPath = ./facter.json;
|
||||
|
||||
nixosModule.lab = {
|
||||
storage.profile = "kubernetes";
|
3593
machines/jefke/facter.json
Normal file
3593
machines/jefke/facter.json
Normal file
File diff suppressed because it is too large
Load diff
|
@ -5,6 +5,7 @@
|
|||
storageType = "fast";
|
||||
hasMedia = "true";
|
||||
};
|
||||
facterReportPath = ./facter.json;
|
||||
|
||||
nixosModule.lab = {
|
||||
storage.profile = "kubernetes";
|
5507
machines/lewis/facter.json
Normal file
5507
machines/lewis/facter.json
Normal file
File diff suppressed because it is too large
Load diff
|
@ -2,6 +2,7 @@
|
|||
machines.warwick = {
|
||||
arch = "aarch64-linux";
|
||||
isRaspberryPi = true;
|
||||
facterReportPath = ./facter.json;
|
||||
|
||||
nixosModule.lab = {
|
||||
storage.profile = "pi";
|
1372
machines/warwick/facter.json
Normal file
1372
machines/warwick/facter.json
Normal file
File diff suppressed because it is too large
Load diff
Reference in a new issue