feat: add nixos facter

This commit is contained in:
Moritz Böhme 2024-10-25 12:34:49 +02:00
parent 6657d4e7a2
commit a793777d5d
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
5 changed files with 4223 additions and 20 deletions

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";
}