refactor in synaptic style

This commit is contained in:
atagen 2025-07-20 23:35:43 +10:00
parent ce295da1c1
commit da3c0898c7
119 changed files with 1093 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;
}

40
hosts/quiver/boot.nix Normal file
View file

@ -0,0 +1,40 @@
{ pkgs, ... }:
{
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"usbcore"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.initrd.verbose = false;
boot.kernelModules = [
"kvm-amd"
"i2c-dev"
];
boot.consoleLogLevel = 0;
boot.kernelParams = [
"mitigations=off"
"preempt=full"
"quiet"
"loglevel=3"
"systemd.show_status=off"
"rd.udev.log_level=3"
"vt.global_cursor_default=0"
];
boot.supportedFilesystems = {
ntfs = true;
btrfs = true;
};
boot.loader.efi.canTouchEfiVariables = true;
boot.plymouth = {
enable = true;
# inherit (rice.plymouth) theme themePackages font;
};
boot.loader.limine.extraEntries = ''
/Windows
protocol: efi
path: boot():/EFI/Microsoft/Boot/bootmgfw.efi
'';
}

30
hosts/quiver/fs.nix Normal file
View file

@ -0,0 +1,30 @@
{ ... }:
{
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/b993b463-c131-4ef1-9aba-0e3eadaa2f9a";
fsType = "btrfs";
};
"/boot" = {
device = "/dev/disk/by-uuid/6B75-AF9F";
fsType = "vfat";
};
"/data" = {
device = "/dev/disk/by-uuid/39D4F78C658E8B56";
fsType = "ntfs";
options = [
"rw"
"uid=1000"
"gid=100"
];
};
};
swapDevices = [
{ device = "/dev/disk/by-uuid/9c006925-e0e9-4165-bc0c-508ae2d1bfce"; }
];
}

37
hosts/quiver/hw.nix Normal file
View file

@ -0,0 +1,37 @@
{ config, ... }:
{
security.tpm2.enable = true;
hardware.cpu.amd.updateMicrocode = true;
services.xserver.videoDrivers = [ "nvidia" ];
nixpkgs.config.cudaSupport = true;
hardware.nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.latest;
modesetting.enable = true;
powerManagement.enable = true;
nvidiaPersistenced = true;
open = false;
};
hardware.graphics.enable = true;
hardware.graphics.enable32Bit = true;
# openrgb no longer recognises the device?
# systemd.services.no-rgb = {
# wantedBy = ["multi-user.target"];
# description = "rgb led turn-off-er";
# serviceConfig = {
# Type = "oneshot";
# ExecStart = ''${pkgs.openrgb}/bin/openrgb -d "HyperX DRAM" -m static -c 000000'';
# After = ["openrgb"];
# };
# };
# services.hardware.openrgb = {
# enable = true;
# motherboard = "amd";
# };
}

8
hosts/quiver/id.nix Normal file
View file

@ -0,0 +1,8 @@
_: {
networking.hostName = "quiver";
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";
}

13
hosts/quiver/input.nix Normal file
View file

@ -0,0 +1,13 @@
{ lib, pkgs, ... }:
{
hardware.ckb-next.enable = true;
services.libinput.mouse = {
accelProfile = "flat";
accelSpeed = 0.0;
};
hm.quickServices = {
ckb-next = "${lib.getExe pkgs.ckb-next} -c -b";
};
}

20
hosts/quiver/llm.nix Normal file
View file

@ -0,0 +1,20 @@
{ inputs, config, ... }:
{
services.ollama = {
enable = true;
user = "ollama";
};
services.open-webui = {
package = inputs.nixpkgs-stable.legacyPackages.x86_64-linux.open-webui;
enable = true;
port = 8088;
environment = {
DO_NOT_TRACK = "True";
SCARF_NO_ANALYTICS = "True";
ANONYMIZED_TELEMETRY = "False";
WEBUI_AUTH = "False";
DATABASE_URL = "sqlite:///${config.services.open-webui.stateDir}/newdb.db";
};
};
}

14
hosts/quiver/outputs.nix Normal file
View file

@ -0,0 +1,14 @@
{ ... }:
{
hm.programs.niri.settings.outputs = {
"DP-1" = {
transform.rotation = 90;
scale = 1;
};
"DP-2" = {
variable-refresh-rate = true;
scale = 1;
};
};
}

View file

@ -0,0 +1,5 @@
{ ... }:
{
system.stateVersion = "22.11";
hm.home.stateVersion = "22.11";
}