feat: add nixos facter

This commit is contained in:
Moritz Böhme 2024-10-25 12:34:49 +02:00
parent 6657d4e7a2
commit a793777d5d
Signed by: moritz
GPG key ID: 970C6E89EB0547A9
5 changed files with 4223 additions and 20 deletions

View file

@ -1035,6 +1035,21 @@
"type": "github"
}
},
"nixos-facter-modules": {
"locked": {
"lastModified": 1728725827,
"narHash": "sha256-io1UeGaV2HcmK1zCZPnawJu3CxKHhiZ83NBJ+qshWIo=",
"owner": "numtide",
"repo": "nixos-facter-modules",
"rev": "9f2a45b372830d28412160413d1d83f5ee11cc2f",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "nixos-facter-modules",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1722073938,
@ -1455,6 +1470,7 @@
"nix-index-database": "nix-index-database",
"nix-monitored": "nix-monitored",
"nix-super": "nix-super",
"nixos-facter-modules": "nixos-facter-modules",
"nixpkgs": "nixpkgs_7",
"nixvim": "nixvim",
"nur": "nur",

View file

@ -56,6 +56,8 @@
ghostty.url = "git+ssh://git@github.com/ghostty-org/ghostty";
# ghostty.url = "/home/moritz/Documents/ghostty";
nixos-facter-modules.url = "github:numtide/nixos-facter-modules";
};
outputs = inputs@{ self, flake-parts, ... }:
@ -158,6 +160,7 @@
inputs.home-manager.nixosModule
inputs.impermanence.nixosModules.impermanence
inputs.nix-index-database.nixosModules.nix-index
inputs.nixos-facter-modules.nixosModules.facter
path
];
})

View file

@ -6,11 +6,11 @@
, ...
}: {
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
./disko.nix
];
facter.reportPath = ./facter.json;
my = {
virtualisation.libvirtd.enable = true;
yubikey.luksSupport.enable = false;
@ -143,6 +143,7 @@
supportedFilesystems = [ "zfs" ];
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
initrd.availableKernelModules = [ "rtsx_pci_sdmmc" ];
};
# SERVICES
@ -152,7 +153,6 @@
printing.enable = true;
logind.lidSwitch = "hybrid-sleep";
};
hardware.bluetooth.enable = true;
# NETWORKING
networking = {

File diff suppressed because it is too large Load diff

View file

@ -1,17 +0,0 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ modulesPath
, lib
, ...
}: {
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot = {
initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "rtsx_pci_sdmmc" ];
initrd.kernelModules = [ ];
kernelModules = [ "kvm-amd" ];
extraModulePackages = [ ];
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}