move tooling to dev environment

This commit is contained in:
Katherina Walshe-Grey 2024-09-12 13:35:35 +01:00
parent a0a94b86ff
commit 4a9e6b5f3c
3 changed files with 23 additions and 9 deletions

View file

@ -12,11 +12,6 @@
lsof lsof
tcpdump tcpdump
netcat # <3 netcat # <3
# used for nix config
colmena
agenix
rc2nix
]; ];
environment.wordlist.enable = true; environment.wordlist.enable = true;

View file

@ -42,10 +42,6 @@
nix.nixPath = [ "nixpkgs=flake:nixpkgs" ]; nix.nixPath = [ "nixpkgs=flake:nixpkgs" ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nixpkgs.config.packageOverrides = pkgs: {
agenix = agenix.packages.${config.nixpkgs.hostPlatform.system}.default;
rc2nix = plasma-manager.packages.${config.nixpkgs.hostPlatform.system}.rc2nix;
};
nixpkgs.overlays = [ nur.overlay ]; nixpkgs.overlays = [ nur.overlay ];
home-manager.sharedModules = [ plasma-manager.homeManagerModules.plasma-manager ]; home-manager.sharedModules = [ plasma-manager.homeManagerModules.plasma-manager ];
@ -92,5 +88,19 @@
]; ];
}; };
}; };
# TODO: have this work on other systems too
devShells."x86_64-linux".default =
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in
pkgs.mkShell {
packages = [
pkgs.colmena
agenix.packages.${system}.default
plasma-manager.packages.${system}.rc2nix
];
};
}; };
} }

9
shell.nix Normal file
View file

@ -0,0 +1,9 @@
let
shell = (import
(fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/refs/tags/v1.0.1.tar.gz";
sha256 = "0jm6nzb83wa6ai17ly9fzpqc40wg1viib8klq8lby54agpl213w5";
})
{ src = ./.; }).shellNix;
in
shell.devShells.${builtins.currentSystem}