changes 08-09-25
This commit is contained in:
9
overlay/scripts/nix/default.nix
Normal file
9
overlay/scripts/nix/default.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ super, host, root }:
|
||||
|
||||
{
|
||||
fetchfromgh = super.callPackage ./templates/fetchfromgh.nix {};
|
||||
mkshell = super.callPackage ./templates/mkshell.nix {};
|
||||
garbage-collect = super.callPackage ./garbage-collect.nix {};
|
||||
check_updates = super.callPackage ./check_updates.nix {};
|
||||
rebuild = super.callPackage ./rebuild.nix { inherit host; self = root; };
|
||||
}
|
||||
19
overlay/scripts/nix/templates/mkshell.nix
Normal file
19
overlay/scripts/nix/templates/mkshell.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ pkgs ? import <nixpkgs> { } }:
|
||||
|
||||
pkgs.writeShellApplication {
|
||||
name = "mkshell";
|
||||
runtimeInputs = [];
|
||||
text = ''
|
||||
command cat <<EOF
|
||||
devShells.\''${system}.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
];
|
||||
|
||||
shellHook = '''
|
||||
export SHELL=\''${pkgs.zsh}/bin/zsh
|
||||
exec \''${pkgs.zsh}/bin/zsh
|
||||
''';
|
||||
};
|
||||
EOF
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user