2023-03-12 03:59:11 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
2024-08-03 15:34:19 +00:00
|
|
|
namespace,
|
2023-03-12 03:59:11 +00:00
|
|
|
...
|
2024-07-29 04:13:04 +00:00
|
|
|
}: let
|
|
|
|
inherit (lib) mkEnableOption mkIf;
|
|
|
|
|
2024-08-03 15:34:19 +00:00
|
|
|
cfg = config.${namespace}.suites.desktop;
|
2023-03-12 03:59:11 +00:00
|
|
|
in {
|
2024-08-03 15:34:19 +00:00
|
|
|
options.${namespace}.suites.desktop = {
|
2023-03-12 03:59:11 +00:00
|
|
|
enable = mkEnableOption "common desktop configuration";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2024-08-03 15:34:19 +00:00
|
|
|
# Required to use gammastep home module without providing lat/long
|
|
|
|
services.geoclue2.enable = true;
|
|
|
|
|
2024-08-03 03:49:25 +00:00
|
|
|
# The following fixes an issue with using swaylcock as a home module
|
|
|
|
# Workaround for https://github.com/NixOS/nixpkgs/issues/158025
|
|
|
|
# This comment specifically: https://github.com/NixOS/nixpkgs/issues/158025#issuecomment-1344766809
|
|
|
|
security.pam.services.swaylock = {};
|
2023-03-12 03:59:11 +00:00
|
|
|
};
|
|
|
|
}
|