This commit is contained in:
mjallen18
2025-08-19 20:49:06 -05:00
parent 5dd2876fb5
commit 26ecfe79eb
3 changed files with 43 additions and 83 deletions

View File

@@ -1,7 +1,7 @@
{ lib, ... }: { lib, ... }:
let let
defaultSops = (lib.snowfall.fs.get-file "secrets/pi4-secrets.yaml"); # defaultSops = (lib.snowfall.fs.get-file "secrets/pi4-secrets.yaml");
# sharedSops = (lib.snowfall.fs.get-file "secrets/secrets.yaml"); defaultSops = (lib.snowfall.fs.get-file "secrets/secrets.yaml");
in in
{ {
# Permission modes are in octal representation (same as chmod), # Permission modes are in octal representation (same as chmod),

View File

@@ -21,7 +21,6 @@ in
hardware.asahi = { hardware.asahi = {
enable = true; enable = true;
useExperimentalGPUDriver = true;
peripheralFirmwareDirectory = ./firmware; peripheralFirmwareDirectory = ./firmware;
setupAsahiSound = true; setupAsahiSound = true;
}; };

View File

@@ -1,100 +1,61 @@
# 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.
{ lib, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = [ imports =
(modulesPath + "/installer/scan/not-detected.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ boot.initrd.availableKernelModules = [ "usb_storage" "sdhci_pci" ];
"uas"
"sdhci_pci"
];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ]; boot.kernelModules = [ ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = { fileSystems."/" =
device = "none"; { device = "none";
fsType = "tmpfs"; fsType = "tmpfs";
}; options = [ "mode=755" ];
};
fileSystems."/root" = { fileSystems."/boot" =
device = "/dev/disk/by-uuid/adcc14fa-8bf7-4b4b-a9e4-b038993b96cc"; { device = "/dev/disk/by-uuid/E66E-1A03";
fsType = "btrfs"; fsType = "vfat";
options = [ options = [ "fmask=0022" "dmask=0022" ];
"compress=zstd" };
"noatime"
"subvol=root"
];
};
fileSystems."/etc" = { fileSystems."/root" =
device = "/dev/disk/by-uuid/adcc14fa-8bf7-4b4b-a9e4-b038993b96cc"; { device = "/dev/disk/by-uuid/335f1bb3-6fdb-474e-972c-77b64e930d03";
fsType = "btrfs"; fsType = "btrfs";
options = [ options = [ "subvol=root" ];
"compress=zstd" };
"noatime"
"subvol=etc"
];
};
fileSystems."/tmp" = { fileSystems."/etc" =
device = "/dev/disk/by-uuid/adcc14fa-8bf7-4b4b-a9e4-b038993b96cc"; { device = "/dev/disk/by-uuid/335f1bb3-6fdb-474e-972c-77b64e930d03";
fsType = "btrfs"; fsType = "btrfs";
options = [ options = [ "subvol=etc" ];
"compress=zstd" };
"noatime"
"subvol=tmp"
];
};
fileSystems."/nix" = { fileSystems."/nix" =
device = "/dev/disk/by-uuid/adcc14fa-8bf7-4b4b-a9e4-b038993b96cc"; { device = "/dev/disk/by-uuid/335f1bb3-6fdb-474e-972c-77b64e930d03";
fsType = "btrfs"; fsType = "btrfs";
options = [ options = [ "subvol=nix" ];
"compress=zstd" };
"noatime"
"subvol=nix"
];
};
fileSystems."/var/log" = { fileSystems."/var/log" =
device = "/dev/disk/by-uuid/adcc14fa-8bf7-4b4b-a9e4-b038993b96cc"; { device = "/dev/disk/by-uuid/335f1bb3-6fdb-474e-972c-77b64e930d03";
fsType = "btrfs"; fsType = "btrfs";
options = [ options = [ "subvol=log" ];
"compress=zstd" };
"noatime"
"subvol=log"
];
};
fileSystems."/home" = { fileSystems."/home" =
device = "/dev/disk/by-uuid/adcc14fa-8bf7-4b4b-a9e4-b038993b96cc"; { device = "/dev/disk/by-uuid/335f1bb3-6fdb-474e-972c-77b64e930d03";
fsType = "btrfs"; fsType = "btrfs";
options = [ options = [ "subvol=home" ];
"compress=zstd" };
"subvol=home"
];
};
fileSystems."/boot" = { swapDevices = [ ];
device = "/dev/disk/by-uuid/23FA-AD3E";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
# swapDevices = [
# {
# device = "/tmp/swapfile";
# randomEncryption.enable = true;
# }
# ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's # (the default) this is the recommended approach. When using systemd-networkd it's