Add flake.nix

Add a new flake.nix for this repo, having extracted it from
nixos-configs. Add packages.nix copied from nixos-configs, as I
accidentally removed it while filtering to create this repo.
This commit is contained in:
2022-06-14 02:17:01 +01:00
parent a30452afbc
commit 500bcd20eb
5 changed files with 239 additions and 8 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
{ pkgs, lib, ... }:
let mypkgs = pkgs.callPackage ../modules/pkgs.nix { };
let packages = pkgs.callPackage ./packages.nix {};
in {
home.packages = mypkgs.all;
home.packages = packages.all;
home.sessionVariables = {
"PATH" = "$HOME/.local/bin:$PATH";
"EDITOR" = "vim";
+24
View File
@@ -0,0 +1,24 @@
{ pkgs }:
with pkgs; rec {
# The stuff you want installed everywhere. The necessities.
base = [
bat # cat replacement, aliased to cat in home-manager
file
git
htop
lsof
mosh
tmux
unzip
vim
wget
];
# Networking shit
net = [ iperf3 nmap socat tcpdump ];
# development tools
dev = [ jq nixfmt gh glab hexyl ];
all = (base ++ net ++ dev);
}