1
0
Fork 0

remove devenv bloat

This commit is contained in:
Lukas Wurzinger 2025-04-08 01:24:06 +02:00
parent 27ba70d9da
commit 66aa356585
No known key found for this signature in database
5 changed files with 11 additions and 283 deletions

View file

@ -4,11 +4,6 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
devenv-root = {
url = "file+file:///dev/null";
flake = false;
};
devenv.url = "github:cachix/devenv";
};
outputs = {
@ -18,14 +13,10 @@
...
} @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} {
imports = [
inputs.devenv.flakeModule
];
systems = ["x86_64-linux" "aarch64-linux"];
flake.nixosModules = let
musicomp = import ./nixos/musicomp.nix inputs;
musicomp = import ./nixos/musicomp inputs;
in {
inherit musicomp;
default = musicomp;
@ -37,16 +28,10 @@
lib,
...
}: {
devenv.shells.default = {
devenv.root = let
devenvRootFileContent = builtins.readFile inputs.devenv-root.outPath;
in
lib.mkIf (devenvRootFileContent != "") devenvRootFileContent;
name = "musicomp";
imports = [
./devenv.nix
devShells.default = pkgs.mkShellNoCC {
packages = [
pkgs.python3
pkgs.python3Packages.hatchling
];
};