From 417a739547484034acf7a264ec148e7c6597c5ef Mon Sep 17 00:00:00 2001 From: clerie Date: Mon, 19 Jun 2023 22:20:47 +0200 Subject: [PATCH] hosts/krypton,configuration/desktop: setup basic gnome environment --- configuration/common/default.nix | 7 +++++- configuration/desktop/default.nix | 9 +++++++ configuration/desktop/fonts.nix | 13 +++++++++++ configuration/desktop/gnome.nix | 39 +++++++++++++++++++++++++++++++ configuration/desktop/xserver.nix | 7 ++++++ hosts/krypton/configuration.nix | 4 ++++ hosts/krypton/programs.nix | 23 ++++++++++++++++++ 7 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 configuration/desktop/default.nix create mode 100644 configuration/desktop/fonts.nix create mode 100644 configuration/desktop/gnome.nix create mode 100644 configuration/desktop/xserver.nix create mode 100644 hosts/krypton/programs.nix diff --git a/configuration/common/default.nix b/configuration/common/default.nix index 95f1727..ca956e3 100644 --- a/configuration/common/default.nix +++ b/configuration/common/default.nix @@ -11,7 +11,10 @@ time.timeZone = "Europe/Berlin"; - i18n.defaultLocale = "en_US.UTF-8"; + i18n.defaultLocale = "de_DE.UTF-8"; + i18n.extraLocaleSettings = { + LC_MESSAGES = "en_US.UTF-8"; + }; console = { keyMap = "de-latin1"; }; @@ -143,6 +146,8 @@ }; }; + documentation.doc.enable = false; + nixpkgs.overlays = [ (import ../../pkgs/overlay.nix) ]; diff --git a/configuration/desktop/default.nix b/configuration/desktop/default.nix new file mode 100644 index 0000000..2121bdc --- /dev/null +++ b/configuration/desktop/default.nix @@ -0,0 +1,9 @@ +{ ... }: + +{ + imports = [ + ./fonts.nix + ./gnome.nix + ./xserver.nix + ]; +} diff --git a/configuration/desktop/fonts.nix b/configuration/desktop/fonts.nix new file mode 100644 index 0000000..762bf10 --- /dev/null +++ b/configuration/desktop/fonts.nix @@ -0,0 +1,13 @@ +{ pkgs, ... }: + +{ + + fonts.enableDefaultFonts = true; + fonts.fonts = with pkgs; [ + roboto + roboto-mono + noto-fonts + noto-fonts-cjk + noto-fonts-emoji + ]; +} diff --git a/configuration/desktop/gnome.nix b/configuration/desktop/gnome.nix new file mode 100644 index 0000000..b120401 --- /dev/null +++ b/configuration/desktop/gnome.nix @@ -0,0 +1,39 @@ +{ pkgs, ... }: + +{ + + services.xserver.enable = true; + services.xserver.displayManager.gdm.enable = true; + services.xserver.desktopManager.gnome.enable = true; + + services.gnome = { + tracker-miners.enable = false; + tracker.enable = false; + }; + + environment.gnome.excludePackages = with pkgs.gnome; [ + baobab + epiphany + gnome-calendar + gnome-clocks + pkgs.gnome-console + gnome-contacts + gnome-logs + gnome-maps + gnome-music + pkgs.gnome-tour + pkgs.gnome-photos + gnome-weather + pkgs.gnome-connections + simple-scan + yelp + ]; + + environment.systemPackages = with pkgs; [ + evolution + gnome.gnome-terminal + gnome.gnome-tweaks + ]; + + services.gnome.evolution-data-server.enable = true; +} diff --git a/configuration/desktop/xserver.nix b/configuration/desktop/xserver.nix new file mode 100644 index 0000000..4ae1c9d --- /dev/null +++ b/configuration/desktop/xserver.nix @@ -0,0 +1,7 @@ +{ pkgs, ... }: + +{ + services.xserver.excludePackages = with pkgs; [ + xterm + ]; +} diff --git a/hosts/krypton/configuration.nix b/hosts/krypton/configuration.nix index 83174b2..7be1f21 100644 --- a/hosts/krypton/configuration.nix +++ b/hosts/krypton/configuration.nix @@ -4,6 +4,10 @@ imports = [ ./hardware-configuration.nix + + ../../configuration/desktop + + ./programs.nix ]; # Use the systemd-boot EFI boot loader. diff --git a/hosts/krypton/programs.nix b/hosts/krypton/programs.nix new file mode 100644 index 0000000..a7fefab --- /dev/null +++ b/hosts/krypton/programs.nix @@ -0,0 +1,23 @@ +{ pkgs, ... }: + +{ + environment.systemPackages = with pkgs; [ + firefox-wayland + ]; + + users.users.clerie.packages = with pkgs; [ + keepassxc + vlc + mumble + element-desktop + signal-desktop + dino + ]; + + services.syncthing = { + enable = true; + user = "clerie"; + dataDir = "/home/clerie"; + configDir = "/home/clerie/.config/syncthing"; + }; +}