Add nixos-facter for hardware configuration
This commit is contained in:
parent
db07652d99
commit
a78fd31432
7 changed files with 7561 additions and 12 deletions
16
flake.lock
generated
16
flake.lock
generated
|
@ -366,6 +366,21 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixos-facter-modules": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1738752252,
|
||||||
|
"narHash": "sha256-/nA3tDdp/2g0FBy8966ppC2WDoyXtUWaHkZWL+N3ZKc=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixos-facter-modules",
|
||||||
|
"rev": "60f8b8f3f99667de6a493a44375e5506bf0c48b1",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixos-facter-modules",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixos-unified": {
|
"nixos-unified": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1729697921,
|
"lastModified": 1729697921,
|
||||||
|
@ -493,6 +508,7 @@
|
||||||
"flake-parts": "flake-parts_2",
|
"flake-parts": "flake-parts_2",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"lanzaboote": "lanzaboote",
|
"lanzaboote": "lanzaboote",
|
||||||
|
"nixos-facter-modules": "nixos-facter-modules",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"private": "private",
|
"private": "private",
|
||||||
"treefmt-nix": "treefmt-nix_2"
|
"treefmt-nix": "treefmt-nix_2"
|
||||||
|
|
10
flake.nix
10
flake.nix
|
@ -24,14 +24,15 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
lanzaboote = {
|
|
||||||
url = "github:nix-community/lanzaboote/v0.4.2";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
disko = {
|
disko = {
|
||||||
url = "github:nix-community/disko";
|
url = "github:nix-community/disko";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
lanzaboote = {
|
||||||
|
url = "github:nix-community/lanzaboote/v0.4.2";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
nixos-facter-modules.url = "github:nix-community/nixos-facter-modules";
|
||||||
fcc-unlock = {
|
fcc-unlock = {
|
||||||
url = "github:fabianhauser/fcc-unlock";
|
url = "github:fabianhauser/fcc-unlock";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
@ -74,6 +75,7 @@
|
||||||
packages = lib.attrValues {
|
packages = lib.attrValues {
|
||||||
inherit (pkgs)
|
inherit (pkgs)
|
||||||
nixos-rebuild
|
nixos-rebuild
|
||||||
|
nixos-facter
|
||||||
sops
|
sops
|
||||||
ssh-to-age
|
ssh-to-age
|
||||||
nixd
|
nixd
|
||||||
|
|
|
@ -9,8 +9,6 @@
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.hostPlatform = "x86_64-linux";
|
|
||||||
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
# TODO: This should probably be somewhere else.
|
# TODO: This should probably be somewhere else.
|
||||||
docker = {
|
docker = {
|
||||||
|
|
|
@ -5,11 +5,8 @@
|
||||||
./filesystems.nix
|
./filesystems.nix
|
||||||
./networking.nix
|
./networking.nix
|
||||||
./disko-config.nix
|
./disko-config.nix
|
||||||
|
|
||||||
# TODO: Hardware
|
|
||||||
];
|
];
|
||||||
|
facter.reportPath = ./facter.json;
|
||||||
nixpkgs.hostPlatform = "x86_64-linux";
|
|
||||||
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
# TODO: This should probably be somewhere else.
|
# TODO: This should probably be somewhere else.
|
||||||
|
|
7530
nixos-configurations/speer/facter.json
Normal file
7530
nixos-configurations/speer/facter.json
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,12 +1,11 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./base
|
./base
|
||||||
./base-system
|
./base-system
|
||||||
./desktop
|
./desktop
|
||||||
./filesystems
|
./filesystems
|
||||||
#./hardware #TODO
|
./hardware
|
||||||
./home-manager
|
./home-manager
|
||||||
./printing
|
./printing
|
||||||
./theme
|
./theme
|
||||||
|
|
7
nixos-modules/hardware/default.nix
Normal file
7
nixos-modules/hardware/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = [ inputs.nixos-facter-modules.nixosModules.facter ];
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue