feat: add nixos facter
This commit is contained in:
parent
6657d4e7a2
commit
a793777d5d
5 changed files with 4223 additions and 20 deletions
16
flake.lock
16
flake.lock
|
@ -1035,6 +1035,21 @@
|
||||||
"type": "github"
|
"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": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1722073938,
|
"lastModified": 1722073938,
|
||||||
|
@ -1455,6 +1470,7 @@
|
||||||
"nix-index-database": "nix-index-database",
|
"nix-index-database": "nix-index-database",
|
||||||
"nix-monitored": "nix-monitored",
|
"nix-monitored": "nix-monitored",
|
||||||
"nix-super": "nix-super",
|
"nix-super": "nix-super",
|
||||||
|
"nixos-facter-modules": "nixos-facter-modules",
|
||||||
"nixpkgs": "nixpkgs_7",
|
"nixpkgs": "nixpkgs_7",
|
||||||
"nixvim": "nixvim",
|
"nixvim": "nixvim",
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
|
|
|
@ -56,6 +56,8 @@
|
||||||
|
|
||||||
ghostty.url = "git+ssh://git@github.com/ghostty-org/ghostty";
|
ghostty.url = "git+ssh://git@github.com/ghostty-org/ghostty";
|
||||||
# ghostty.url = "/home/moritz/Documents/ghostty";
|
# ghostty.url = "/home/moritz/Documents/ghostty";
|
||||||
|
|
||||||
|
nixos-facter-modules.url = "github:numtide/nixos-facter-modules";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ self, flake-parts, ... }:
|
outputs = inputs@{ self, flake-parts, ... }:
|
||||||
|
@ -158,6 +160,7 @@
|
||||||
inputs.home-manager.nixosModule
|
inputs.home-manager.nixosModule
|
||||||
inputs.impermanence.nixosModules.impermanence
|
inputs.impermanence.nixosModules.impermanence
|
||||||
inputs.nix-index-database.nixosModules.nix-index
|
inputs.nix-index-database.nixosModules.nix-index
|
||||||
|
inputs.nixos-facter-modules.nixosModules.facter
|
||||||
path
|
path
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
|
|
@ -6,11 +6,11 @@
|
||||||
, ...
|
, ...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
|
||||||
./hardware-configuration.nix
|
|
||||||
./disko.nix
|
./disko.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
facter.reportPath = ./facter.json;
|
||||||
|
|
||||||
my = {
|
my = {
|
||||||
virtualisation.libvirtd.enable = true;
|
virtualisation.libvirtd.enable = true;
|
||||||
yubikey.luksSupport.enable = false;
|
yubikey.luksSupport.enable = false;
|
||||||
|
@ -143,6 +143,7 @@
|
||||||
supportedFilesystems = [ "zfs" ];
|
supportedFilesystems = [ "zfs" ];
|
||||||
loader.systemd-boot.enable = true;
|
loader.systemd-boot.enable = true;
|
||||||
loader.efi.canTouchEfiVariables = true;
|
loader.efi.canTouchEfiVariables = true;
|
||||||
|
initrd.availableKernelModules = [ "rtsx_pci_sdmmc" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# SERVICES
|
# SERVICES
|
||||||
|
@ -152,7 +153,6 @@
|
||||||
printing.enable = true;
|
printing.enable = true;
|
||||||
logind.lidSwitch = "hybrid-sleep";
|
logind.lidSwitch = "hybrid-sleep";
|
||||||
};
|
};
|
||||||
hardware.bluetooth.enable = true;
|
|
||||||
|
|
||||||
# NETWORKING
|
# NETWORKING
|
||||||
networking = {
|
networking = {
|
||||||
|
|
4201
hosts/nixos-laptop/facter.json
Normal file
4201
hosts/nixos-laptop/facter.json
Normal file
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 a new issue