mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-01-03 06:12:51 +00:00
update system
This commit is contained in:
39
modules/home-manager/shell/asztal.nix
Normal file
39
modules/home-manager/shell/asztal.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user