mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
profile/sway: migrate autostart
This commit is contained in:
parent
ecf335add5
commit
e8d3987578
3 changed files with 21 additions and 7 deletions
|
@ -66,11 +66,4 @@
|
|||
enable = true;
|
||||
package = pkgs.wireshark; # enable the gui
|
||||
};
|
||||
|
||||
# start sway if login happens
|
||||
environment.interactiveShellInit = ''
|
||||
if test `tty` = /dev/tty1; then
|
||||
exec sway
|
||||
fi
|
||||
'';
|
||||
}
|
||||
|
|
19
profiles/sway/autostart.nix
Normal file
19
profiles/sway/autostart.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.my.profiles.sway-autostart;
|
||||
in
|
||||
{
|
||||
options.my.profiles.sway-autostart = with lib; {
|
||||
enable = mkEnableOption "sway-autostart profile";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
# start sway if login happens
|
||||
environment.interactiveShellInit = ''
|
||||
if test `tty` = /dev/tty1; then
|
||||
exec sway
|
||||
fi
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -4,6 +4,7 @@ let
|
|||
in
|
||||
{
|
||||
imports = [
|
||||
./autostart.nix
|
||||
./location.nix
|
||||
./screen-sharing.nix
|
||||
./theme.nix
|
||||
|
@ -16,6 +17,7 @@ in
|
|||
config = lib.mkIf cfg.enable {
|
||||
|
||||
my.profiles = {
|
||||
sway-autostart.enable = true;
|
||||
sway-location.enable = true;
|
||||
sway-screen-sharing.enable = true;
|
||||
sway-theme.enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue