add some gnome customization

This commit is contained in:
Remy Moll 2024-08-29 22:49:04 +02:00
parent 90d308ec7d
commit 32138b17d7
6 changed files with 63 additions and 33 deletions

View File

@ -45,7 +45,8 @@
networking.networkmanager.wifi.powersave = true;
programs.dconf.enable = true;
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
system.stateVersion = "24.05"; # Did you read the comment?

View File

@ -0,0 +1,38 @@
{pkgs, ...}:
{
programs.fzf = {
enable = true;
};
programs.fish = {
enable = true;
# enableCompletion = true;
plugins = [
{
name = "fzf-fish";
src = pkgs.fetchFromGitHub {
owner = "PatrickF1";
repo = "fzf.fish";
rev = "v10.3";
sha256 = "sha256-T8KYLA/r/gOKvAivKRoeqIwE2pINlxFQtZJHpOy9GMM=";
};
}
# add others here
];
};
# sets the "default" shell to fish
# actually keeps bash as a posix-compliant default but starts fish if the shell is not bash
# See https://nixos.wiki/wiki/Fish
programs.bash = {
enable = true;
initExtra = ''
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi
'';
};
}

View File

@ -0,0 +1,15 @@
{pkgs, ...}:
{
## Gnome extensions
programs.gnome-shell = {
enable = true;
extensions = [
{ package = pkgs.gnomeExtensions.dash-to-panel; }
{
id = "tilingshell@ferrarodomenico.com";
package = pkgs.gnome.gnome-shell-extensions;
}
];
};
}

View File

@ -33,6 +33,7 @@
gnome.gnome-weather
gnome-secrets
gnome.gnome-characters
gnome.gnome-font-viewer
]);
}

Binary file not shown.

View File

@ -1,6 +1,9 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
with lib.hm.gvariant;
{
imports = [
#../modules/home-manager/gnome-shell-customization.nix
../modules/home-manager/fish.nix
../modules/home-manager/browser.nix
../modules/home-manager/code.nix
];
@ -23,42 +26,14 @@
userEmail = "me@moll.re";
};
programs.fish = {
enable = true;
# enableCompletion = true;
plugins = [
{
name = "fzf-fish";
src = pkgs.fetchFromGitHub {
owner = "PatrickF1";
repo = "fzf.fish";
rev = "v10.3";
sha256 = "sha256-T8KYLA/r/gOKvAivKRoeqIwE2pINlxFQtZJHpOy9GMM=";
};
}
# add others here
];
};
# sets the "default" shell to fish
# actually keeps bash as a posix-compliant default but starts fish if the shell is not bash
# See https://nixos.wiki/wiki/Fish
programs.bash = {
initExtra = ''
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
fi
'';
};
## Gnome settings
dconf.settings = {
# set the keyboard layout to german
"org/gnome/desktop/input-sources" = {
sources = "[('xkb', 'de'), ('xkb', 'ch'), ('xkb', 'us')]";
xkb-options = "['lv3:ralt_switch']";
current = mkUint32 0;
sources = [ (mkTuple [ "xkb" "de" ]) (mkTuple [ "xkb" "ch" ]) (mkTuple [ "xkb" "us" ]) ];
xkb-options = [ "lv3:ralt_switch" ];
};
};
}