nixos-config/sets/sway.nix

53 lines
1 KiB
Nix
Raw Normal View History

2020-11-17 01:51:13 +00:00
{ config, pkgs, ... }:
let
2020-11-26 04:20:52 +00:00
wofi = pkgs.wofi.overrideAttrs (old: {
2020-11-17 01:51:13 +00:00
src = pkgs.fetchhg {
url = old.src.url;
rev = "e3db9b8075e71399bba14a568c59032f47981dab";
sha256 = "07fr1yfls94gxpwv3azgzxm7shjs4g5ribvqrh88flpf4cv5hq2d";
};
2020-11-26 04:20:52 +00:00
});
2020-11-17 01:51:13 +00:00
in
2020-11-26 04:20:52 +00:00
{
2021-01-10 06:27:22 +00:00
imports = [ ./fonts.nix ];
2020-11-26 04:20:52 +00:00
security.polkit.enable = true;
services = {
accounts-daemon.enable = true;
logind.extraConfig = "HandlePowerKey=suspend";
};
xdg.portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal-wlr
2020-11-17 01:51:13 +00:00
];
2020-11-26 04:20:52 +00:00
};
sound.enable = true;
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
extraSessionCommands = ''
export MOZ_USE_XINPUT2=1
export _JAVA_AWT_WM_NONREPARENTING=1
export GTK_THEME=Adwaita-dark
'';
};
environment.systemPackages = with pkgs; [
dex
glib
grim
imagemagick
libnotify
mako
polkit_gnome
slurp
waypipe
2020-11-26 04:20:52 +00:00
wf-recorder
wl-clipboard
wofi
xdg-user-dirs
xdg_utils
xsettingsd
];
}