mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +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 {
|
||||
assertions = [
|
||||
(lib.hm.assertions.assertPlatform "programs.hyprshot" pkgs lib.platforms.linux)
|
||||
];
|
||||
|
||||
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