nix/nixos/desktop/sway.nix

65 lines
1.3 KiB
Nix
Raw Normal View History

2021-10-13 00:47:43 +02:00
{ pkgs, ... }:
{
2023-07-18 20:10:07 +02:00
imports = [
./default.nix
../hardware/network.nix
];
2023-07-07 23:22:02 +02:00
services.greetd = {
enable = true;
settings = {
default_session = {
# command = "${pkgs.greetd.greetd}/bin/agreety --cmd sway";
command = "${pkgs.greetd.tuigreet}/bin/tuigreet -t -r --remember-user-session --asterisks --cmd sway";
# missing compositor
# command = "${pkgs.greetd.wlgreet}/bin/wlgreet --command sway";
};
};
# package = pkgs.greetd.tuigreet;
# package = pkgs.greetd.wlgreet;
# package = pkgs.greetd.gtkgreet;
# package = pkgs.greetd.regreet;
};
2021-10-13 00:47:43 +02:00
programs.sway = {
enable = true;
wrapperFeatures = { gtk = true; };
extraPackages = with pkgs; [
alacritty
swayidle
swaylock-effects
mako
bemenu
# - bar
i3blocks
acpi
lm_sensors
# - tools
wl-clipboard
2021-11-06 13:12:01 +01:00
wdisplays
2021-10-13 00:47:43 +02:00
ponymix
brightnessctl
gammastep
grim
slurp
];
};
location.provider = "geoclue2";
2021-11-26 20:03:09 +01:00
xdg.portal.wlr = {
enable = true;
settings.screencast = {
chooser_type = "simple";
chooser_cmd = "${pkgs.slurp}/bin/slurp -f %o -or";
};
};
2021-10-13 00:47:43 +02:00
# done my sway:
# security.pam.services.swaylock = {};
# hardware.opengl.enable = true;
# fonts.enableDefaultFonts = true;
# programs.dconf.enable = true; # gtk theme
# services.acpid.enable = true;
}