update system

This commit is contained in:
2024-04-17 10:03:57 +02:00
parent 6e0e34e425
commit 4c78f4b5e6
260 changed files with 8100 additions and 7799 deletions

View File

@@ -0,0 +1,39 @@
{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.shell.asztal;
in
{
options.shell.asztal = {
enable = mkEnableOption (mdDoc "Enable a shell based on AGS");
};
config = mkIf cfg.enable {
systemd.user.services.asztal = {
Unit = {
Description = "asztal";
PartOf = [
"graphical-session.target"
"tray.target"
];
};
Service = {
ExecStart = "${pkgs.asztal}/bin/asztal";
ExecReload = "${pkgs.coreutils}/bin/kill -SIGUSR2 $MAINPID";
Restart = "always";
KillMode = "mixed";
Environment = "PATH=/run/current-system/sw/bin/:${with pkgs; lib.makeBinPath [ ]}";
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
};
};
}