diff --git a/flake.lock b/flake.lock index 1a7e59b..864e896 100644 --- a/flake.lock +++ b/flake.lock @@ -1286,6 +1286,7 @@ "nixpkgs": "nixpkgs_7", "nur": "nur", "rosepine-kvantum": "rosepine-kvantum", + "rust-overlay": "rust-overlay_2", "spicetify-nix": "spicetify-nix", "split-monitor-workspaces": "split-monitor-workspaces", "stylix": "stylix", @@ -1336,6 +1337,26 @@ "type": "github" } }, + "rust-overlay_2": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1734489114, + "narHash": "sha256-dKBBZr2pw7KDI/7GeiN5qPccqqtvnK2jqAMcMo4rVvU=", + "owner": "oxalica", + "repo": "rust-overlay", + "rev": "b2e385f8e5c1d7c0d9ce738d650955c2e94555ae", + "type": "github" + }, + "original": { + "owner": "oxalica", + "repo": "rust-overlay", + "type": "github" + } + }, "spicetify-nix": { "inputs": { "flake-compat": "flake-compat_4", diff --git a/flake.nix b/flake.nix index 68c58b0..a3d15ce 100644 --- a/flake.nix +++ b/flake.nix @@ -13,6 +13,11 @@ hyprsysteminfo.url = "github:/hyprwm/hyprsysteminfo"; hyprpolkitagent.url = "github:hyprwm/hyprpolkitagent"; + rust-overlay = { + url = "github:oxalica/rust-overlay"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + hyprland = { type = "git"; url = "https://github.com/hyprwm/Hyprland"; diff --git a/home/home.nix b/home/home.nix index f8c1edd..2c9bb91 100644 --- a/home/home.nix +++ b/home/home.nix @@ -4,6 +4,7 @@ if hostname == "zion" then [ ./programs/btop.nix + ./programs/development.nix ./programs/fastfetch.nix # ./programs/foot.nix ./programs/git.nix @@ -33,6 +34,7 @@ else if hostname == "thor" then [ ./programs/btop.nix + ./programs/development.nix ./programs/fastfetch.nix # ./programs/foot.nix ./programs/git.nix diff --git a/home/programs/development.nix b/home/programs/development.nix new file mode 100644 index 0000000..5e1c3c5 --- /dev/null +++ b/home/programs/development.nix @@ -0,0 +1,61 @@ +{ inputs, pkgs, rust-overlay, ... }: +{ + home.packages = with pkgs; [ + # general + docker + docker-compose + + # iot + platformio + + # rust + openssl + cargo + pkg-config + cargo-deny + cargo-edit + cargo-watch + rust-analyzer + + # bash + shellcheck + + # nodejs + node2nix + nodejs + nodePackages.pnpm + yarn + + # # python + # python311 + # python311Packages.pip + # python311Packages.venvShellHook + + # cpp + clang-tools + cmake + codespell + conan + cppcheck + doxygen + gtest + lcov + vcpkg + # vcpkg-tool + valgrind + + # haskell + cabal-install + ghc + haskell-language-server + + # nix + cachix + lorri + niv + nixfmt-classic + statix + vulnix + haskellPackages.dhall-nix + ]; +} diff --git a/home/programs/packages.nix b/home/programs/packages.nix index 4499f46..ad086f7 100644 --- a/home/programs/packages.nix +++ b/home/programs/packages.nix @@ -66,10 +66,7 @@ # > development < # android-studio - docker - docker-compose seahorse - platformio iwgtk imv feh @@ -82,7 +79,7 @@ qalculate-gtk file-roller vim - nixfmt-rfc-style + # nixfmt-rfc-style nemo nixd glfw-wayland-minecraft diff --git a/home/programs/vscodium.nix b/home/programs/vscodium.nix index 96f0e6e..866dc42 100644 --- a/home/programs/vscodium.nix +++ b/home/programs/vscodium.nix @@ -8,7 +8,7 @@ zlib openssl.dev pkg-config - nixfmt-rfc-style + # nixfmt-rfc-style python3 ] );