Compare commits

..

No commits in common. "7a8a7f88dda2a23f724162bd25326df51e5870f9" and "14872a2e6b009767d71a5f6b5fcc7f3ac43bfe4a" have entirely different histories.

13 changed files with 5 additions and 14267 deletions

16
flake.lock generated
View file

@ -289,21 +289,6 @@
"type": "github"
}
},
"nixos-facter-modules": {
"locked": {
"lastModified": 1730026316,
"narHash": "sha256-AzP+trH/ykBJGTx3twkpuwbkhFSmsY1PJDQtRmK4k4c=",
"owner": "numtide",
"repo": "nixos-facter-modules",
"rev": "15b6531d44aa6f0bbd2fd8309cd2a6d7f183ba32",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "nixos-facter-modules",
"type": "github"
}
},
"nixos-hardware": {
"locked": {
"lastModified": 1729742320,
@ -426,7 +411,6 @@
"kubenix": "kubenix",
"nix-snapshotter": "nix-snapshotter",
"nixng": "nixng",
"nixos-facter-modules": "nixos-facter-modules",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_2",
"nixpkgs-unstable": "nixpkgs-unstable",

View file

@ -18,7 +18,6 @@
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
flake-utils.url = "github:numtide/flake-utils";
treefmt-nix.url = "github:numtide/treefmt-nix";
nixos-facter-modules.url = "github:numtide/nixos-facter-modules";
git-hooks = {
url = "github:cachix/git-hooks.nix";

View file

@ -2,7 +2,6 @@
machines.atlas = {
arch = "x86_64-linux";
kubernetesNodeLabels.storageType = "slow";
facterReportPath = ./facter.json;
nixosModule.lab = {
storage.profile = "kubernetes";

File diff suppressed because it is too large Load diff

View file

@ -17,14 +17,6 @@ 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;
@ -60,11 +52,12 @@ in {
(lib.modules.evalModules {
modules = [
allOpts
./warwick
./atlas
./jefke
./lewis
./warwick.nix
./atlas.nix
./jefke.nix
./lewis.nix
# ./talos.nix
# ./pikvm.nix
];
})
.config

View file

@ -2,7 +2,6 @@
machines.jefke = {
arch = "x86_64-linux";
kubernetesNodeLabels.storageType = "fast";
facterReportPath = ./facter.json;
nixosModule.lab = {
storage.profile = "kubernetes";

File diff suppressed because it is too large Load diff

View file

@ -5,7 +5,6 @@
storageType = "fast";
hasMedia = "true";
};
facterReportPath = ./facter.json;
nixosModule.lab = {
storage.profile = "kubernetes";

File diff suppressed because it is too large Load diff

View file

@ -2,7 +2,6 @@
machines.warwick = {
arch = "aarch64-linux";
isRaspberryPi = true;
facterReportPath = ./facter.json;
nixosModule.lab = {
storage.profile = "pi";

File diff suppressed because it is too large Load diff

View file

@ -20,7 +20,6 @@
inputs.disko.nixosModules.disko
inputs.sops-nix.nixosModules.sops
inputs.nix-snapshotter.nixosModules.nix-snapshotter
inputs.nixos-facter-modules.nixosModules.facter
]
++ lib.lists.optional (machine.isRaspberryPi) inputs.nixos-hardware.nixosModules.raspberry-pi-4;
@ -163,7 +162,5 @@
age.keyFile = "/root/.config/sops/age/keys.txt";
defaultSopsFile = "${self}/secrets/nixos.yaml";
};
facter.reportPath = machine.facterReportPath;
};
}

View file

@ -1,5 +1,4 @@
{...}: {
projectRootFile = "flake.nix";
programs.alejandra.enable = true;
programs.jsonfmt.enable = true;
}