First Commit

This commit is contained in:
2026-01-05 04:04:36 +01:00
commit c7a17f7772
83 changed files with 3574 additions and 0 deletions

23
hosts/lillypc/config.nix Normal file
View File

@@ -0,0 +1,23 @@
{
my = {
gaming.enable = true;
cachyosKernel.enable = true;
desktop = {
enable = true;
sddm = {
enable = true;
autoLogin.enable = true;
};
hyprland.enable = true;
flatpak.enable = true;
};
nvidia.enable = true;
openlinkhub.enable = true;
rgb.enable = true;
};
openlinkhub.enable = true;
}

19
hosts/lillypc/default.nix Normal file
View File

@@ -0,0 +1,19 @@
{ lib, ... }:
let
b = builtins;
module_files =
b.readDir ./. |>
lib.filterAttrs (name: type:
( (lib.strings.hasSuffix ".nix" name
&& name != "default.nix"
&& type == "regular" )
|| ( type == "directory"
&& b.pathExists ./${name}/default.nix))
) |>
b.attrNames |>
b.map (f: ./${f});
in
{
imports = module_files;
}

View File

@@ -0,0 +1,44 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "ahci" "thunderbolt" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/8ef1b753-7a4a-4062-a906-6a01ce7b6111";
fsType = "btrfs";
options = [ "subvol=@" "rw" "relatime" "compress=zstd:3" "ssd" "discard=async" "space_cache=v2" ];
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/8ef1b753-7a4a-4062-a906-6a01ce7b6111";
fsType = "btrfs";
options = [ "subvol=@home" "rw" "relatime" "compress=zstd:3" "ssd" "discard=async" "space_cache=v2" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/69B8-FDBD";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
fileSystems."/data" =
{ device = "/dev/disk/by-uuid/5c58c3c4-2ce8-4ad9-8277-ff7503462f88";
fsType = "btrfs";
options = [ "rw" "relatime" "compress=zstd:3" "ssd" "discard=async" "space_cache=v2" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/58267d20-fa23-4874-b619-36a263f8be88"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View File

@@ -0,0 +1,5 @@
{
systemd.tmpfiles.rules = [
"L+ /var/lib/OpenRGB/sizes.ors - - - - ${./openrgb/sizes.ors}"
];
}

Binary file not shown.

View File

@@ -0,0 +1,36 @@
{ pkgs, username, ... }:
#let mount_opts = "x-systemd.automount,user,iocharset=utf8,rw,noauto,nofail,credentials=/etc/nixos/smb-secrets,uid=1000,gid=100";
let mount_opts = "iocharset=utf8,rw,auto,nofail,credentials=/etc/nixos/smb-secrets,uid=1000,gid=100";
in {
environment.systemPackages = [ pkgs.cifs-utils ];
fileSystems."/home/${username}/Shares/NAS" = {
device = "//10.0.10.5/LillyNAS";
fsType = "cifs";
options = [ "${mount_opts}" ];
};
fileSystems."/home/${username}/Shares/3D-Printing" = {
device = "//10.0.10.5/3D-Printing";
fsType = "cifs";
options = [ "${mount_opts}" ];
};
fileSystems."/home/${username}/Shares/Media" = {
device = "//10.0.10.5/Media";
fsType = "cifs";
options = [ "${mount_opts}" ];
};
fileSystems."/home/${username}/Shares/PaperlessConsume" = {
device = "//10.0.10.5/PaperlessConsume";
fsType = "cifs";
options = [ "${mount_opts}" ];
};
fileSystems."/home/${username}/Shares/LillyPhoneSync" = {
device = "//10.0.10.5/LillyPhoneSync";
fsType = "cifs";
options = [ "${mount_opts}" ];
};
}

12
hosts/lillypc/systemd.nix Normal file
View File

@@ -0,0 +1,12 @@
{ pkgs, ... }:
{
systemd.services.nvidia-undervolt = {
enable = true;
description = "Set NVIDIA GPU undervolt";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "oneshot";
ExecStart = "${pkgs.nvidia_oc}/bin/nvidia_oc set --index 0 --freq-offset 250";
};
};
}

6
hosts/lillypc/udev.nix Normal file
View File

@@ -0,0 +1,6 @@
{
services.udev.extraRules = ''
KERNEL=="card*", KERNELS=="0000:6d:00.0", SUBSYSTEM=="drm", SUBSYSTEMS=="pci", SYMLINK+="dri/amd-igpu"
KERNEL=="card*", KERNELS=="0000:01:00.0", SUBSYSTEM=="drm", SUBSYSTEMS=="pci", SYMLINK+="dri/nvidia-dgpu"
'';
}