mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
hyprshot: add platform assertion
Only available on linux. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
3c3076b1c1
commit
9f2912e3a6
1 changed files with 9 additions and 3 deletions
|
|
@ -30,9 +30,15 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
config.home = lib.mkIf cfg.enable {
|
||||
packages = lib.mkIf (cfg.package != null) [ cfg.package ];
|
||||
config = lib.mkIf cfg.enable {
|
||||
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; };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue