swaylock: add platform assertion
This commit is contained in:
parent
2df3d5d39c
commit
40ebb62101
|
@ -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