gnome configuration

This commit is contained in:
boyreau 2026-08-19 16:02:09 +02:00
commit 47f67ebc13
3 changed files with 68 additions and 7 deletions

View file

@ -6,15 +6,9 @@
/etc/nixos/modules/nix.nix
./users.nix
./gnome.nix
];
services.desktopManager.gnome.enable = true;
services.gnome = {
core-apps.enable = true;
core-shell.enable = true;
gnome-software.enable = true;
};
nix.nixPath = [
"nixos-config=/etc/nixos/machines/memere/default.nix"
"nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos"
@ -24,5 +18,16 @@
networking.hostName = "pepere";
networking.networkmanager.enable = true;
# replace `vmVariant` with `vmVariantWithBootLoader` if you are going to use `build-vm-with-bootloder`.
virtualisation.vmVariant = {
# the following configuration is added only when building VM with `build-vm`
virtualisation = {
memorySize = 2048; # use 2048MiB memory
cores = 3; # use 3 cpu cores
};
};
i18n.defaultLocale = "fr_FR.UTF-8";
system.stateVersion = "26.05";
}

54
machines/memere/gnome.nix Normal file
View file

@ -0,0 +1,54 @@
{ pkgs, ... }:
{
# GDM + autologin
services.displayManager.gdm.enable = true;
services.displayManager.autoLogin.enable = true;
services.displayManager.autoLogin.user = "memere";
# GNOME
services.desktopManager.gnome.enable = true;
services.gnome = {
core-shell.enable = true;
core-apps.enable = false;
gnome-software.enable = false;
games.enable = false;
};
# GNOME-Extensions
environment.systemPackages = with pkgs; [
nautilus
libreoffice
gnomeExtensions.dash-to-dock
];
# Default GNOME configuration
programs.dconf.enable = true;
programs.dconf.profiles.user.databases = [
{
lockAll = true; # prevents overriding
settings = {
"org/gnome/desktop/input-sources" = {
sources = [
(pkgs.lib.gvariant.mkTuple [
"xkb"
"fr"
])
];
};
"org/gnome/shell" = {
favorite-apps = [
"firefox.desktop"
"org.gnome.Nautilus.desktop"
"writer.desktop"
"calc.desktop"
"org.gnome.Settings.desktop"
];
enabled-extensions = [
pkgs.gnomeExtensions.dash-to-dock.extensionUuid
];
};
};
}
];
}

View file

@ -8,6 +8,8 @@
packages = [
pkgs.firefox
pkgs.libreoffice
pkgs.hunspell
pkgs.hunspellDicts.fr-any
];
};
}