configuring gnome doesnt work
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
./gamemode.nix
|
||||
./games.nix
|
||||
./gnome.nix
|
||||
./gnome-settings.nix
|
||||
./hyprland.nix
|
||||
./ime.nix
|
||||
./lxqt.nix
|
||||
|
||||
114
modules/graphical/gnome-settings.nix
Normal file
114
modules/graphical/gnome-settings.nix
Normal file
@@ -0,0 +1,114 @@
|
||||
{ config, lib, ... }:
|
||||
let cfg = config.custom.graphical.gnome;
|
||||
in {
|
||||
# doesnt work for me.. nothing changes
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.dconf.profiles.user.databases = [{
|
||||
lockAll = true;
|
||||
settings = with lib.gvariant; {
|
||||
"org/gnome/settings-daemon/plugins/media-keys" = {
|
||||
custom-keybindings = [
|
||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
|
||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/"
|
||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/"
|
||||
];
|
||||
};
|
||||
"org/gnome/desktop/wm/preferences" = {
|
||||
resize-with-right-button = true;
|
||||
};
|
||||
"org/gnome/desktop/sound" = { event-sounds = false; };
|
||||
"org/gnome/desktop/peripherals/mouse" = { accel-profile = "flat"; };
|
||||
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" =
|
||||
{
|
||||
name = "nautilus";
|
||||
command = "nautilus";
|
||||
binding = "<Super>e";
|
||||
};
|
||||
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1" =
|
||||
{
|
||||
name = "kitty super";
|
||||
command = "kitty";
|
||||
binding = "<Super>q";
|
||||
};
|
||||
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2" =
|
||||
{
|
||||
binding = "<Alt>space";
|
||||
command = "rofi -show combi";
|
||||
name = "Open Rofi";
|
||||
};
|
||||
"org/gnome/shell" = {
|
||||
disable-user-extensions = false;
|
||||
enabled-extensions = [
|
||||
"blur-my-shell@aunetx"
|
||||
"trayIconsReloaded@selfmade.pl"
|
||||
"Vitals@CoreCoding.com"
|
||||
"workspace-indicator@gnome-shell-extensions.gcampax.github.com"
|
||||
"dash-to-dock@micxgx.gmail.com"
|
||||
"just-perfection-desktop@just-perfection"
|
||||
"user-theme@gnome-shell-extensions.gcampax.github.com"
|
||||
"apps-menu@gnome-shell-extensions.gcampax.github.com"
|
||||
];
|
||||
};
|
||||
"org/gnome/mutter" = {
|
||||
edge-tiling = true;
|
||||
workspaces-only-on-primary = true;
|
||||
dynamic-workspaces = false;
|
||||
};
|
||||
#"org/gnome/desktop/wm/preferences" = {
|
||||
# num-workspaces = 9;
|
||||
# focus-mode = "sloppy";
|
||||
#};
|
||||
"org/gnome/desktop/wm/keybindings" = {
|
||||
#minimize = [ "<Super>comma" ];
|
||||
maximize = [ "<Super>f" ];
|
||||
#switch-to-workspace-left = [ "<Super>e" ];
|
||||
#switch-to-workspace-right = [ "<Super>r" ];
|
||||
unmaximize = mkEmptyArray type.string;
|
||||
activate-window-menu = mkEmptyArray type.string;
|
||||
move-to-monitor-up = mkEmptyArray type.string;
|
||||
move-to-monitor-down = mkEmptyArray type.string;
|
||||
#move-to-monitor-left = [ "<Super><Shift>e" ];
|
||||
#move-to-monitor-right = [ "<Super><Shift>r" ];
|
||||
move-to-workspace-down = mkEmptyArray type.string;
|
||||
move-to-workspace-up = mkEmptyArray type.string;
|
||||
switch-to-workspace-down =
|
||||
[ "<Primary><Super>Down" "<Primary><Super>j" ];
|
||||
switch-to-workspace-up = [ "<Primary><Super>Up" "<Primary><Super>k" ];
|
||||
toggle-maximized = [ "<Super>f" ];
|
||||
close = [ "<Alt>F4" ];
|
||||
switch-to-workspace-1 = [ "<Super>1" ];
|
||||
switch-to-workspace-2 = [ "<Super>2" ];
|
||||
switch-to-workspace-3 = [ "<Super>3" ];
|
||||
switch-to-workspace-4 = [ "<Super>4" ];
|
||||
switch-to-workspace-5 = [ "<Super>5" ];
|
||||
switch-to-workspace-6 = [ "<Super>6" ];
|
||||
switch-to-workspace-7 = [ "<Super>7" ];
|
||||
switch-to-workspace-8 = [ "<Super>8" ];
|
||||
switch-to-workspace-9 = [ "<Super>9" ];
|
||||
move-to-workspace-1 = [ "<Super><Shift>1" ];
|
||||
move-to-workspace-2 = [ "<Super><Shift>2" ];
|
||||
move-to-workspace-3 = [ "<Super><Shift>3" ];
|
||||
move-to-workspace-4 = [ "<Super><Shift>4" ];
|
||||
move-to-workspace-5 = [ "<Super><Shift>5" ];
|
||||
move-to-workspace-6 = [ "<Super><Shift>6" ];
|
||||
move-to-workspace-7 = [ "<Super><Shift>7" ];
|
||||
move-to-workspace-8 = [ "<Super><Shift>8" ];
|
||||
move-to-workspace-9 = [ "<Super><Shift>9" ];
|
||||
};
|
||||
"org/gnome/shell/keybindings" = {
|
||||
# Following binds need to be disabled, as their defaults are used for
|
||||
# the binds above, and will run into conflicts.
|
||||
switch-to-application-1 = mkEmptyArray type.string;
|
||||
switch-to-application-2 = mkEmptyArray type.string;
|
||||
switch-to-application-3 = mkEmptyArray type.string;
|
||||
switch-to-application-4 = mkEmptyArray type.string;
|
||||
switch-to-application-5 = mkEmptyArray type.string;
|
||||
switch-to-application-6 = mkEmptyArray type.string;
|
||||
switch-to-application-7 = mkEmptyArray type.string;
|
||||
switch-to-application-8 = mkEmptyArray type.string;
|
||||
switch-to-application-9 = mkEmptyArray type.string;
|
||||
};
|
||||
};
|
||||
}];
|
||||
};
|
||||
}
|
||||
@@ -1,13 +1,9 @@
|
||||
{lib, config, pkgs, ... }:
|
||||
{ lib, config, pkgs, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.custom.graphical.gnome;
|
||||
in
|
||||
{
|
||||
options.custom.graphical.gnome = {
|
||||
enable = mkEnableOption "Enables gnome";
|
||||
};
|
||||
|
||||
let cfg = config.custom.graphical.gnome;
|
||||
in {
|
||||
options.custom.graphical.gnome = { enable = mkEnableOption "Enables gnome"; };
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.xserver = {
|
||||
xkb.layout = config.mainUser.layout;
|
||||
@@ -16,17 +12,18 @@ in
|
||||
displayManager.gdm.enable = true;
|
||||
desktopManager.gnome.enable = true;
|
||||
};
|
||||
|
||||
|
||||
# Workaround for GNOME autologin: https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229
|
||||
systemd.services."getty@tty1".enable = false;
|
||||
systemd.services."autovt@tty1".enable = false;
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
|
||||
|
||||
boot.kernelParams = [ "nvidia_drm.fbdev=1" ];
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
|
||||
|
||||
environment.gnome.excludePackages = (with pkgs; [
|
||||
gnome-photos
|
||||
gnome-tour
|
||||
gnome-photos
|
||||
gnome-tour
|
||||
gedit # text editor
|
||||
]) ++ (with pkgs.gnome; [
|
||||
cheese # webcam tool
|
||||
@@ -42,15 +39,16 @@ in
|
||||
hitori # sudoku game
|
||||
atomix # puzzle game
|
||||
]);
|
||||
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
wmctrl
|
||||
rofi-wayland
|
||||
gnome.mutter
|
||||
gnome.adwaita-icon-theme
|
||||
gnome.gnome-settings-daemon
|
||||
gnome.gnome-tweaks
|
||||
gnome.dconf-editor
|
||||
gruvbox-gtk-theme
|
||||
#gruvbox-gtk-theme
|
||||
colloid-icon-theme
|
||||
gnomeExtensions.appindicator
|
||||
gnomeExtensions.just-perfection
|
||||
@@ -61,10 +59,10 @@ in
|
||||
gnomeExtensions.rounded-window-corners
|
||||
gnomeExtensions.wallpaper-switcher
|
||||
gnomeExtensions.backslide
|
||||
gnomeExtensions.nextcloud-folder
|
||||
gnomeExtensions.tray-icons-reloaded
|
||||
gnomeExtensions.blur-my-shell
|
||||
gnomeExtensions.material-shell
|
||||
gnomeExtensions.paperwm
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -11,11 +11,6 @@ in {
|
||||
enable = true;
|
||||
xkb.layout = config.mainUser.layout;
|
||||
xkb.variant = config.mainUser.variant;
|
||||
windowManager.i3 = {
|
||||
package = pkgs.i3-gaps;
|
||||
enable = true;
|
||||
configFile = ../../.config/i3/kde-config;
|
||||
};
|
||||
displayManager = {
|
||||
sddm.enable = true;
|
||||
};
|
||||
|
||||
@@ -48,7 +48,6 @@ in
|
||||
xfce.thunar
|
||||
remmina
|
||||
thunderbird
|
||||
rofi
|
||||
localsend
|
||||
#element-desktop
|
||||
krita
|
||||
|
||||
Reference in New Issue
Block a user