mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 14:20:14 +00:00
more moving things around
This commit is contained in:
@ -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 {
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user