add gnome HM configuration into module

This commit is contained in:
Anthony Rodriguez 2024-09-08 16:18:43 +02:00
parent 7e0ccfa989
commit 0c4e1a5ceb
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
3 changed files with 41 additions and 39 deletions

View file

@ -4,7 +4,6 @@ _:
./core.nix ./core.nix
./automount.nix ./automount.nix
./mime.nix ./mime.nix
./gnome
./shell ./shell
./programs ./programs
]; ];

View file

@ -1,35 +0,0 @@
{ pkgs, ... }:
{
stylix.targets.gtk.enable = false;
dconf = {
enable = true;
settings = {
"org/gnome/shell" = {
disable-user-extensions = false; # enables user extensions
enabled-extensions = [
pkgs.gnomeExtensions.appindicator.extensionUuid
];
};
"org/gnome/desktop/input-sources" = {
xkb-options = [ "compose:ralt" ];
};
};
};
home.packages = with pkgs.gnomeExtensions; [
appindicator
];
programs.gnome-terminal = {
enable = true;
showMenubar = false;
profile = {
"4621184a-b921-42cf-80a0-7784516606f2" = {
default = true;
audibleBell = false;
allowBold = true;
visibleName = "nezia";
font = "IntoneMono NF 14";
};
};
};
}

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, username, ... }:
let let
cfg = config.modules.gnome; cfg = config.modules.gnome;
stylixEnabled = config.modules.stylix.enable or false; stylixEnabled = config.modules.stylix.enable or false;
@ -31,8 +31,11 @@ in
gnome-power-manager gnome-power-manager
]; ];
stylix = lib.mkIf stylixEnabled { stylix = lib.mkIf stylixEnabled {
# disable plymouth to look more consistent with a gtk desktop targets = {
targets.plymouth.enable = false; plymouth.enable = false;
gtk.enable = false;
gnome.enable = false;
};
fonts = { fonts = {
sansSerif = { sansSerif = {
package = pkgs.inter; package = pkgs.inter;
@ -41,6 +44,41 @@ in
serif = config.stylix.fonts.sansSerif; serif = config.stylix.fonts.sansSerif;
}; };
}; };
home-manager.users.${username} = {
stylix = lib.mkIf stylixEnabled {
targets.gtk.enable = false;
};
dconf = {
enable = true;
settings = {
"org/gnome/shell" = {
disable-user-extensions = false; # enables user extensions
enabled-extensions = [
pkgs.gnomeExtensions.appindicator.extensionUuid
];
};
"org/gnome/desktop/input-sources" = {
xkb-options = [ "compose:ralt" ];
};
};
};
home.packages = with pkgs.gnomeExtensions; [
appindicator
];
programs.gnome-terminal = {
enable = true;
showMenubar = false;
profile = {
"4621184a-b921-42cf-80a0-7784516606f2" = {
default = true;
audibleBell = false;
allowBold = true;
visibleName = "${username}";
font = "IntoneMono NF 14";
};
};
};
};
}; };
} }