Merge branch 'main' of ssh://git.nixfox.ca:2299/Bun/nixos-config

This commit is contained in:
Bun 2025-03-09 17:27:13 -04:00
commit d55148ac45
4 changed files with 12 additions and 19 deletions

View file

@ -1,7 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
boot = { boot = {
kernelPackages = pkgs.linuxPackages_5_10; kernelPackages = pkgs.linuxPackages_5_15;
swraid = { swraid = {
enable = true; enable = true;
mdadmConf = "MAILADDR contact@nixfox.ca"; mdadmConf = "MAILADDR contact@nixfox.ca";

View file

@ -1,4 +1,4 @@
{ ... }: { pkgs, ... }:
{ {
boot = { boot = {
kernelPackages = pkgs.linuxPackages_latest; kernelPackages = pkgs.linuxPackages_latest;

View file

@ -62,18 +62,14 @@
mountOptions = [ "compress=zstd" "noatime" ]; mountOptions = [ "compress=zstd" "noatime" ];
}; };
# Impermanence # Impermanence
"/persist" = { "/persist" = {
mountpoint = "/persist"; mountpoint = "/persist";
mountOptions = [ "compress=zstd" "noatime" ]; mountOptions = [ "compress=zstd" "noatime" ];
}; };
"/persist/.snapshots" = { }; "/persist/.snapshots" = { };
"/persist/home/${config.sysusers.main}" = { };
"/${config.sysusers.main}" = { "/persist/home/${config.sysusers.main}/.snapshots" = { };
mountpoint = "/persist/home/${config.sysusers.main}";
mountOptions = [ "compress=zstd" "noatime" ];
};
"/${config.sysusers.main}/.snapshots" = { };
}; };
}; };
}; };
@ -90,8 +86,5 @@
}; };
# Needed for impermanence # Needed for impermanence
fileSystems = { fileSystems."/persist".neededForBoot = true;
"/persist".neededForBoot = true;
"/persist/home/${config.sysusers.main}".neededForBoot = true;
};
} }

View file

@ -1,7 +1,7 @@
{ config, ... }: { config, ... }:
{ {
xdg.userDirs = { xdg.userDirs = {
enable = true; enable = config.home.desktop.enable;
createDirectories = true; createDirectories = true;
desktop = null; desktop = null;
music = null; music = null;