fixes, config passes nix flake check .

This commit is contained in:
2026-06-21 22:40:03 -05:00
parent 1c7f690500
commit 3b813df802
11 changed files with 100 additions and 84 deletions
-1
View File
@@ -2,7 +2,6 @@
{ {
imports = [ imports = [
./home.nix
./system.nix ./system.nix
]; ];
} }
+1 -1
View File
@@ -2,7 +2,7 @@
{ {
programs.hyprland.enable = true; programs.hyprland.enable = true;
services.displayManager.sddm.enable = true; services.displayManager.sddm.wayland.enable = true;
xdg.portal = { xdg.portal = {
enable = true; enable = true;
+1 -1
View File
@@ -2,7 +2,7 @@
{ {
services.desktopManager.plasma6.enable = true; services.desktopManager.plasma6.enable = true;
services.displayManager.sddm.enable = true; services.displayManager.sddm.wayland.enable = true;
xdg.portal.enable = true; xdg.portal.enable = true;
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-kde ]; xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-kde ];
+1
View File
@@ -4,6 +4,7 @@
imports = [ imports = [
./programs/bash.nix ./programs/bash.nix
./programs/git.nix ./programs/git.nix
../desktops/hyprland/home.nix
]; ];
home.username = "river"; home.username = "river";
+1 -1
View File
@@ -3,6 +3,6 @@
{ {
programs.eza = { programs.eza = {
enable = true; enable = true;
withIcons = true; icons = "auto";
}; };
} }
+8 -1
View File
@@ -3,6 +3,13 @@
{ {
programs.git = { programs.git = {
enable = true; enable = true;
withDelta = true; };
programs.delta = {
enable = true;
options = {
features = "decorations interactive";
navigate = true;
hyperlinks = true;
};
}; };
} }
+16 -5
View File
@@ -16,23 +16,34 @@
]; ];
boot = { boot = {
zfs.forceImportRoot = false;
supportedFilesystems = [ "zfs" ]; supportedFilesystems = [ "zfs" ];
loader = {
initrd = {
systemd.enable = true;
initrd = {
luks.devices."cryptroot" = { luks.devices."cryptroot" = {
device = "/dev/disk/by-partlabel/luks"; device = "/dev/disk/by-partlabel/luks";
allowDiscards = true; allowDiscards = true;
}; };
initrd.availableKernelModules = [ availableKernelModules = [
"tpm_tis" "tpm_tis"
"tpm_crb" "tpm_crb"
]; ];
}; };
efi.canTouchEfiVariables = true;
loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot"; # Adjust if your EFI partition is mounted elsewhere (e.g., /boot/efi)
}; };
grub = {
enable = true;
device = "nodev"; # "nodev" is required for EFI installs
efiSupport = true;
useOSProber = true; # Set to true if you are dual-booting with Windows/other distros
};
};
kernelModules = [ kernelModules = [
"tpm_tis" "tpm_tis"
"tpm_crb" "tpm_crb"
+4 -7
View File
@@ -1,12 +1,12 @@
{ disk, ... }: { disk, ... }:
{ {
disko.devices.disk.main = { disko.devices = {
disk.main = {
type = "disk"; type = "disk";
device = disk; device = disk;
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
ESP = { ESP = {
size = "1G"; size = "1G";
@@ -21,11 +21,9 @@
luks = { luks = {
size = "100%"; size = "100%";
content = { content = {
type = "luks"; type = "luks";
name = "cryptroot"; name = "cryptroot";
# important: allow TPM-based unlocking # important: allow TPM-based unlocking
settings = { settings = {
allowDiscards = true; allowDiscards = true;
@@ -33,7 +31,6 @@
# this is key for TPM workflows # this is key for TPM workflows
initrdUnlock = true; initrdUnlock = true;
content = { content = {
type = "zfs"; type = "zfs";
pool = "rpool"; pool = "rpool";
@@ -44,14 +41,13 @@
}; };
}; };
# Moved inside disko.devices
zpool.rpool = { zpool.rpool = {
type = "zpool"; type = "zpool";
rootFsOptions = { rootFsOptions = {
compression = "zstd"; compression = "zstd";
"com.sun:auto-snapshot" = "true"; "com.sun:auto-snapshot" = "true";
}; };
datasets = { datasets = {
root = { root = {
type = "zfs_fs"; type = "zfs_fs";
@@ -69,4 +65,5 @@
}; };
}; };
}; };
};
} }
+5 -3
View File
@@ -12,16 +12,18 @@
services.resolved = { services.resolved = {
enable = true; enable = true;
settings.Resolve = {
dnssec = "true"; dnssec = "true";
DNSOverTLS = "true";
domains = [ "~." ]; domains = [ "~." ];
fallbackDns = [ fallbackDns = [
"192.168.1.193" # Pi-hole "192.168.1.193" # Pi-hole
"1.1.1.1" # Cloudflare "1.1.1.1" # Cloudflare
"1.0.0.1" # Cloudflare (Secondary) "1.0.0.1" # Cloudflare (Secondary)
]; ];
extraConfig = '' };
DNSOverTLS=yes
'';
}; };
networking.nftables.enable = true; networking.nftables.enable = true;
+1 -1
View File
@@ -1,4 +1,4 @@
{ ... }: { config, ... }:
{ {
services.tailscale.enable = true; services.tailscale.enable = true;
-1
View File
@@ -6,7 +6,6 @@
virtualisation.libvirtd = { virtualisation.libvirtd = {
enable = true; enable = true;
qemu = { qemu = {
ovmf.enable = true;
swtpm.enable = true; swtpm.enable = true;
}; };
}; };