mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
profiles/sway: init from legacy
This commit is contained in:
parent
97afc505cb
commit
d72190bee6
11 changed files with 166 additions and 125 deletions
33
profiles/sway/location.nix
Normal file
33
profiles/sway/location.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.my.profiles.sway-location;
|
||||
in
|
||||
{
|
||||
options.my.profiles.sway-location = with lib; {
|
||||
enable = mkEnableOption "sway-location profile";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
location.provider = "geoclue2";
|
||||
|
||||
services.geoclue2 = {
|
||||
enable = true;
|
||||
enableDemoAgent = true;
|
||||
|
||||
appConfig."gammastep" = {
|
||||
desktopID = "gammastep";
|
||||
isAllowed = true;
|
||||
isSystem = false;
|
||||
# Empty list allows all users
|
||||
users = [ ];
|
||||
};
|
||||
appConfig."gammastep-indicator" = {
|
||||
desktopID = "gammastep-indicator";
|
||||
isAllowed = true;
|
||||
isSystem = false;
|
||||
# Empty list allows all users
|
||||
users = [ ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue