replace nixos-hardware with nixos-facter

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-04-30 00:33:56 +03:00
parent 8c9ab14a76
commit 019ea4247a
5 changed files with 7349 additions and 17 deletions

19
flake.lock generated
View File

@ -1025,19 +1025,18 @@
"type": "github"
}
},
"nixos-hardware": {
"nixos-facter-modules": {
"locked": {
"lastModified": 1745503349,
"narHash": "sha256-bUGjvaPVsOfQeTz9/rLTNLDyqbzhl0CQtJJlhFPhIYw=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "f7bee55a5e551bd8e7b5b82c9bc559bc50d868d1",
"lastModified": 1743671943,
"narHash": "sha256-7sYig0+RcrR3sOL5M+2spbpFUHyEP7cnUvCaqFOBjyU=",
"owner": "numtide",
"repo": "nixos-facter-modules",
"rev": "58ad9691670d293a15221d4a78818e0088d2e086",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"repo": "nixos-hardware",
"owner": "numtide",
"repo": "nixos-facter-modules",
"type": "github"
}
},
@ -1240,7 +1239,7 @@
"nix-flatpak": "nix-flatpak",
"nix-index-database": "nix-index-database",
"nixos-cosmic": "nixos-cosmic",
"nixos-hardware": "nixos-hardware",
"nixos-facter-modules": "nixos-facter-modules",
"nixpkgs": "nixpkgs_3",
"nixpkgs-stable": "nixpkgs-stable_3",
"sops-nix": "sops-nix",

View File

@ -13,13 +13,14 @@
# lix.url = "https://git.lix.systems/lix-project/nixos-module/archive/2.92.0-2.tar.gz";
mysecrets.url = "git+ssh://gitea@gitea.linerds.us/unexplrd/nix-secrets";
# neve.url = "git+https://gitea.linerds.us/unexplrd/Neve";
# nixvim.url = "github:nix-community/nixvim";
nix-flatpak.url = "github:gmodena/nix-flatpak";
nix-index-database.url = "github:nix-community/nix-index-database";
nixos-cosmic.url = "github:lilyinstarlight/nixos-cosmic";
# nixvim.url = "github:nix-community/nixvim";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
nixos-facter-modules.url = "github:numtide/nixos-facter-modules";
# nixos-hardware.url = "github:NixOS/nixos-hardware/master";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.11";
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
sops-nix.url = "github:mic92/sops-nix";
stylix.url = "github:danth/stylix/8b0d9317edd57c5374adcf6957ae4775875c2a9d";
# TODO: somehow reduce the number of *.inputs.nixpkgs.follows = "nixpkgs" stuff, mb a function?

View File

@ -1,12 +1,16 @@
{inputs, ...}: {
{
inputs,
pkgs,
...
}: {
imports = with inputs; [
self.nixosModules.desktop
self.nixosModules.system
./boot.nix
./boot
./disko.nix
./hardware.nix
./networking.nix
./nix.nix
./facter
./nix
./programs.nix
./services.nix
./sops.nix
@ -31,4 +35,9 @@
bluetooth.enable = true;
bluetooth.enableBlueman = false;
};
hardware.graphics.extraPackages = with pkgs; [
intel-compute-runtime
intel-media-driver
vpl-gpu-rt
];
}

View File

@ -0,0 +1,7 @@
{inputs, ...}: {
imports = with inputs; [
nixos-facter-modules.nixosModules.facter
];
facter.reportPath = ./facter.json;
systemd.network.wait-online.enable = false;
}

File diff suppressed because it is too large Load Diff