mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
swaylock: add platform assertion
This commit is contained in:
parent
2df3d5d39c
commit
40ebb62101
1 changed files with 5 additions and 0 deletions
|
@ -40,6 +40,11 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
assertions = [
|
||||
(lib.hm.assertions.assertPlatform "programs.swaylock" pkgs
|
||||
lib.platforms.linux)
|
||||
];
|
||||
|
||||
home.packages = [ cfg.package ];
|
||||
|
||||
xdg.configFile."swaylock/config" = mkIf (cfg.settings != { }) {
|
||||
|
|
Loading…
Reference in a new issue