nixos-config/sets/sway.nix
2022-03-15 22:39:42 +00:00

45 lines
946 B
Nix

{ config, pkgs, pkgs-unstable, ... }:
{
imports = [ ./fonts.nix ];
security.polkit.enable = true;
services = {
accounts-daemon.enable = true;
logind.lidSwitch = "suspend";
logind.extraConfig = "HandlePowerKey=suspend";
};
xdg.portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal-wlr
];
};
sound.enable = true;
environment.systemPackages = with pkgs; [
dex
glib
grim
imagemagick
libnotify
mako
polkit_gnome
slurp
waypipe
wf-recorder
wl-clipboard
pkgs-unstable.wofi
pkgs-unstable.wofi-emoji
xdg-user-dirs
xdg_utils
xsettingsd
pkgs-unstable.swaylock
pkgs-unstable.swayidle
];
hardware.opengl.enable = true;
security.pam.services.swaylock = { };
programs.dconf.enable = true;
programs.xwayland.enable = true;
home-manager.users.artemis.imports = [ ../home/sway.nix ];
}