feat: add nixos facter
parent
6657d4e7a2
commit
a793777d5d
16
flake.lock
16
flake.lock
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
];
|
||||
})
|
||||
|
|
|
@ -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
|
@ -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";
|
||||
}
|
Loading…
Reference in New Issue