This commit is contained in:
parent
640ac96ece
commit
5c96b6fa02
4 changed files with 67 additions and 34 deletions
|
|
@ -44,7 +44,6 @@
|
||||||
#############################################################################
|
#############################################################################
|
||||||
# Make boot time quicker
|
# Make boot time quicker
|
||||||
boot.loader.timeout = 5;
|
boot.loader.timeout = 5;
|
||||||
boot.loader.systemd-boot.configurationLimit = 5;
|
|
||||||
systemd.services.NetworkManager-wait-online.enable = false;
|
systemd.services.NetworkManager-wait-online.enable = false;
|
||||||
systemd.services.systemd-udev-settle.enable = false;
|
systemd.services.systemd-udev-settle.enable = false;
|
||||||
systemd.services.firewall = {
|
systemd.services.firewall = {
|
||||||
|
|
@ -52,7 +51,6 @@
|
||||||
after = [ "multi-user.target" ];
|
after = [ "multi-user.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.initrd.systemd.enable = true;
|
|
||||||
boot.initrd.verbose = false;
|
boot.initrd.verbose = false;
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,8 @@
|
||||||
# Bootloader
|
# Bootloader
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
boot.loader.systemd-boot.configurationLimit = 5;
|
||||||
|
boot.initrd.systemd.enable = true;
|
||||||
|
|
||||||
system.autoUpgrade = {
|
system.autoUpgrade = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -37,12 +37,14 @@
|
||||||
kernelParams = [ "acpi_osi=" ];
|
kernelParams = [ "acpi_osi=" ];
|
||||||
};
|
};
|
||||||
hardware.enableRedistributableFirmware = true;
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
boot.loader.systemd-boot.configurationLimit = 5;
|
||||||
|
boot.initrd.systemd.enable = true;
|
||||||
|
|
||||||
services.xserver.deviceSection = lib.mkDefault ''
|
services.xserver.deviceSection = lib.mkDefault ''
|
||||||
Option "TearFree" "true"
|
Option "TearFree" "true"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Enable Bluetooth
|
#Enable Bluetooth
|
||||||
hardware.bluetooth = {
|
hardware.bluetooth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
powerOnBoot = true;
|
powerOnBoot = true;
|
||||||
|
|
@ -72,7 +74,6 @@ services.xserver.deviceSection = lib.mkDefault ''
|
||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
32
hosts/hardware/FredOS-Mediaserver.nix
Normal file
32
hosts/hardware/FredOS-Mediaserver.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
#./hosts/hardware/FredOS-Mediaserver.nix
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "uhci_hcd" "usbhid" "usb_storage" "sd_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" = {
|
||||||
|
device = "/dev/disk/by-uuid/6008e793-4b24-4e62-821f-7a204fef5729";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
|
networking.hostName = "FredOS-Mediaserver";
|
||||||
|
|
||||||
|
boot.loader.grub.enable = true;
|
||||||
|
boot.loader.grub.device = "/dev/sdc";
|
||||||
|
boot.loader.grub.forceInstall = false;
|
||||||
|
|
||||||
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
|
system.stateVersion = "25.11";
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue