1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

fusuma: add missing dependencies

This commit is contained in:
zorrobert 2024-02-23 13:25:32 +01:00 committed by Robert Helgesson
parent 587719494e
commit bd9141ea97
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED
4 changed files with 10 additions and 9 deletions

View file

@ -96,10 +96,11 @@ in {
extraPackages = mkOption {
type = types.listOf types.package;
default = with pkgs; [ coreutils ];
defaultText = literalExpression "pkgs.coreutils";
default = with pkgs; [ xdotool coreutils xorg.xprop ];
defaultText =
literalExpression "pkgs.xdotool pkgs.coreutils pkgs.xorg.xprop";
example = literalExpression ''
with pkgs; [ coreutils xdotool ];
with pkgs; [ xdotool coreutils xorg.xprop ];
'';
description = ''
Extra packages needs to bring to the scope of fusuma service.
@ -113,7 +114,7 @@ in {
lib.platforms.linux)
];
xdg.configFile."fusuma/config.yaml".source = configYaml;
xdg.configFile."fusuma/config.yml".source = configYaml;
systemd.user.services.fusuma = {
Unit = {
@ -124,8 +125,7 @@ in {
Service = {
Environment = with pkgs; "PATH=${makeBinPath cfg.extraPackages}";
ExecStart =
"${cfg.package}/bin/fusuma -c ${config.xdg.configHome}/fusuma/config.yaml";
ExecStart = "${cfg.package}/bin/fusuma";
};
Install = { WantedBy = [ "graphical-session.target" ]; };

View file

@ -2,8 +2,8 @@
WantedBy=graphical-session.target
[Service]
Environment=PATH=@coreutils@/bin:@xdotool@/bin
ExecStart=@fusuma@/bin/fusuma -c /home/hm-user/.config/fusuma/config.yaml
Environment=PATH=@coreutils@/bin:@xdotool@/bin:@xorg.xprop@/bin
ExecStart=@fusuma@/bin/fusuma
[Unit]
After=graphical-session-pre.target

View file

@ -7,6 +7,7 @@
extraPackages = [
(config.lib.test.mkStubPackage { outPath = "@coreutils@"; })
(config.lib.test.mkStubPackage { outPath = "@xdotool@"; })
(config.lib.test.mkStubPackage { outPath = "@xorg.xprop@"; })
];
settings = { };
};

View file

@ -18,7 +18,7 @@
nmt.script = ''
assertFileContent \
home-files/.config/fusuma/config.yaml \
home-files/.config/fusuma/config.yml \
${./expected-settings.yaml}
'';
}