mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Services] Make journald log storage persistent in developer mode
This commit is contained in:
parent
d120a3801b
commit
38cad649bf
2 changed files with 8 additions and 4 deletions
|
|
@ -80,6 +80,10 @@ in {
|
|||
"doc" "info" "dev" "debug" "static"
|
||||
];
|
||||
|
||||
aviallon.services.journald.extraConfig = {
|
||||
Storage = mkForce "persistent";
|
||||
};
|
||||
|
||||
aviallon.boot.configurationLimit = mkDefault 10;
|
||||
|
||||
aviallon.programs.allowUnfreeList = [
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ in {
|
|||
journald.extraConfig = mkOption {
|
||||
default = {};
|
||||
example = {};
|
||||
type = types.attrs;
|
||||
type = with types; attrsOf (oneOf [ bool int str ]);
|
||||
description = "Add extra config to journald with Nix language";
|
||||
};
|
||||
};
|
||||
|
|
@ -151,10 +151,10 @@ in {
|
|||
|
||||
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 {
|
||||
Storage = "volatile";
|
||||
aviallon.services.journald.extraConfig = {
|
||||
Storage = mkIf generalCfg.unsafeOptimizations "volatile";
|
||||
};
|
||||
|
||||
services.ananicy.enable = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue