1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-05 02:39:45 +01: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 != { }) {