mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:50:44 +08:00
hyprshot: add platform assertion
Only available on linux. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
@@ -30,9 +30,15 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config.home = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
packages = lib.mkIf (cfg.package != null) [ cfg.package ];
|
assertions = [
|
||||||
|
(lib.hm.assertions.assertPlatform "programs.hyprshot" pkgs lib.platforms.linux)
|
||||||
|
];
|
||||||
|
|
||||||
sessionVariables = lib.mkIf (cfg.saveLocation != null) { HYPRSHOT_DIR = cfg.saveLocation; };
|
home = {
|
||||||
|
packages = lib.mkIf (cfg.package != null) [ cfg.package ];
|
||||||
|
|
||||||
|
sessionVariables = lib.mkIf (cfg.saveLocation != null) { HYPRSHOT_DIR = cfg.saveLocation; };
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user