bring back "vm"

This commit is contained in:
2024-02-04 16:18:47 +02:00
parent c86f3b00a9
commit 967a94af6d
10 changed files with 169 additions and 49 deletions

View File

@@ -7,6 +7,7 @@
cfg = config.mj.base.users;
in {
options.mj.base.users = with lib.types; {
enable = lib.mkEnableOption "enable motiejus and root";
fullDesktop = lib.mkOption {
type = bool;
default = false;
@@ -32,7 +33,7 @@ in {
};
};
config = {
config = lib.mkIf cfg.enable {
users = {
mutableUsers = false;

View File

@@ -8,7 +8,9 @@
};
config = lib.mkIf config.mj.base.zfs.enable {
services.zfs = assert lib.assertMsg config.mj.base.unitstatus.enable "mj.base.unitstatus must be enabled"; {
# TODO
#services.zfs = assert lib.assertMsg (config.mj.base.unitstatus.enable "mj.base.unitstatus must be enabled"; {
services.zfs = {
autoScrub.enable = true;
trim.enable = true;
expandOnBoot = "all";