refactor in style of synaptic standard

This commit is contained in:
atagen 2025-07-20 23:35:43 +10:00
parent ce295da1c1
commit 2fa2ecce0c
119 changed files with 1099 additions and 3109 deletions

25
hosts/adrift/boot.nix Normal file
View file

@ -0,0 +1,25 @@
{ ... }:
{
boot.kernelParams = [
"mitigations=off"
"quiet"
"loglevel=3"
"systemd.show_status=auto"
"rd.udev.log_level=3"
"vt.global_cursor_default=0"
];
boot.initrd.availableKernelModules = [
"xhci_pci"
"nvme"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [
"iwlwifi"
"kvm-intel"
];
boot.loader.systemd-boot.configurationLimit = 2;
boot.loader.efi.canTouchEfiVariables = true;
}

18
hosts/adrift/fs.nix Normal file
View file

@ -0,0 +1,18 @@
{ ... }:
{
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/1C5C-8FF4";
fsType = "vfat";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/26389642-cf51-4c58-98e9-1fe491a11bb9";
fsType = "ext4";
};
swapDevices = [
{ device = "/dev/disk/by-uuid/a732641d-1233-45a7-8614-53caed60f11b"; }
];
}

5
hosts/adrift/hw.nix Normal file
View file

@ -0,0 +1,5 @@
{ lib, config, ... }:
{
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
services.xserver.videoDrivers = [ "i915" ];
}

9
hosts/adrift/id.nix Normal file
View file

@ -0,0 +1,9 @@
{ ... }:
{
networking.hostName = "adrift"; # Define your hostname.
time.timeZone = "Australia/Sydney";
time.hardwareClockInLocalTime = false;
i18n.defaultLocale = "en_AU.UTF-8";
i18n.supportedLocales = [ "en_AU.UTF-8/UTF-8" ];
nixpkgs.system = "x86_64-linux";
}

6
hosts/adrift/power.nix Normal file
View file

@ -0,0 +1,6 @@
{ lib, ... }:
{
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
services.power-profiles-daemon.enable = false;
services.tlp.enable = true;
}