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"
|
||||
}
|
||||
},
|
||||
"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": {
|
||||
"locked": {
|
||||
"lastModified": 1729697921,
|
||||
|
@ -493,6 +508,7 @@
|
|||
"flake-parts": "flake-parts_2",
|
||||
"home-manager": "home-manager",
|
||||
"lanzaboote": "lanzaboote",
|
||||
"nixos-facter-modules": "nixos-facter-modules",
|
||||
"nixpkgs": "nixpkgs_2",
|
||||
"private": "private",
|
||||
"treefmt-nix": "treefmt-nix_2"
|
||||
|
|
10
flake.nix
10
flake.nix
|
@ -24,14 +24,15 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
lanzaboote = {
|
||||
url = "github:nix-community/lanzaboote/v0.4.2";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
disko = {
|
||||
url = "github:nix-community/disko";
|
||||
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 = {
|
||||
url = "github:fabianhauser/fcc-unlock";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
@ -74,6 +75,7 @@
|
|||
packages = lib.attrValues {
|
||||
inherit (pkgs)
|
||||
nixos-rebuild
|
||||
nixos-facter
|
||||
sops
|
||||
ssh-to-age
|
||||
nixd
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
|
||||
];
|
||||
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
|
||||
virtualisation = {
|
||||
# TODO: This should probably be somewhere else.
|
||||
docker = {
|
||||
|
|
|
@ -5,11 +5,8 @@
|
|||
./filesystems.nix
|
||||
./networking.nix
|
||||
./disko-config.nix
|
||||
|
||||
# TODO: Hardware
|
||||
];
|
||||
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
facter.reportPath = ./facter.json;
|
||||
|
||||
virtualisation = {
|
||||
# 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 = [
|
||||
./base
|
||||
./base-system
|
||||
./desktop
|
||||
./filesystems
|
||||
#./hardware #TODO
|
||||
./hardware
|
||||
./home-manager
|
||||
./printing
|
||||
./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