update for AI stuff and new nix syntax

This commit is contained in:
atagen 2024-04-30 02:38:36 +10:00
parent a770f582dd
commit 4712934003
8 changed files with 152 additions and 136 deletions

View file

@ -10,6 +10,12 @@
type = with types; attrsOf str;
default = {};
};
ezOneShots = with lib;
mkOption {
type = with types; attrsOf str;
default = {};
};
ezConf = with lib;
mkOption {
type = with types; attrsOf path;
@ -39,7 +45,21 @@
WantedBy = ["graphical-session.target"] ++ config.extraTarget;
};
})
config.ezServices;
config.ezServices
// builtins.mapAttrs (name: cmd: {
Unit = {
Description = "${name}";
After = ["graphical-session.target"] ++ config.extraTarget;
};
Service = {
ExecStart = cmd;
Type = "oneshot";
};
Install = {
WantedBy = ["graphical-session.target"] ++ config.extraTarget;
};
})
config.ezOneShots;
xdg.configFile =
builtins.mapAttrs (name: value: {