From 67072eb2f3a13f1243cc8bdd9cf997b81ce71353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20H=C3=A9mono?= Date: Mon, 22 Sep 2025 09:51:48 +0200 Subject: [PATCH] Reformat and update nixos config --- hosts/gwiad/configuration.nix | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/hosts/gwiad/configuration.nix b/hosts/gwiad/configuration.nix index 02e00dd..8a02f1a 100644 --- a/hosts/gwiad/configuration.nix +++ b/hosts/gwiad/configuration.nix @@ -72,12 +72,12 @@ services.xserver = { enable = true; xkb.layout = "fr"; - displayManager.gdm.enable = true; - desktopManager.gnome.enable = true; excludePackages = with pkgs; [ xterm ]; }; + services.displayManager.gdm.enable = true; + services.desktopManager.gnome.enable = true; environment.gnome.excludePackages = with pkgs; [ epiphany geary @@ -88,15 +88,19 @@ environment.variables.EDITOR = "vim"; # Nix configuration - nix.settings.experimental-features = [ "nix-command" "flakes" ]; - nix.gc = { - automatic = true; - dates = "weekly"; - options = "--delete-older-than 7d"; + nix = { + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 7d"; + }; + settings = { + experimental-features = [ "nix-command" "flakes" ]; + auto-optimise-store = true; + trusted-users = [ "jhemono" ]; + }; + channel.enable = false; }; - nix.settings.auto-optimise-store = true; - nix.settings.trusted-users = [ "jhemono" ]; - nix.channel.enable = false; # Some programs need SUID wrappers, can be configured further or are # started in user sessions.