From 18f3e7008bc7ea213fd33fb0363bf7363296137c Mon Sep 17 00:00:00 2001 From: Lukas Heiligenbrunner Date: Sat, 21 Oct 2023 12:00:53 +0200 Subject: [PATCH] add several application, delete old generations, newer kernel --- configuration.nix | 9 +++++++++ home.nix | 11 +++++++++++ modules/packages.nix | 10 ++++++++++ 3 files changed, 30 insertions(+) diff --git a/configuration.nix b/configuration.nix index 40f1e94..d53a950 100644 --- a/configuration.nix +++ b/configuration.nix @@ -16,6 +16,9 @@ boot.loader.grub.device = "/dev/sda"; boot.loader.grub.useOSProber = true; + # newest kernel + boot.kernelPackages = pkgs.linuxPackages_latest; + networking.hostName = "nixos"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. @@ -115,6 +118,12 @@ nix.settings.experimental-features = [ "nix-command" "flakes" ]; + # automatically delete older generations and keep last 5 + nix.settings.auto-optimise-store = true; + nix.gc.automatic = true; + nix.gc.dates = "daily"; + nix.gc.options = "--delete-older-than +5"; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave diff --git a/home.nix b/home.nix index c027bdb..f659847 100644 --- a/home.nix +++ b/home.nix @@ -13,11 +13,15 @@ "org/gnome/desktop/interface" = { color-scheme = "prefer-dark"; enable-hot-corners = true; + clock-show-seconds = true; }; "org/gnome/mutter" = { dynamic-workspaces = true; edge-tiling = true; }; + "org/gnome/shell" = { + favorite-apps = ["org.gnome.Nautilus.desktop" "gnome-system-monitor.desktop" "firefox.desktop" "org.gnome.Console.desktop"]; + }; }; # nautilus settings @@ -29,4 +33,11 @@ default-zoom-level = "small"; }; }; + + # set git names + programs.git = { + enable = true; + userName = "Lukas Heiligenbrunner"; + userEmail = "lukas.heiligenbrunner@gmail.com"; + }; } \ No newline at end of file diff --git a/modules/packages.nix b/modules/packages.nix index 56f5870..d455d00 100644 --- a/modules/packages.nix +++ b/modules/packages.nix @@ -20,6 +20,9 @@ atomix # puzzle game ]); + # disable xterm + services.xserver.excludePackages = [ pkgs.xterm ]; + # packages in global env environment.systemPackages = with pkgs; [ # system utilities @@ -39,5 +42,12 @@ # multimedia vlc gimp + + # file transfer + warp + + # gui utilities + pdfarranger + diebahn ]; } \ No newline at end of file