Mostly security changes, add nouveau as a boot option, simplify settings and prepare for home-manager options

This commit is contained in:
Jimbo 2024-11-29 01:49:18 -05:00
parent 6021f46c20
commit 137a9ab6d9
58 changed files with 281 additions and 269 deletions

View file

@ -6,7 +6,7 @@
disk = {
"${config.networking.hostName}" = {
type = "disk";
device = "/dev/sdg";
device = "/dev/nvme0n1";
content = {
type = "gpt";
partitions = {
@ -39,13 +39,6 @@
};
};
nodev = {
"/" = {
fsType = "tmpfs";
mountOptions = [ "size=4G" ];
};
};
lvm_vg = {
"${config.networking.hostName}" = {
type = "lvm_vg";
@ -56,6 +49,14 @@
type = "btrfs";
extraArgs = [ "-f" ];
subvolumes = {
"/root" = {
mountpoint = "/";
mountOptions = [ "compress=zstd" "noatime" "ssd" ];
};
"/prev" = {
mountpoint = "/prev";
mountOptions = [ "compress=zstd" "noatime" "ssd" ];
};
"/nix" = {
mountpoint = "/nix";
mountOptions = [ "compress=zstd" "noatime" "ssd" ];
@ -77,7 +78,7 @@
};
};
swap = {
size = "8G";
size = "4G";
content = {
type = "swap";
discardPolicy = "both";