zaphyra's git: nixfiles

zaphyra's nixfiles

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
{
  config,
  lib,
  ...
}:
let
  cfg = config.common.services.upower;

in
{

  options.common.services.upower.enable = lib.mkEnableOption "upower";

  config = lib.mkIf cfg.enable {
    services.upower.enable = true;

    common.configure.persist.system.dirs = [ "/var/lib/upower" ];
  };

}