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

58 lines
1.2 KiB
Nix
Raw Normal View History

2020-10-24 21:48:02 -05:00
{ config, pkgs, ... }:
let
unstable = import <nixos-unstable> { config = { allowUnfree = true; }; };
2020-10-24 21:48:02 -05:00
in {
imports = [ ./graphics.nix ];
2020-10-27 17:10:54 -05:00
fonts.fonts = with pkgs; [
noto-fonts-emoji font-awesome
];
2020-10-24 21:48:02 -05:00
programs = {
sway = {
enable = true;
extraPackages = with pkgs; [
swaylock
swayidle
2020-10-27 17:10:54 -05:00
unstable.mako unstable.libnotify
2020-10-25 00:33:20 -05:00
waybar
2020-10-24 21:48:02 -05:00
wl-clipboard
slurp
grim
unstable.font-awesome
unstable.xwayland
unstable.kanshi
2020-10-24 21:48:02 -05:00
unstable.gammastep
];
extraSessionCommands = ''
2020-10-25 00:33:20 -05:00
systemctl --user import-environment
export TERMINAL=kitty
export BROWSER=firefox-devedition
2020-10-24 21:48:02 -05:00
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
'';
};
};
services = {
pipewire.enable = true;
xserver.libinput = {
enable = true;
tapping = true;
naturalScrolling = true;
disableWhileTyping = false;
};
};
xdg.portal = {
enable = true;
gtkUsePortal = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
unstable.xdg-desktop-portal-wlr
];
};
2020-10-24 10:03:34 -05:00
}