added host pc
This commit is contained in:
parent
73abed8eb5
commit
b7ef1cce77
2 changed files with 39 additions and 8 deletions
16
flake.nix
16
flake.nix
|
|
@ -31,13 +31,13 @@
|
||||||
++ commonModules;
|
++ commonModules;
|
||||||
};
|
};
|
||||||
|
|
||||||
# pc
|
# pc
|
||||||
# nixosConfigurations.sandalphon = lib.nixosSystem {
|
nixosConfigurations.sandalphon = lib.nixosSystem {
|
||||||
# specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
# modules = [
|
modules = [
|
||||||
# ./hosts/sandalphon/hardware-configuration.nix
|
./hosts/sandalphon/hardware-configuration.nix
|
||||||
# ]
|
]
|
||||||
# ++ commonModules;
|
++ commonModules;
|
||||||
# };
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
31
hosts/sandalphon/hardware-configuration.nix
Normal file
31
hosts/sandalphon/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
# 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.
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/f66916c1-a834-4fb4-9ded-ee04d3650baf";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/E474-7CAD";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
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