shell.nix init script

This commit is contained in:
nora 2025-12-28 15:58:31 +01:00
parent 035aa2a0fe
commit 80f49e02ab

View file

@ -61,6 +61,19 @@ in
exec swaylock
'';
})
(pkgs.writeShellApplication {
name = "shell.nix";
text = ''
cat > shell.nix <<EOF
{ pkgs ? import <nixpkgs> {} }: pkgs.mkShell {
buildInputs = with pkgs; [ ];
packages = with pkgs; [ ];
}
EOF
echo "use nix" > .envrc
'';
})
] ++ import ./common-packages.nix { inherit pkgs inputs; };
# Nicely reload system units when changing configs