Merge branch 'development' of git.malice.zone:alisceon/nixos_config into development

This commit is contained in:
alisceon 2025-12-02 19:24:47 +01:00
commit a2b0dbe4ad
6 changed files with 208 additions and 91 deletions

View file

@ -1,26 +1,57 @@
{ config, pkgs, lib, ... }:
{
environment.systemPackages = with pkgs; [
grim # screenshot functionality
slurp # screenshot functionality
wl-clipboard # wl-copy and wl-paste for copy/paste from stdin / stdout
mako # notification system developed by swaywm maintainer
rofi
libinput
libinput-gestures
wmctrl
seahorse
libsecret
pkgs.xdg-desktop-portal-gtk
];
environment.sessionVariables = rec {
XDG_CURRENT_DESKTOP = "GNOME:sway";
};
# enable Sway window manager
programs = {
sway = {
enable = true;
wrapperFeatures.base = true;
wrapperFeatures.gtk = true;
extraOptions = [
"--unsupported-gpu"
];
extraPackages = with pkgs; [
swayidle
swaylock
grim
slurp
wl-clipboard
brightnessctl
pulseaudio
sway-contrib.grimshot
];
}; # end sway
# uwsm = {
# enable = true;
# waylandCompositors = {
# sway = {
# prettyName = "Sway";
# comment = "Sway compositor managed by UWSM";
# binPath = "${pkgs.sway}/bin/sway";
# extraArgs = [ "--unsupported-gpu" ];
# };
# };
# }; # end uwsm
light = {
enable = true;
}; # end light
dconf.enable = true;
seahorse.enable = true;
}; # end programs
security = {
polkit.enable = true;
@ -35,16 +66,38 @@
enable = true;
settings = {
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd sway";
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd 'sway --unsupported-gpu'";
#command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd 'uwsm start -- sway-uwsm.desktop'";
user = "greeter";
}; # end default_session
}; # end settings
}; # end greetd
logind = {
lidSwitch = "suspend";
lidSwitchExternalPower = "suspend";
settings = {
Login = {
HandleLidSwitch = "suspend";
HandleLidSwitchExternalPower = "suspend";
};
};
}; # end logind
gnome.gnome-keyring.enable = true;
#gnome = {
#gnome-keyring.enable = true;
#gcr-ssh-agent.enable = true;
#}; # end gnome
dbus.packages = [ pkgs.seahorse pkgs.gnome-keyring pkgs.gcr ];
}; # end services
users.users.alisceon.extraGroups = [ "video" "input" ];
# xdg.portal = {
# enable = true;
# wlr.enable = true;
# extraPortals = [
# pkgs.xdg-desktop-portal-gtk
# ];
# config = {
# common = {
# default = [ "gtk" ];
# "org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ];
# };
# };
# };
}