This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/env/nix/modules/de/sway.nix

53 lines
1,010 B
Nix
Raw Normal View History

2020-10-24 21:48:02 -05:00
{ config, pkgs, ... }:
let
unstable = import <nixos-unstable> { config = { allowUnfree = true; }; };
in {
2020-10-24 10:03:34 -05:00
imports = [ ./base.nix ];
2020-10-24 21:48:02 -05:00
programs = {
sway = {
enable = true;
extraPackages = with pkgs; [
swaylock
swayidle
xwayland
waybar
mako
kanshi
wl-clipboard
slurp
grim
font-awesome
unstable.gammastep
];
extraSessionCommands = ''
export WLC_REPEAT_DELAY=200
export WLC_REPEAT_RATE=60
export CLUTTER_BACKEND=wayland
export SDL_VIDEODRIVER=wayland
export MOZ_ENABLE_WAYLAND=1
export XDG_SESSION_TYPE=wayland
export XDG_CURRENT_DESKTOP=sway
'';
};
waybar.enable = true;
};
services = {
pipewire.enable = true;
xserver.libinput = {
enable = true;
tapping = true;
naturalScrolling = true;
disableWhileTyping = false;
};
};
xdg.portal = {
2020-10-24 10:03:34 -05:00
enable = true;
2020-10-24 21:48:02 -05:00
gtkUsePortal = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
2020-10-24 21:48:46 -05:00
unstable.xdg-desktop-portal-wlr
2020-10-24 10:03:34 -05:00
];
};
}