diff --git a/common/configuration.nix b/common/configuration.nix index e11f167..56d9722 100644 --- a/common/configuration.nix +++ b/common/configuration.nix @@ -8,10 +8,18 @@ # Bootloader. boot.loader = { + timeout = 1; systemd-boot.enable = true; efi.canTouchEfiVariables = true; }; + boot.plymouth.enable = true; + # start kernel in quiet output mode + # boot.kernelParams = ["quiet"]; + + # clean temp dir on every boot + boot.tmp.cleanOnBoot = true; + # newest kernel boot.kernelPackages = pkgs.linuxPackages_latest; @@ -81,7 +89,12 @@ nix.settings.auto-optimise-store = true; nix.gc.automatic = true; nix.gc.dates = "daily"; - nix.gc.options = "--delete-older-than +5"; + nix.gc.options = "--delete-older-than 3d"; + system.activationScripts.text = + '' + # keep only last 5 generations + #nix-env --delete-generations +5 -p /nix/var/nix/profiles/system + ''; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions diff --git a/common/home-root.nix b/common/home-root.nix index ba6dc64..c8b10ce 100644 --- a/common/home-root.nix +++ b/common/home-root.nix @@ -19,7 +19,9 @@ enable = true; shellAliases = { ll = "ls -l"; - up = "nix flake update && nixos-rebuild switch --flake .#main"; + up = "nix flake update && nixos-rebuild switch --flake .#laptop"; + gc = "nix-env --delete-generations +5 -p /nix/var/nix/profiles/system && nix store gc"; + listgen = "nix-env -p /nix/var/nix/profiles/system --list-generations"; }; history = { path = "${config.xdg.dataHome}/zsh/history"; diff --git a/common/home.nix b/common/home.nix index d51569d..9db6601 100644 --- a/common/home.nix +++ b/common/home.nix @@ -20,9 +20,15 @@ "org/gnome/mutter" = { dynamic-workspaces = true; edge-tiling = true; + experimental-features = ["scale-monitor-framebuffer"]; }; "org/gnome/shell" = { - favorite-apps = ["org.gnome.Nautilus.desktop" "gnome-system-monitor.desktop" "firefox.desktop" "org.gnome.Console.desktop"]; + favorite-apps = [ + "org.gnome.Nautilus.desktop" + "gnome-system-monitor.desktop" + "firefox.desktop" + "org.gnome.Console.desktop" + ]; # set extensions disable-user-extensions = false; @@ -31,6 +37,7 @@ enabled-extensions = [ "Vitals@CoreCoding.com" "tiling-assistant@leleat-on-github" + "launch-new-instance@gnome-shell-extensions.gcampax.github.com" ]; }; @@ -50,6 +57,7 @@ "org/gnome/settings-daemon/plugins/power" = { sleep-inactive-battery-type = "nothing"; sleep-inactive-ac-type = "nothing"; + ambient-enabled = false; }; }; @@ -130,4 +138,17 @@ home.file.".p10k.zsh" = { source = ./resources/.p10k.zsh; }; + + programs.vscode = { + enable = true; + enableExtensionUpdateCheck=true; + + userSettings = { + "window.titleBarStyle" = "custom"; + }; + extensions = with pkgs.vscode-extensions; [ + bbenoist.nix + ms-python.python + ]; + }; } \ No newline at end of file diff --git a/common/modules/packages.nix b/common/modules/packages.nix index 8c75fc6..27be41b 100644 --- a/common/modules/packages.nix +++ b/common/modules/packages.nix @@ -22,9 +22,12 @@ # disable xterm services.xserver.excludePackages = [ pkgs.xterm ]; + + # cli util to upate hardware services.fwupd.enable = true; - # For fingerprint support programs.steam.enable = true; + + # use zsh shell programs.zsh.enable = true; # packages in global env @@ -36,6 +39,8 @@ lm_sensors smartmontools powertop + htop + radeontop # web firefox @@ -47,8 +52,13 @@ flutter prusa-slicer rustup + + ## jetbrains ides jetbrains.idea-ultimate + jetbrains.dataspell kicad + + ## R statistics stuff rstudio R