config.nix/hosts/marty-server.nix
2025-12-18 11:47:21 +01:00

70 lines
1.2 KiB
Nix

{
config,
lib,
pkgs,
modulesPath,
home-manager,
inputs,
...
}:
{
networking = {
hostName = "marty-server";
interfaces = {
eno1 = {
wakeOnLan = {
enable = true;
policy = [ "magic" ];
};
};
};
};
home-manager = {
extraSpecialArgs = { inherit inputs; };
useGlobalPkgs = true;
useUserPackages = true;
users = {
marty = import ./../modules/home.nix;
};
};
# PREVIOUSLY HARDWARE-CONFIGURATION.NIX
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usbhid"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/a804bdf0-194c-4fe4-a451-64620d3d293d";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/44A5-B01F";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
fileSystems = {
"/mnt/Data" = {
device = "/dev/disk/by-uuid/20eaea9c-6924-40c6-a784-cd5018d8fabb";
fsType = "ext4";
};
};
}