Reorganise desktop settings
Move some settings/packages from desktop.nix that should have been in hyprland.nix and make desktop properly generally relevant - switch gamescope.nix to import from desktop.nix now for less duplication Remove xserver/lightdm to just use greetd again, less overhead needed Switch gtklock back to swaylock, some issue with WLR implementations after update but swaylock still works fine
This commit is contained in:
parent
b45bbc5360
commit
a6f84783ab
|
@ -5,6 +5,7 @@
|
||||||
fzf.enable = true;
|
fzf.enable = true;
|
||||||
mako.enable = true;
|
mako.enable = true;
|
||||||
rofi.enable = true;
|
rofi.enable = true;
|
||||||
|
swaylock.enable = true;
|
||||||
xresources.enable = true;
|
xresources.enable = true;
|
||||||
zathura.enable = true;
|
zathura.enable = true;
|
||||||
zellij.enable = true;
|
zellij.enable = true;
|
||||||
|
|
|
@ -80,7 +80,7 @@ in ''
|
||||||
xwayland:force_zero_scaling = true
|
xwayland:force_zero_scaling = true
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||||
bind = SUPER, F1, exec, ${pkgs.gtklock}/bin/gtklock
|
bind = SUPER, F1, exec, swaylock
|
||||||
bind = SUPER, Q, killactive,
|
bind = SUPER, Q, killactive,
|
||||||
bind = SUPER SHIFT, Q, exec, rofi -replace -show power-menu
|
bind = SUPER SHIFT, Q, exec, rofi -replace -show power-menu
|
||||||
bind = SUPER, V, togglefloating
|
bind = SUPER, V, togglefloating
|
||||||
|
@ -180,7 +180,7 @@ in ''
|
||||||
bind = SUPER, T, moveworkspacetomonitor, name:term current
|
bind = SUPER, T, moveworkspacetomonitor, name:term current
|
||||||
bind = SUPER, T, workspace, name:term
|
bind = SUPER, T, workspace, name:term
|
||||||
bind = SUPER SHIFT, T, movetoworkspace, name:term
|
bind = SUPER SHIFT, T, movetoworkspace, name:term
|
||||||
bind = SUPER ALT, T, exec, [workspace name:term] foot -e zellij
|
bind = SUPER ALT, T, exec, [workspace name:term] foot
|
||||||
|
|
||||||
bind = SUPER, S, moveworkspacetomonitor, name:system current
|
bind = SUPER, S, moveworkspacetomonitor, name:system current
|
||||||
bind = SUPER, S, workspace, name:system
|
bind = SUPER, S, workspace, name:system
|
||||||
|
|
|
@ -83,6 +83,16 @@
|
||||||
display-combi = " Combi ";
|
display-combi = " Combi ";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
swaylock = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
indicator-caps-lock = true;
|
||||||
|
indicator-radius = 100;
|
||||||
|
indicator-thickness = 7;
|
||||||
|
ignore-empty-password = true;
|
||||||
|
show-failed-attempts = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -111,26 +121,6 @@
|
||||||
preload = ${config.stylix.image}
|
preload = ${config.stylix.image}
|
||||||
wallpaper = ,${config.stylix.image}
|
wallpaper = ,${config.stylix.image}
|
||||||
'';
|
'';
|
||||||
"gtklock/config.ini".text = let
|
|
||||||
powerbar =
|
|
||||||
"${pkgs.gtklock-powerbar-module}/lib/gtklock/powerbar-module.so";
|
|
||||||
playerctl =
|
|
||||||
"${pkgs.gtklock-playerctl-module}/lib/gtklock/playerctl-module.so";
|
|
||||||
in ''
|
|
||||||
[main]
|
|
||||||
start-hidden=true
|
|
||||||
modules=${powerbar};${playerctl}
|
|
||||||
|
|
||||||
[powerbar]
|
|
||||||
reboot-command=systemctl reboot
|
|
||||||
poweroff-command=systemctl -i poweroff
|
|
||||||
suspend-command=systemctl suspend
|
|
||||||
logout-command=hyprctl dispatch exit
|
|
||||||
|
|
||||||
[playerctl]
|
|
||||||
art-size=64
|
|
||||||
position=below-clock
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
mimeApps = rec {
|
mimeApps = rec {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -1,28 +1,13 @@
|
||||||
{ config, pkgs, user, ... }:
|
{ pkgs, user, ... }: {
|
||||||
|
imports = [ ./default.nix ];
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[ ./default.nix ./emacs.nix ./nyxt.nix ./firefox.nix ./chromium.nix ];
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
dex
|
dex
|
||||||
mesa
|
mesa
|
||||||
libnotify
|
libnotify
|
||||||
glib
|
glib
|
||||||
gsettings-desktop-schemas
|
gsettings-desktop-schemas
|
||||||
protonvpn-cli
|
|
||||||
protonvpn-gui
|
|
||||||
transmission-gtk
|
|
||||||
mplayer
|
|
||||||
tagger
|
|
||||||
libreoffice
|
|
||||||
remmina
|
|
||||||
minesweep-rs
|
|
||||||
];
|
];
|
||||||
|
security.rtkit.enable = true;
|
||||||
security = {
|
|
||||||
rtkit.enable = true;
|
|
||||||
pam.services.gtklock.enableGnomeKeyring = true;
|
|
||||||
};
|
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
hardware = {
|
hardware = {
|
||||||
pulseaudio.enable = false;
|
pulseaudio.enable = false;
|
||||||
|
@ -32,6 +17,10 @@
|
||||||
accounts-daemon.enable = true;
|
accounts-daemon.enable = true;
|
||||||
dbus.packages = with pkgs; [ gcr ];
|
dbus.packages = with pkgs; [ gcr ];
|
||||||
gnome.gnome-keyring.enable = true;
|
gnome.gnome-keyring.enable = true;
|
||||||
|
greetd = {
|
||||||
|
enable = true;
|
||||||
|
settings.initial_session = { inherit user; };
|
||||||
|
};
|
||||||
pipewire = {
|
pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
|
@ -39,26 +28,12 @@
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
};
|
};
|
||||||
xserver = {
|
xserver = {
|
||||||
enable = true;
|
|
||||||
layout = "gb";
|
layout = "gb";
|
||||||
xkbVariant = "";
|
xkbVariant = "";
|
||||||
xkbOptions = "ctrl:nocaps";
|
xkbOptions = "ctrl:nocaps";
|
||||||
displayManager.lightdm = {
|
|
||||||
enable = true;
|
|
||||||
greeters.gtk = {
|
|
||||||
inherit (config.home-manager.users.${user}.gtk)
|
|
||||||
cursorTheme iconTheme theme;
|
|
||||||
enable = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
programs.dconf.enable = true;
|
||||||
};
|
|
||||||
programs = {
|
|
||||||
seahorse.enable = true;
|
|
||||||
dconf.enable = true;
|
|
||||||
light.enable = true;
|
|
||||||
noisetorch.enable = true;
|
|
||||||
};
|
|
||||||
gtk.iconCache.enable = true;
|
gtk.iconCache.enable = true;
|
||||||
qt = {
|
qt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -1,32 +1,16 @@
|
||||||
{ user, ... }: {
|
{ ... }: {
|
||||||
imports = [ ./default.nix ./steam.nix ];
|
imports = [ ./desktop.nix ./steam.nix ];
|
||||||
sound.enable = true;
|
|
||||||
hardware = {
|
|
||||||
pulseaudio.enable = false;
|
|
||||||
bluetooth.enable = true;
|
|
||||||
};
|
|
||||||
services = {
|
services = {
|
||||||
accounts-daemon.enable = true;
|
greetd.settings = let
|
||||||
pipewire = {
|
command = ''
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
};
|
|
||||||
greetd = {
|
|
||||||
enable = true;
|
|
||||||
settings = rec {
|
|
||||||
default_session.command = ''
|
|
||||||
gamescope\
|
gamescope\
|
||||||
--nested-refresh 60\
|
--nested-refresh 60\
|
||||||
--scaler auto --filter fsr --fsr-sharpness 10\
|
--scaler auto --filter fsr --fsr-sharpness 10\
|
||||||
--hide-cursor-delay 5 --steam -- steam -gamepadui
|
--hide-cursor-delay 5 --steam -- steam -gamepadui
|
||||||
'';
|
'';
|
||||||
initial_session = {
|
in {
|
||||||
inherit user;
|
default_session = { inherit command; };
|
||||||
inherit (default_session) command;
|
initial_session = { inherit command; };
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
programs.steam.gamescopeSession.enable = true;
|
programs.steam.gamescopeSession.enable = true;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
imports = [ ./desktop.nix ];
|
imports =
|
||||||
|
[ ./desktop.nix ./emacs.nix ./nyxt.nix ./firefox.nix ./chromium.nix ];
|
||||||
nixpkgs.config.chromium.commandLineArgs =
|
nixpkgs.config.chromium.commandLineArgs =
|
||||||
"--enable-features=UseOzonePlatform --ozone-platform=wayland";
|
"--enable-features=UseOzonePlatform --ozone-platform=wayland";
|
||||||
environment = {
|
environment = {
|
||||||
|
@ -12,8 +13,8 @@
|
||||||
};
|
};
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
libsForQt5.polkit-kde-agent
|
libsForQt5.polkit-kde-agent
|
||||||
|
swaylock
|
||||||
xdg-utils
|
xdg-utils
|
||||||
wlr-randr
|
|
||||||
hyprpaper
|
hyprpaper
|
||||||
pipewire
|
pipewire
|
||||||
wireplumber
|
wireplumber
|
||||||
|
@ -28,26 +29,37 @@
|
||||||
brightnessctl
|
brightnessctl
|
||||||
networkmanagerapplet
|
networkmanagerapplet
|
||||||
bluez
|
bluez
|
||||||
|
protonvpn-cli
|
||||||
|
protonvpn-gui
|
||||||
|
transmission-gtk
|
||||||
|
mplayer
|
||||||
|
tagger
|
||||||
|
libreoffice
|
||||||
|
remmina
|
||||||
webcord
|
webcord
|
||||||
teams-for-linux
|
teams-for-linux
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
security.pam.services.swaylock = { };
|
||||||
services = {
|
services = {
|
||||||
blueman.enable = true;
|
blueman.enable = true;
|
||||||
udisks2.enable = true;
|
udisks2.enable = true;
|
||||||
gvfs.enable = true;
|
xserver.enable = false;
|
||||||
tumbler.enable = true;
|
greetd.settings = let command = "Hyprland";
|
||||||
xserver.displayManager.defaultSession = "hyprland";
|
in {
|
||||||
|
default_session = { inherit command; };
|
||||||
|
initial_session = { inherit command; };
|
||||||
|
};
|
||||||
};
|
};
|
||||||
xdg.portal.enable = true;
|
xdg.portal.enable = true;
|
||||||
programs = {
|
programs = {
|
||||||
|
seahorse.enable = true;
|
||||||
|
dconf.enable = true;
|
||||||
|
light.enable = true;
|
||||||
|
noisetorch.enable = true;
|
||||||
hyprland = {
|
hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
};
|
};
|
||||||
thunar = {
|
|
||||||
enable = true;
|
|
||||||
plugins = with pkgs.xfce; [ thunar-archive-plugin thunar-volman ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue