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:
14
modules/hosts/keith/configuration.nix
Normal file
14
modules/hosts/keith/configuration.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
12
modules/hosts/keith/filesystems.nix
Normal file
12
modules/hosts/keith/filesystems.nix
Normal 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"; }
|
||||
];
|
||||
};
|
||||
}
|
||||
3
modules/hosts/keith/flake-parts.nix
Normal file
3
modules/hosts/keith/flake-parts.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{ inputs, ... }: {
|
||||
flake.nixosConfigurations = inputs.self.lib.mkNixos "x86_64-linux" "keith";
|
||||
}
|
||||
13
modules/hosts/keith/hardware.nix
Normal file
13
modules/hosts/keith/hardware.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
31
modules/hosts/keith/networking.nix
Normal file
31
modules/hosts/keith/networking.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
6
modules/hosts/keith/users/weckyy702/filesystems.nix
Normal file
6
modules/hosts/keith/users/weckyy702/filesystems.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
16
modules/hosts/keith/users/weckyy702/mount-nas.nix
Normal file
16
modules/hosts/keith/users/weckyy702/mount-nas.nix
Normal 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";
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
25
modules/hosts/keith/users/weckyy702/weckyy702.nix
Normal file
25
modules/hosts/keith/users/weckyy702/weckyy702.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user