nixos-config/sets/sway.nix

54 lines
1 KiB
Nix
Raw Normal View History

2024-03-02 03:13:17 +00:00
{ pkgs, inputs, ... }:
{
imports = [
./fonts.nix
inputs.private.nixosModules.sway
];
2020-11-26 04:20:52 +00:00
security.polkit.enable = true;
services = {
accounts-daemon.enable = true;
2021-08-25 18:11:39 +00:00
logind.lidSwitch = "suspend";
2020-11-26 04:20:52 +00:00
logind.extraConfig = "HandlePowerKey=suspend";
};
xdg.portal = {
enable = true;
2023-11-25 01:57:31 +00:00
wlr.enable = true;
extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
config = {
common.default = [ "gtk" ];
2024-03-02 03:13:17 +00:00
sway.default = [
"wlr"
"gtk"
];
2023-11-25 01:57:31 +00:00
};
2020-11-26 04:20:52 +00:00
};
sound.enable = true;
environment.systemPackages = with pkgs; [
dex
glib
grim
imagemagick
libnotify
mako
polkit_gnome
slurp
2023-10-05 00:34:34 +00:00
swayidle
swaylock
waypipe
2020-11-26 04:20:52 +00:00
wf-recorder
wl-clipboard
2023-08-30 20:58:52 +00:00
wofi
wofi-emoji
2023-10-05 00:34:34 +00:00
wtype
2020-11-26 04:20:52 +00:00
xdg-user-dirs
xdg_utils
xsettingsd
];
2021-08-26 17:12:58 +00:00
hardware.opengl.enable = true;
security.pam.services.swaylock = { };
programs.dconf.enable = true;
programs.xwayland.enable = true;
home-manager.users.artemis.imports = [ ../home/sway.nix ];
2020-11-26 04:20:52 +00:00
}