feat: add nixos configuration

This commit is contained in:
hhhh hgfh 2026-10-03 13:15:51 +00:00
parent f0ed8873f6
commit 52b53c8069
14 changed files with 272 additions and 2 deletions

View file

@ -0,0 +1,17 @@
{ ... }:
{
imports = [
./hardware-configuration.nix
../../modules/desktop.nix
../../modules/hardware.nix
../../modules/packages
../../modules/system.nix
../../modules/users.nix
];
networking.hostName = "nixos";
# Keep this at the version used during the initial installation.
system.stateVersion = "26.05";
}

View file

@ -0,0 +1,37 @@
# Generated by nixos-generate-config. Keep machine-specific settings here.
{ config, lib, modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"ahci"
"nvme"
"xhci_pci"
"usb_storage"
"usbhid"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/bc9b799b-3c14-419b-b3f5-88ff212bb1f4";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/D846-0839";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
}