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

63 lines
1.3 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; [
2020-11-06 22:12:56 -06:00
unstable.pipewire
2020-10-24 21:48:02 -05:00
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
];
2020-11-06 09:31:50 -06:00
# TODO: this should come from the user's homedir maybe through dotfiles
# somehow? home-manager?
2020-10-24 21:48:02 -05:00
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;
2020-11-05 23:32:22 -06:00
xserver = {
libinput = {
enable = true;
tapping = true;
naturalScrolling = true;
disableWhileTyping = false;
};
2020-10-24 21:48:02 -05:00
};
};
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
}