[Services] Make journald log storage persistent in developer mode

This commit is contained in:
Antoine Viallon 2023-05-14 22:47:20 +02:00
parent d120a3801b
commit 38cad649bf
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
2 changed files with 8 additions and 4 deletions

View file

@ -80,6 +80,10 @@ in {
"doc" "info" "dev" "debug" "static" "doc" "info" "dev" "debug" "static"
]; ];
aviallon.services.journald.extraConfig = {
Storage = mkForce "persistent";
};
aviallon.boot.configurationLimit = mkDefault 10; aviallon.boot.configurationLimit = mkDefault 10;
aviallon.programs.allowUnfreeList = [ aviallon.programs.allowUnfreeList = [

View file

@ -39,7 +39,7 @@ in {
journald.extraConfig = mkOption { journald.extraConfig = mkOption {
default = {}; default = {};
example = {}; example = {};
type = types.attrs; type = with types; attrsOf (oneOf [ bool int str ]);
description = "Add extra config to journald with Nix language"; description = "Add extra config to journald with Nix language";
}; };
}; };
@ -151,10 +151,10 @@ in {
services.fwupd.enable = true; services.fwupd.enable = true;
services.journald.extraConfig = journaldConfig cfg.journald.extraConfig; services.journald.extraConfig = mkOverride 2 (journaldConfig cfg.journald.extraConfig);
aviallon.services.journald.extraConfig = ifEnable generalCfg.unsafeOptimizations { aviallon.services.journald.extraConfig = {
Storage = "volatile"; Storage = mkIf generalCfg.unsafeOptimizations "volatile";
}; };
services.ananicy.enable = false; services.ananicy.enable = false;