Merge pull request 'Remove nixos-factor-modules for now' (#1980) from disable-nixos-facter-modules into main
This commit is contained in:
54
flake.lock
generated
54
flake.lock
generated
@@ -1,28 +1,5 @@
|
||||
{
|
||||
"nodes": {
|
||||
"blueprint": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
],
|
||||
"systems": [
|
||||
"systems"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1724053269,
|
||||
"narHash": "sha256-DinmPyxmUSLjBUYMe3eK0GKykwe33vWbVTmp7++P4Ng=",
|
||||
"owner": "numtide",
|
||||
"repo": "blueprint",
|
||||
"rev": "766302be9063650ca6578e5ba09cc4260b0da29c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "blueprint",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"disko": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
@@ -63,35 +40,6 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixos-facter-modules": {
|
||||
"inputs": {
|
||||
"blueprint": [
|
||||
"blueprint"
|
||||
],
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
],
|
||||
"systems": [
|
||||
"systems"
|
||||
],
|
||||
"treefmt-nix": [
|
||||
"treefmt-nix"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1724320449,
|
||||
"narHash": "sha256-0hB5P75tIwPS9lNI3nYxEorpcFtuQUJGmGHGIEgWksY=",
|
||||
"owner": "numtide",
|
||||
"repo": "nixos-facter-modules",
|
||||
"rev": "e00d789870e72baabb79d19afcc645428c3c6980",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "nixos-facter-modules",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixos-images": {
|
||||
"inputs": {
|
||||
"nixos-stable": [],
|
||||
@@ -131,10 +79,8 @@
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"blueprint": "blueprint",
|
||||
"disko": "disko",
|
||||
"flake-parts": "flake-parts",
|
||||
"nixos-facter-modules": "nixos-facter-modules",
|
||||
"nixos-images": "nixos-images",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"sops-nix": "sops-nix",
|
||||
|
||||
16
flake.nix
16
flake.nix
@@ -18,16 +18,16 @@
|
||||
treefmt-nix.url = "github:numtide/treefmt-nix";
|
||||
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
nixos-facter-modules.url = "github:numtide/nixos-facter-modules";
|
||||
nixos-facter-modules.inputs.nixpkgs.follows = "nixpkgs";
|
||||
nixos-facter-modules.inputs.systems.follows = "systems";
|
||||
nixos-facter-modules.inputs.blueprint.follows = "blueprint";
|
||||
nixos-facter-modules.inputs.treefmt-nix.follows = "treefmt-nix";
|
||||
#nixos-facter-modules.url = "github:numtide/nixos-facter-modules";
|
||||
#nixos-facter-modules.inputs.nixpkgs.follows = "nixpkgs";
|
||||
#nixos-facter-modules.inputs.systems.follows = "systems";
|
||||
#nixos-facter-modules.inputs.blueprint.follows = "blueprint";
|
||||
#nixos-facter-modules.inputs.treefmt-nix.follows = "treefmt-nix";
|
||||
# Pinned input for nixos-facter-modules
|
||||
# Allows downstream flakes to .follow override the input
|
||||
blueprint.url = "github:numtide/blueprint";
|
||||
blueprint.inputs.nixpkgs.follows = "nixpkgs";
|
||||
blueprint.inputs.systems.follows = "systems";
|
||||
#blueprint.url = "github:numtide/blueprint";
|
||||
#blueprint.inputs.nixpkgs.follows = "nixpkgs";
|
||||
#blueprint.inputs.systems.follows = "systems";
|
||||
};
|
||||
|
||||
outputs =
|
||||
|
||||
@@ -67,13 +67,13 @@ let
|
||||
facterJson = "${directory}/machines/${name}/facter.json";
|
||||
hwConfig = "${directory}/machines/${name}/hardware-configuration.nix";
|
||||
|
||||
facterModules = lib.optionals (builtins.pathExists facterJson) [
|
||||
clan-core.inputs.nixos-facter-modules.nixosModules.facter
|
||||
{ config.facter.reportPath = facterJson; }
|
||||
];
|
||||
in
|
||||
#facterModules = lib.optionals (builtins.pathExists facterJson) [
|
||||
# clan-core.inputs.nixos-facter-modules.nixosModules.facter
|
||||
# { config.facter.reportPath = facterJson; }
|
||||
#];
|
||||
(machineImports settings)
|
||||
++ facterModules
|
||||
#++ facterModules
|
||||
++ [
|
||||
{
|
||||
# Autoinclude configuration.nix and hardware-configuration.nix
|
||||
|
||||
Reference in New Issue
Block a user