more moving things around

This commit is contained in:
Noah Masur
2025-02-16 15:40:15 -05:00
parent b36895f108
commit dc6b6f8328
34 changed files with 368 additions and 386 deletions

View File

@ -2,6 +2,7 @@
config,
pkgs,
lib,
wallpapers ? null,
...
}:
@ -14,8 +15,9 @@ in
options.nmasur.presets.services.lightdm = {
enable = lib.mkEnableOption "Lightdm display manager";
wallpaper = {
type = lib.types.path;
type = lib.types.nullOr lib.types.path;
description = "Wallpaper background image file";
default = "${wallpapers}/gruvbox/road.jpg";
};
gtk.theme = {
name = lib.mkOption {

View File

@ -23,5 +23,28 @@ in
prometheus.scrapeTargets = [
"127.0.0.1:${builtins.toString config.services.prometheus.exporters.zfs.port}"
];
zramSwap.enable = true;
swapDevices = [
{
device = "/swapfile";
size = 4 * 1024; # 4 GB
}
];
boot.zfs = {
# Automatically load the ZFS pool on boot
extraPools = [ "tank" ];
# Only try to decrypt datasets with keyfiles
requestEncryptionCredentials = [
"tank/archive"
"tank/generic"
"tank/nextcloud"
"tank/generic/git"
];
# If password is requested and fails, continue to boot eventually
passwordTimeout = 300;
};
};
}