mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
complete rework v2
This commit is contained in:
parent
16813aeef9
commit
7409e9ca10
106 changed files with 1522 additions and 403 deletions
46
parts/modules/desktop/astal/default.nix
Normal file
46
parts/modules/desktop/astal/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
packageName = "astal";
|
||||
|
||||
package = inputs.ags.lib.bundle {
|
||||
inherit pkgs;
|
||||
src = ./src;
|
||||
name = packageName;
|
||||
gtk4 = true;
|
||||
entry = "app.ts";
|
||||
extraPackages = with inputs.ags.packages.${pkgs.system}; [
|
||||
battery
|
||||
bluetooth
|
||||
hyprland
|
||||
network
|
||||
tray
|
||||
notifd
|
||||
mpris
|
||||
wireplumber
|
||||
];
|
||||
};
|
||||
in {
|
||||
user.home-manager = {
|
||||
systemd.user.services.astal = {
|
||||
Unit = {
|
||||
Description = "Astal";
|
||||
Documentation = "https://github.com/Aylur/astal";
|
||||
After = ["graphical-session.target"];
|
||||
};
|
||||
|
||||
Service = {
|
||||
ExecStart = "${package}/bin/${packageName}";
|
||||
Restart = "on-failure";
|
||||
KillMode = "mixed";
|
||||
Slice = "app-graphical.slice";
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = ["graphical-session.target"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue