modularized deployments

This commit is contained in:
2026-08-14 10:07:01 -05:00
parent efad2c82e8
commit a058a8cddc
6 changed files with 99 additions and 26 deletions

View File

View File

@@ -12,9 +12,9 @@
{ {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../services.nix ./services.nix
../packages.nix ./packages.nix
../security.nix ./security.nix
]; ];
# Enable flakes and nix-command # Enable flakes and nix-command
@@ -30,7 +30,6 @@
"electron-39.8.10" "electron-39.8.10"
]; ];
# Use the systemd-boot EFI boot loader.
boot = { boot = {
loader = { loader = {
limine = { limine = {
@@ -47,7 +46,20 @@
networking = { networking = {
hostName = "demilich"; hostName = "demilich";
networkmanager.enable = true;
networkmanager = {
enable = true;
};
nftables = {
enable = true;
};
firewall = {
enable = true;
trustedInterfaces = [ config.services.tailscale.interfaceName ];
allowedUDPPorts = [ config.services.tailscale.port ];
};
}; };
# Set your time zone. # Set your time zone.
@@ -56,7 +68,7 @@
# Select internationalisation properties. # Select internationalisation properties.
i18n.defaultLocale = "en_CA.UTF-8"; i18n.defaultLocale = "en_CA.UTF-8";
console = { console = {
# keyMap = "us"; keyMap = "us";
useXkbConfig = true; useXkbConfig = true;
}; };

View File

@@ -1,31 +1,62 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }: {
config,
lib,
pkgs,
modulesPath,
...
}:
{ {
imports = imports = [
[ (modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" "iwlwifi" ]; boot = {
boot.initrd.kernelModules = [ ]; initrd = {
boot.kernelModules = [ "kvm-intel" "iwlwifi" ]; availableKernelModules = [
"xhci_pci"
"nvme"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
"iwlwifi"
];
kernelModules = [ ];
systemd = {
network = {
wait-online = {
enable = false;
};
};
};
};
};
boot.kernelModules = [
"kvm-intel"
"iwlwifi"
];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/e3f1509a-7556-4eb9-ab4d-20dc2d5ff47d"; device = "/dev/disk/by-uuid/e3f1509a-7556-4eb9-ab4d-20dc2d5ff47d";
fsType = "xfs"; fsType = "xfs";
}; };
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/6E60-FBDB"; device = "/dev/disk/by-uuid/6E60-FBDB";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ]; options = [
"fmask=0077"
"dmask=0077"
];
}; };
swapDevices = swapDevices = [
[ { device = "/dev/disk/by-uuid/eaab6975-f924-485a-a84e-9d37973127ca"; } { device = "/dev/disk/by-uuid/eaab6975-f924-485a-a84e-9d37973127ca"; }
]; ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";

View File

@@ -1,12 +1,42 @@
{ config, ... }: { config, ... }:
{ {
systemd.user.services.niri.enableDefaultPath = false; systemd = {
user = {
services = {
niri = {
enableDefaultPath = false;
};
};
};
services = {
tailscaled = {
serviceConfig = {
Environment = [
"TS_DEBUG_FIREWALL_MODE=nftables"
];
};
};
NetworkManager-wait-online = {
enable = false;
};
};
network = {
wait-online = {
enable = false;
};
};
};
xdg.portal.config.niri = { xdg.portal.config.niri = {
"org.freedesktop.impl.portal.FileChooser" = [ "gtk" ]; "org.freedesktop.impl.portal.FileChooser" = [ "gtk" ];
}; };
services = { services = {
tailscale = {
enable = true;
};
displayManager = { displayManager = {
enable = true; enable = true;
lemurs = { lemurs = {