config.nix/marty-pc.nix

71 lines
1.3 KiB
Nix

{
config,
lib,
pkgs,
modulesPath,
...
}:
{
networking = {
hostName = "marty-pc";
interfaces = {
enp42s0 = {
wakeOnLan = {
enable = true;
policy = [ "magic" ];
};
};
};
};
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
# users = {
# marty = ./nixos/modules/home.nix;
# };
};
# PREVIOUSLY HARDWARE-CONFIGURATION.NIX
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/a26cdc8b-abc9-47cf-ad33-c81e56e56d22";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/C9B2-7254";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
fileSystems = {
"/mnt/SSD" = {
device = "/dev/disk/by-uuid/af5282f0-0e02-4532-902f-97509af70d11";
fsType = "ext4";
};
"/mnt/HDD" = {
device = "/dev/disk/by-uuid/41e7ec41-2e43-4254-9f00-f4be98cddc6e";
fsType = "ext4";
};
};
}