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/pkgs/sway-entry.nix

13 lines
342 B
Nix
Raw Normal View History

2022-03-17 03:09:22 +00:00
{ 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
''