From 669b18acd2573683faf59802ace03b22e46a0044 Mon Sep 17 00:00:00 2001 From: Victor Date: Tue, 29 Nov 2022 12:58:52 +0100 Subject: [PATCH] aoife add dconf --- nixos/hosts/thalassa/aoife/home/dconf.nix | 62 +++++++++++++++++++++ nixos/hosts/thalassa/aoife/home/default.nix | 15 +---- 2 files changed, 65 insertions(+), 12 deletions(-) create mode 100644 nixos/hosts/thalassa/aoife/home/dconf.nix diff --git a/nixos/hosts/thalassa/aoife/home/dconf.nix b/nixos/hosts/thalassa/aoife/home/dconf.nix new file mode 100644 index 0000000..13d2c1b --- /dev/null +++ b/nixos/hosts/thalassa/aoife/home/dconf.nix @@ -0,0 +1,62 @@ +# Generated via dconf2nix: https://github.com/gvolpe/dconf2nix +{ lib, ... }: + +with lib.hm.gvariant; + +{ + dconf.settings = { + "org/gnome/desktop/input-sources" = { + sources = [ (mkTuple [ "xkb" "us+altgr-intl" ]) ]; + xkb-options = [ "terminate:ctrl_alt_bksp" "caps:swapescape" ]; + }; + + "org/gnome/desktop/peripherals/touchpad" = { + tap-to-click = true; + two-finger-scrolling-enabled = true; + }; + + "org/gnome/mutter" = { + attach-modal-dialogs = true; + dynamic-workspaces = true; + edge-tiling = true; + focus-change-on-pointer-rest = true; + workspaces-only-on-primary = true; + }; + + "org/gnome/mutter/keybindings" = { + "toggle-tiled-left" = [ "bracketleft" ]; + "toggle-tiled-right" = [ "bracketright" ]; + }; + + "org/gnome/desktop/wm/keybindings" = { + raise-or-lower = [ "s" ]; + switch-applications = [ "Tab" ]; + switch-applications-backward = [ "Tab" ]; + move-to-workspace-1 = [ "exclam" ]; + move-to-workspace-2 = [ "at" ]; + move-to-workspace-3 = [ "numbersign" ]; + move-to-workspace-4 = [ "dollar" ]; + switch-to-workspace-1 = [ "1" ]; + switch-to-workspace-2 = [ "2" ]; + switch-to-workspace-3 = [ "3" ]; + switch-to-workspace-4 = [ "4" ]; + toggle-fullscreen = [ "f" ]; + toggle-maximized = [ "m" ]; + }; + + "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/custom0" = + { + binding = "Return"; + command = "kgx"; + name = "Open Terminal"; + }; + + "org/gnome/tweaks" = { show-extensions-notice = false; }; + }; +} diff --git a/nixos/hosts/thalassa/aoife/home/default.nix b/nixos/hosts/thalassa/aoife/home/default.nix index 4682ea1..20d60ec 100644 --- a/nixos/hosts/thalassa/aoife/home/default.nix +++ b/nixos/hosts/thalassa/aoife/home/default.nix @@ -11,18 +11,9 @@ in { home.homeDirectory = "/home/victor"; home.stateVersion = "23.05"; - # # make sure applications show up in Gnome - # home.activation = { - # linkDesktopApplications = { - # after = [ "writeBoundary" "createXdgUserDirectories" ]; - # before = [ ]; - # data = '' - # rm -rf ${config.xdg.dataHome}/"applications/home-manager" - # mkdir -p ${config.xdg.dataHome}/"applications/home-manager" - # cp -Lr /etc/profiles/per-user/${config.home.username}/share/applications/* ${config.xdg.dataHome}/"applications/home-manager/" - # ''; - # }; - # }; + imports = [ + ./dconf.nix + ]; home.packages = with pkgs; [ btop