mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
update sway module
This commit is contained in:
parent
23a40f3f35
commit
8cf0e347fe
1 changed files with 27 additions and 4 deletions
|
@ -6,21 +6,44 @@ in
|
||||||
options.sconfig.sway = lib.mkEnableOption "Enable Sway Window Manager";
|
options.sconfig.sway = lib.mkEnableOption "Enable Sway Window Manager";
|
||||||
|
|
||||||
config = lib.mkIf cfg {
|
config = lib.mkIf cfg {
|
||||||
programs.sway.enable = true;
|
programs.sway = {
|
||||||
programs.bash.interactiveShellInit = '' [ "$(tty)" = "/dev/tty1" ] && exec sway '';
|
enable = true;
|
||||||
|
extraSessionCommands = ''
|
||||||
|
export GTK_THEME="Yaru-dark";
|
||||||
|
export MOZ_ENABLE_WAYLAND="1";
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
environment.variables.GTK_THEME = "Yaru-dark";
|
|
||||||
environment.variables.MOZ_ENABLE_WAYLAND = "1";
|
|
||||||
environment.etc."xdg/gtk-3.0/settings.ini".text = ''
|
environment.etc."xdg/gtk-3.0/settings.ini".text = ''
|
||||||
[Settings]
|
[Settings]
|
||||||
gtk-theme-name=Yaru-dark
|
gtk-theme-name=Yaru-dark
|
||||||
gtk-icon-theme-name=Numix
|
gtk-icon-theme-name=Numix
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
environment.etc."sway/config".source = pkgs.runCommand "sway_config" { } ''
|
||||||
|
(
|
||||||
|
cat '${pkgs.sway}/etc/sway/config'
|
||||||
|
cat <<" EOF"
|
||||||
|
include /etc/sway/config.d/*
|
||||||
|
output DP-1 position 0 0 resolution 2560x1440@165Hz
|
||||||
|
output DP-2 position 2560 0 resolution 2560x1440@165Hz
|
||||||
|
EOF
|
||||||
|
)|
|
||||||
|
sed 's/position top//' |
|
||||||
|
sed 's/status_command while.*/status_command i3status/' |
|
||||||
|
tee "$out"
|
||||||
|
'';
|
||||||
|
|
||||||
services.gvfs.enable = true;
|
services.gvfs.enable = true;
|
||||||
programs.dconf.enable = true;
|
programs.dconf.enable = true;
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
services.xserver = {
|
||||||
|
enable = true;
|
||||||
|
libinput.enable = true;
|
||||||
|
displayManager.gdm.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
numix-icon-theme
|
numix-icon-theme
|
||||||
yaru-theme
|
yaru-theme
|
||||||
|
|
Loading…
Reference in a new issue