mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-14 11:45:06 +01:00
shell.nix init script
This commit is contained in:
parent
035aa2a0fe
commit
80f49e02ab
1 changed files with 13 additions and 0 deletions
|
|
@ -61,6 +61,19 @@ in
|
||||||
exec swaylock
|
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; };
|
] ++ import ./common-packages.nix { inherit pkgs inputs; };
|
||||||
|
|
||||||
# Nicely reload system units when changing configs
|
# Nicely reload system units when changing configs
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue