nixos-config/modules/sway.nix

40 lines
985 B
Nix
Raw Normal View History

2021-03-30 01:16:19 +00:00
{ config, pkgs, lib, ... }:
let
cfg = config.sconfig.sway;
in
2020-09-18 13:54:09 +00:00
{
2021-03-30 01:16:19 +00:00
options.sconfig.sway = lib.mkEnableOption "Enable Sway Window Manager";
2020-09-18 13:54:09 +00:00
2021-03-30 01:16:19 +00:00
config = lib.mkIf cfg {
programs.sway.enable = true;
programs.bash.interactiveShellInit = '' [ "$(tty)" = "/dev/tty1" ] && exec sway '';
2020-09-18 13:54:09 +00:00
2021-03-30 01:16:19 +00:00
environment.variables.GTK_THEME = "Yaru-dark";
environment.variables.MOZ_ENABLE_WAYLAND = "1";
environment.etc."xdg/gtk-3.0/settings.ini".text = ''
[Settings]
gtk-theme-name=Yaru-dark
gtk-icon-theme-name=Numix
'';
2020-09-18 13:54:09 +00:00
2021-03-30 01:16:19 +00:00
services.gvfs.enable = true;
programs.dconf.enable = true;
networking.networkmanager.enable = true;
2020-09-18 13:54:09 +00:00
2021-03-30 01:16:19 +00:00
environment.systemPackages = with pkgs; [
numix-icon-theme
yaru-theme
gnome3.networkmanagerapplet
gnome3.file-roller
gnome3.adwaita-icon-theme
mate.mate-terminal
xfce.thunar
i3status
xfce.thunar-archive-plugin
caffeine-ng
wf-recorder
xdg_utils
];
};
2020-09-18 13:54:09 +00:00
}