move modules out

This commit is contained in:
waveringana 2025-06-04 03:02:32 -04:00
parent 6c910125f7
commit ab9955e681
10 changed files with 18 additions and 20 deletions

37
common/desktop/sway.nix Normal file
View file

@ -0,0 +1,37 @@
{ config, pkgs, lib, ... }:
let
swayConfig = pkgs.writeText "greetd-sway-config" ''
exec "${pkgs.greetd.gtkgreet}/bin/gtkgreet -l; swaymsg exit"
bindsym Mod4+shift+e exec swaynag \
-t warning \
-m "what you want do :3" \
-b "Poweroff" "systemctl poweroff" \
-b "Reboot" "systemctl reboot"
'';
in
{
environment.systemPackages = with pkgs; [
grim
sway-contrib.grimshot
wl-clipboard
mako
];
services.gnome.gnome-keyring.enable = true;
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
};
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd 'sway --unsupported-gpu'";
#command = "${pkgs.sway}/bin/sway --unsupported-gpu --config ${swayConfig}";
user = "regent";
};
};
};
}