Update to (somewhat?) dendritic pattern

Heavily inspired by https://github.com/Doc-Steve/dendritic-design-with-flake-parts.

> Atomic commits? Never heard of them!
This commit is contained in:
Weckyy702
2026-03-15 15:04:47 +01:00
parent 5f41ff2b1b
commit e34b5ecce3
81 changed files with 1413 additions and 1073 deletions

View File

@@ -0,0 +1,14 @@
{ inputs, ... }: {
flake.modules.nixos.keith = {
imports = with inputs.self.modules.nixos;
with inputs.self.factory; [
system-desktop
(autologin "weckyy702")
(grub-boot "/dev/nvme0n1")
development-tools
i18n-de
#TODO: moar aspects
];
};
}

View File

@@ -0,0 +1,12 @@
{
flake.modules.nixos.keith = {
fileSystems."/" = {
device = "/dev/disk/by-uuid/0869e843-348d-47e3-b6a1-79ad814ff62b";
fsType = "ext4";
};
swapDevices = [
{ device = "/dev/disk/by-uuid/40b22e5b-839d-4189-93e7-246407cc76c7"; }
];
};
}

View File

@@ -0,0 +1,3 @@
{ inputs, ... }: {
flake.nixosConfigurations = inputs.self.lib.mkNixos "x86_64-linux" "keith";
}

View File

@@ -0,0 +1,13 @@
{ inputs, ... }: {
flake.modules.nixos.keith = { lib, ... }: {
hardware.enableRedistributableFirmware = true;
imports = with inputs.self.modules.nixos; [
amd-gpu
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
nixpkgs.hostPlatform = "x86_64-linux";
hardware.cpu.amd.updateMicrocode = true;
};
}

View File

@@ -0,0 +1,31 @@
{
flake.modules.nixos.keith = {
networking.hostName = "keith";
networking.networkmanager = {
enable = true;
ensureProfiles.profiles = {
p2p-nas = {
connection = {
id = "p2p-nas";
type = "ethernet";
interface-name = "enp1s0";
autoconnect = true;
};
ipv6 = {
method = "manual";
addresses = "fd00:fa57::1/64";
};
ipv4.method = "disabled";
ethernet.mtu = 9000;
};
};
};
networking.extraHosts = ''
fd00:fa57::2 duke.veltnet
'';
networking.firewall.enable = false;
};
}

View File

@@ -0,0 +1,6 @@
{
flake.modules.nixos.keith.fileSystems."/home/weckyy702/Documents" = {
device = "/dev/disk/by-uuid/2d6f2255-eca4-489b-9f0f-6c455cd394fc";
fsType = "ext4";
};
}

View File

@@ -0,0 +1,16 @@
{ inputs, ... }: {
flake.modules.nixos.keith = { config, ... }: {
age.secrets."nas-creds".file = "${inputs.secrets}/nas-creds.age";
imports = with inputs.self.factory; [
(mount-cifs {
host = "duke.veltnet";
resource = "home";
destination = "/home/weckyy702/duke";
credentials_path = "${config.age.secrets.nas-creds.path}";
UID = "weckyy702";
GID = "users";
})
];
};
}

View File

@@ -0,0 +1,25 @@
{ inputs, ... }: {
flake.modules.nixos.keith = { config, ... }: {
imports = with inputs.self.modules.nixos; [
weckyy702
steam
];
home-manager.users.weckyy702 = { config, ... }: {
imports = with inputs.self.modules.homeManager;
with inputs.self.factory; [
(hyprpaper {
wallpaper_path = "${inputs.assets}/horizontal_16x9.png";
monitor_names = [
"DP-1"
"HDMI-A-1"
];
})
vesktop
spicetify
borgmatic
qbittorrent
];
};
};
}