feat: add nixos configuration
This commit is contained in:
parent
f0ed8873f6
commit
52b53c8069
14 changed files with 272 additions and 2 deletions
17
nixos/hosts/nixos/default.nix
Normal file
17
nixos/hosts/nixos/default.nix
Normal 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";
|
||||
}
|
||||
37
nixos/hosts/nixos/hardware-configuration.nix
Normal file
37
nixos/hosts/nixos/hardware-configuration.nix
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue