added nixos-facter to generate hardware report
This commit is contained in:
parent
940ec2f0ec
commit
6599e23992
6 changed files with 7697 additions and 4 deletions
|
|
@ -10,6 +10,15 @@ Rebuild system
|
|||
nh os switch
|
||||
~~~
|
||||
|
||||
Generate hardware report
|
||||
~~~
|
||||
sudo nix run \
|
||||
--option experimental-features "nix-command flakes" \
|
||||
--option extra-substituters https://numtide.cachix.org \
|
||||
--option extra-trusted-public-keys numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE= \
|
||||
github:numtide/nixos-facter -- -o facter.json
|
||||
~~~
|
||||
|
||||
## Install system
|
||||
Assuming that you're in nixos installer
|
||||
~~~
|
||||
|
|
|
|||
16
flake.lock
generated
16
flake.lock
generated
|
|
@ -734,6 +734,21 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixos-facter-modules": {
|
||||
"locked": {
|
||||
"lastModified": 1732288619,
|
||||
"narHash": "sha256-zSQ2cR+NRJfHUVfkv+O6Wi53wXfzX8KHiO8fRfnvc0M=",
|
||||
"owner": "numtide",
|
||||
"repo": "nixos-facter-modules",
|
||||
"rev": "862648589993a96480c2255197a28feea712f68f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "nixos-facter-modules",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1733212471,
|
||||
|
|
@ -912,6 +927,7 @@
|
|||
"home-manager": "home-manager",
|
||||
"hyprland": "hyprland",
|
||||
"impermanence": "impermanence",
|
||||
"nixos-facter-modules": "nixos-facter-modules",
|
||||
"nixpkgs": "nixpkgs_3",
|
||||
"nixvim": "nixvim",
|
||||
"sops-nix": "sops-nix",
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@
|
|||
inputs = {
|
||||
nixpkgs = {
|
||||
url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
|
||||
|
||||
};
|
||||
nixvim = {
|
||||
url = "github:nix-community/nixvim";
|
||||
|
|
@ -28,6 +26,7 @@
|
|||
url = "github:nix-community/disko";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nixos-facter-modules.url = "github:numtide/nixos-facter-modules";
|
||||
|
||||
impermanence.url = "github:nix-community/impermanence";
|
||||
};
|
||||
|
|
@ -50,7 +49,7 @@
|
|||
inputs.sops-nix.nixosModules.sops
|
||||
inputs.home-manager.nixosModules.default
|
||||
stylix.nixosModules.stylix
|
||||
|
||||
inputs.nixos-facter-modules.nixosModules.facter
|
||||
];
|
||||
|
||||
first-nixos-install = "1729112485"; #stat -c %W /
|
||||
|
|
@ -86,7 +85,7 @@
|
|||
#nur.nixosModules.nur
|
||||
./nixos/configuration.nix
|
||||
./nixos/nvidia.nix
|
||||
./nixos/homepc-hardware-conf.nix
|
||||
#./nixos/homepc-hardware-conf.nix
|
||||
./nixos/libvirt.nix
|
||||
#nix-flatpak.nixosModules.default
|
||||
] ++ general-modules;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,9 @@
|
|||
./firefox.nix
|
||||
./modules/services/autoupgrade
|
||||
./modules/sops
|
||||
./hosts/${hwconfig.hostname}
|
||||
];
|
||||
facter.reportPath = ./hosts/${hwconfig.hostname}/facter.json;
|
||||
kylekrein.services.autoUpgrade = {
|
||||
enable = true;
|
||||
pushUpdates = if hwconfig.hostname == "${username}-homepc" then true else false;
|
||||
|
|
|
|||
4
nixos/hosts/kylekrein-homepc/default.nix
Normal file
4
nixos/hosts/kylekrein-homepc/default.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{ pkgs, lib, hwconfig, inputs, ... }:
|
||||
{
|
||||
systemd.network.wait-online.enable = lib.mkForce false;
|
||||
}
|
||||
7663
nixos/hosts/kylekrein-homepc/facter.json
Normal file
7663
nixos/hosts/kylekrein-homepc/facter.json
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue