From 30a42af639af75f1075ca576efa8bb33e11e30b7 Mon Sep 17 00:00:00 2001 From: Tomas Rivera Date: Sun, 17 May 2026 09:12:47 +0200 Subject: [PATCH] nixUtils: migrated multiple packages to separate file --- hosts/laptop/configuration.nix | 15 --------------- modules/nixos/nixUtils.nix | 24 ++++++++++++++++++++---- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 521c8a7..1d4e95e 100755 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -36,11 +36,6 @@ qt.enable = true; - nix.nixPath = [ - "nixpkgs=${inputs.nixpkgs.outPath}" - "home-manager=${inputs.home-manager.outPath}" - ]; #manix is unhappy without this - home-manager = { useGlobalPkgs = true; useUserPackages = true; @@ -166,8 +161,6 @@ ]; - #adds nixos experimental features: - nix.settings.experimental-features = ["nix-command" "flakes"]; @@ -243,10 +236,6 @@ raylib glfw # raylib and some dependecies rembg # background remover - #some nix tools - manix - deadnix - alejandra cling # c interpreter used for coding mprisence gif-for-cli @@ -258,7 +247,6 @@ ltex-ls-plus pylint black - nixd # for caelestia kdePackages.qtdeclarative # provides qmlls and other things quickshell # we have it but adding it there solves "WARN qt.qpa.services: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.quickshell'")" @@ -271,9 +259,6 @@ # this is more up to date #(callPackage ../../modules/packages/vivify.nix {}) #(callPackage ../../modules/packages/sbb-tui.nix {}) - pkgs-unstable.nixpkgs-review - pkgs-unstable.nixfmt-tree - pkgs-unstable.treefmt pkgs-unstable.tor-browser pkgs-unstable.bitwarden-desktop ]; diff --git a/modules/nixos/nixUtils.nix b/modules/nixos/nixUtils.nix index a6e263d..38a4b3f 100644 --- a/modules/nixos/nixUtils.nix +++ b/modules/nixos/nixUtils.nix @@ -1,12 +1,9 @@ { - config, - pkgs, pkgs-unstable, - libs, inputs, ... }: { -# Garbage collector of generations + # Garbage collector of generations nix.gc = { automatic = true; dates = "weekly"; @@ -15,4 +12,23 @@ # nixpkgs-review crashed my laptop multiple times. nix.settings.max-jobs = 2; nix.settings.cores = 2; + + #manix is unhappy without this + nix.nixPath = [ + "nixpkgs=${inputs.nixpkgs.outPath}" + "home-manager=${inputs.home-manager.outPath}" + ]; + + #adds nixos experimental features: + nix.settings.experimental-features = ["nix-command" "flakes"]; + + environment.systemPackages = with pkgs-unstable; [ + nixpkgs-review + nixfmt-tree + treefmt + nixd + manix + deadnix + alejandra + ]; }