From ae77e8c6495eac736f70827593aa900a3715a394 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sun, 2 Apr 2023 16:34:43 +0200 Subject: [PATCH] profiles/development: init from legacy --- legacy/modules/development.nix | 42 --------------------------- machines/thinkman/configuration.nix | 1 - machines/thinkman/profiles.nix | 1 + profiles/default.nix | 1 + profiles/development/default.nix | 45 +++++++++++++++++++++++++++++ 5 files changed, 47 insertions(+), 43 deletions(-) delete mode 100644 legacy/modules/development.nix create mode 100644 profiles/development/default.nix diff --git a/legacy/modules/development.nix b/legacy/modules/development.nix deleted file mode 100644 index dd5fb8b..0000000 --- a/legacy/modules/development.nix +++ /dev/null @@ -1,42 +0,0 @@ -{ config, pkgs, ... }: -{ - environment.systemPackages = with pkgs; [ - # rust - cargo - clippy # lint - cargo-flamegraph - cargo-outdated - rustfmt - rustc - # tools - cloc - direnv - entr - ripgrep - # general - clang - cmake - gnumake - meson - ninja - valgrind - # websites - hugo - # scripts - (python3.withPackages (ps: with ps; [ - jupyter # notebooks - matplotlib - numpy - pandas - pillow - plotly - scikitlearn - scipy - tqdm # progressbar in pandas - wheel # python development - ])) - shellcheck - ycmd - woeusb-ng - ]; -} diff --git a/machines/thinkman/configuration.nix b/machines/thinkman/configuration.nix index 160801d..709b034 100644 --- a/machines/thinkman/configuration.nix +++ b/machines/thinkman/configuration.nix @@ -10,7 +10,6 @@ ./system.nix ../../legacy/modules/desktop-default.nix ../../legacy/modules/desktop-development.nix - ../../legacy/modules/development.nix ]; networking.hostName = "thinkman"; diff --git a/machines/thinkman/profiles.nix b/machines/thinkman/profiles.nix index 1a4bbec..a23d5c0 100644 --- a/machines/thinkman/profiles.nix +++ b/machines/thinkman/profiles.nix @@ -8,6 +8,7 @@ in "3d-design".enable = true; android.enable = true; clean.enable = true; + development.enable = true; filesystem.enable = true; gaming.enable = true; latex.enable = true; diff --git a/profiles/default.nix b/profiles/default.nix index 42f1f08..22b7a70 100644 --- a/profiles/default.nix +++ b/profiles/default.nix @@ -5,6 +5,7 @@ ./3d-design ./android ./clean + ./development ./filesystem ./gaming ./latex diff --git a/profiles/development/default.nix b/profiles/development/default.nix new file mode 100644 index 0000000..22bb3dd --- /dev/null +++ b/profiles/development/default.nix @@ -0,0 +1,45 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.my.profiles.development; +in +{ + options.my.profiles.development = with lib; { + enable = mkEnableOption "development profile"; + }; + + config = lib.mkIf cfg.enable { + environment.systemPackages = with pkgs; [ + # tools + cloc + direnv + entr + ripgrep + # general + clang + cmake + gnumake + meson + ninja + valgrind + # websites + hugo + # scripts + (python3.withPackages (ps: with ps; [ + jupyter # notebooks + matplotlib + numpy + pandas + pillow + plotly + scikitlearn + scipy + tqdm # progressbar in pandas + wheel # python development + ])) + # linter + shellcheck + # setup + woeusb-ng + ]; + }; +}