gnome configuration
This commit is contained in:
parent
cf8a2f0b74
commit
47f67ebc13
3 changed files with 68 additions and 7 deletions
|
|
@ -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
54
machines/memere/gnome.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
@ -8,6 +8,8 @@
|
|||
packages = [
|
||||
pkgs.firefox
|
||||
pkgs.libreoffice
|
||||
pkgs.hunspell
|
||||
pkgs.hunspellDicts.fr-any
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue