From a3edee2d4424f2e6d70b68f1339559c5c55fa1fe Mon Sep 17 00:00:00 2001 From: Tomas Rivera Date: Sun, 17 May 2026 09:51:39 +0200 Subject: [PATCH] development: separated into new file --- hosts/laptop/configuration.nix | 20 +------------------- modules/nixos/development.nix | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 19 deletions(-) create mode 100644 modules/nixos/development.nix diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index dac3850..fa92ddf 100755 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -33,11 +33,9 @@ ../../modules/nixos/IO.nix ../../modules/nixos/fonts.nix ../../modules/nixos/latex.nix + ../../modules/nixos/development.nix ]; - - programs.nix-ld.enable = true; #Run unpatched dynamic binaries on NixOS. For example lets run ./a.out from gcc - qt.enable = true; home-manager = { @@ -122,13 +120,11 @@ cmatrix swww #wallpaper daemon socat # Utility for bidirectional data transfer between two independent data channels (used to communicate between hyprland and swww to change wallpapers dinamically) - gcc # GNU C compiler libreoffice gruvbox-gtk-theme powertop python313Packages.pygments # used for ccat (comment of colorize plugin from oh-my-zsh) fzf - jq # json parser used in some scripts bottom # Cross-platform graphical process/system monitor with a customizable interface cmatrix tomato-c # pomodoro timer @@ -143,26 +139,12 @@ # used for the framework 16 laptop framework-tool framework-tool-tui - (pkgs-unstable.python314.withPackages (ps: - with ps; [ - matplotlib - networkx - scipy - ])) fluffychat matrix-commander-rs # matrix client - direnv # utils for dev pkg-config gdb raylib glfw # raylib and some dependecies - cling # c interpreter used for coding - # lsp - clang-tools - python311Packages.python-lsp-server - ltex-ls-plus - pylint - black # 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'")" diff --git a/modules/nixos/development.nix b/modules/nixos/development.nix new file mode 100644 index 0000000..6858ee7 --- /dev/null +++ b/modules/nixos/development.nix @@ -0,0 +1,25 @@ +{ + pkgs, + ... +}: +{ + programs.nix-ld.enable = true; #Run unpatched dynamic binaries on NixOS. For example lets run ./a.out from gcc + environment.systemPackages = with pkgs; [ + gcc + jq # json parser used in some scripts + (pkgs-unstable.python314.withPackages (ps: + with ps; [ + matplotlib + networkx + scipy + ])) + direnv + cling # c interpreter used for coding + # lsp + clang-tools + python311Packages.python-lsp-server + ltex-ls-plus + pylint + black + ]; +}