Remove apps.nix
File was not referenced
This commit is contained in:
parent
9ab1221dc0
commit
4944d5790b
1 changed files with 0 additions and 33 deletions
33
apps.nix
33
apps.nix
|
@ -1,33 +0,0 @@
|
|||
{ pkgs
|
||||
, deploy-rs
|
||||
, system
|
||||
, ...
|
||||
}:
|
||||
{
|
||||
nixos-switch = {
|
||||
type = "app";
|
||||
program = toString (pkgs.writeScript "nixos-switch" ''
|
||||
#!${pkgs.runtimeShell}
|
||||
flake=$(nix flake metadata --json ${./.} | jq -r .url)
|
||||
${pkgs.nixos-rebuild}/bin/nixos-rebuild switch --flake ".#$1" --use-remote-sudo
|
||||
'');
|
||||
};
|
||||
|
||||
deploy = {
|
||||
type = "app";
|
||||
program = toString (pkgs.writeScript "deploy" ''
|
||||
#!${pkgs.runtimeShell}
|
||||
flake=$(nix flake metadata --json ${./.} | jq -r .url)
|
||||
${deploy-rs.apps."${system}".deploy-rs.program} ''${flake}
|
||||
'');
|
||||
};
|
||||
|
||||
update = {
|
||||
type = "app";
|
||||
program = toString (pkgs.writeScript "update" ''
|
||||
#!${pkgs.runtimeShell}
|
||||
${pkgs.nix}/bin/nix flake update --commit-lock-file
|
||||
'');
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue