1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-28 17:38:33 +02:00

swaylock: add platform assertion

This commit is contained in:
Robert Helgesson 2023-04-15 17:04:14 +02:00
parent 2df3d5d39c
commit 40ebb62101
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89

View File

@ -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 != { }) {