fixes, config passes nix flake check .
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
{
|
||||
imports = [
|
||||
./home.nix
|
||||
./system.nix
|
||||
];
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
{
|
||||
programs.hyprland.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.displayManager.sddm.wayland.enable = true;
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
{
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.displayManager.sddm.wayland.enable = true;
|
||||
|
||||
xdg.portal.enable = true;
|
||||
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-kde ];
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
imports = [
|
||||
./programs/bash.nix
|
||||
./programs/git.nix
|
||||
../desktops/hyprland/home.nix
|
||||
];
|
||||
|
||||
home.username = "river";
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
{
|
||||
programs.eza = {
|
||||
enable = true;
|
||||
withIcons = true;
|
||||
icons = "auto";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3,6 +3,13 @@
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
withDelta = true;
|
||||
};
|
||||
programs.delta = {
|
||||
enable = true;
|
||||
options = {
|
||||
features = "decorations interactive";
|
||||
navigate = true;
|
||||
hyperlinks = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -16,23 +16,34 @@
|
||||
];
|
||||
|
||||
boot = {
|
||||
zfs.forceImportRoot = false;
|
||||
supportedFilesystems = [ "zfs" ];
|
||||
loader = {
|
||||
initrd = {
|
||||
systemd.enable = true;
|
||||
|
||||
initrd = {
|
||||
luks.devices."cryptroot" = {
|
||||
device = "/dev/disk/by-partlabel/luks";
|
||||
allowDiscards = true;
|
||||
};
|
||||
|
||||
initrd.availableKernelModules = [
|
||||
availableKernelModules = [
|
||||
"tpm_tis"
|
||||
"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 = [
|
||||
"tpm_tis"
|
||||
"tpm_crb"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{ disk, ... }:
|
||||
|
||||
{
|
||||
disko.devices.disk.main = {
|
||||
disko.devices = {
|
||||
disk.main = {
|
||||
type = "disk";
|
||||
device = disk;
|
||||
content = {
|
||||
type = "gpt";
|
||||
|
||||
partitions = {
|
||||
ESP = {
|
||||
size = "1G";
|
||||
@@ -21,11 +21,9 @@
|
||||
|
||||
luks = {
|
||||
size = "100%";
|
||||
|
||||
content = {
|
||||
type = "luks";
|
||||
name = "cryptroot";
|
||||
|
||||
# important: allow TPM-based unlocking
|
||||
settings = {
|
||||
allowDiscards = true;
|
||||
@@ -33,7 +31,6 @@
|
||||
|
||||
# this is key for TPM workflows
|
||||
initrdUnlock = true;
|
||||
|
||||
content = {
|
||||
type = "zfs";
|
||||
pool = "rpool";
|
||||
@@ -44,14 +41,13 @@
|
||||
};
|
||||
};
|
||||
|
||||
# Moved inside disko.devices
|
||||
zpool.rpool = {
|
||||
type = "zpool";
|
||||
|
||||
rootFsOptions = {
|
||||
compression = "zstd";
|
||||
"com.sun:auto-snapshot" = "true";
|
||||
};
|
||||
|
||||
datasets = {
|
||||
root = {
|
||||
type = "zfs_fs";
|
||||
@@ -69,4 +65,5 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -12,16 +12,18 @@
|
||||
|
||||
services.resolved = {
|
||||
enable = true;
|
||||
|
||||
settings.Resolve = {
|
||||
dnssec = "true";
|
||||
DNSOverTLS = "true";
|
||||
domains = [ "~." ];
|
||||
fallbackDns = [
|
||||
"192.168.1.193" # Pi-hole
|
||||
"1.1.1.1" # Cloudflare
|
||||
"1.0.0.1" # Cloudflare (Secondary)
|
||||
];
|
||||
extraConfig = ''
|
||||
DNSOverTLS=yes
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
networking.nftables.enable = true;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ ... }:
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.tailscale.enable = true;
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
virtualisation.libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
ovmf.enable = true;
|
||||
swtpm.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user