This repository has been archived on 2023-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
nil/modules/applications/sway/scripts/sway-entry.nix
2022-03-16 23:09:22 -04:00

13 lines
342 B
Nix

{ pkgs, ... }:
let
in pkgs.writeShellScriptBin "sway-entry" ''
#! ${pkgs.bash}/bin/bash
# first import environment variables from the login manager
# function is currently deprecated. It should be rolled back in the future
systemctl --user import-environment
# then start the service
exec systemctl --user start sway.service
''