diff options
author | Michael Weiss | 2021-05-13 20:48:55 +0200 |
---|---|---|
committer | GitHub | 2021-05-13 20:48:55 +0200 |
commit | 60f2af59385bb58b57df3e0df621dbb216fcd39e (patch) | |
tree | 44c9cf455780befe4c7282f5574b585dee577bee /nixos | |
parent | 7500267ed9a32cd9799f616e811fa306ed70a950 (diff) | |
parent | 00e8e5b123f8f8a29b88f7f06ceb9f0b48c86c93 (diff) |
Merge pull request #122605 from primeos/nixos-sway-extend-default-configuration
nixos/sway: Extend the default configuration for NixOS
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/programs/sway.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nixos/modules/programs/sway.nix b/nixos/modules/programs/sway.nix index 107e783c0c21..2b69851b340b 100644 --- a/nixos/modules/programs/sway.nix +++ b/nixos/modules/programs/sway.nix @@ -31,6 +31,7 @@ let extraOptions = cfg.extraOptions; withBaseWrapper = cfg.wrapperFeatures.base; withGtkWrapper = cfg.wrapperFeatures.gtk; + isNixOS = true; }; in { options.programs.sway = { @@ -120,8 +121,11 @@ in { systemPackages = [ swayPackage ] ++ cfg.extraPackages; etc = { "sway/config".source = mkOptionDefault "${swayPackage}/etc/sway/config"; - #"sway/security.d".source = mkOptionDefault "${swayPackage}/etc/sway/security.d/"; - #"sway/config.d".source = mkOptionDefault "${swayPackage}/etc/sway/config.d/"; + "sway/config.d/nixos.conf".source = pkgs.writeText "nixos.conf" '' + # Import the most important environment variables into the D-Bus and systemd + # user environments (e.g. required for screen sharing and Pinentry prompts): + exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK + ''; }; }; security.pam.services.swaylock = {}; |