1
0
mirror of https://github.com/kmein/niveum synced 2026-03-19 19:41:08 +01:00

feat: add niveum-scripts

This commit is contained in:
Kierán Meinhardt
2019-11-30 19:34:08 +01:00
parent 12e4ba3de8
commit 0a9ba892a2
4 changed files with 26 additions and 17 deletions

View File

@@ -157,23 +157,6 @@ in
environment.systemPackages = [ pkgs.pavucontrol pkgs.pamixer ];
}
{
environment.systemPackages =
let niveumPath = "${config.users.users.me.home}/prog/git/niveum";
in [
(pkgs.writers.writeDashBin "niveum-deploy" ''
[ $# -eq 1 ] || echo >&2 "Usage: niveum-deploy SYSTEM"
eval $(${pkgs.nix}/bin/nix-build --no-out-link "${niveumPath}/deploy.nix" -A "$1")
'')
(pkgs.writers.writeDashBin "niveum-update" ''
${pkgs.nix-prefetch-git}/bin/nix-prefetch-git \
--url https://github.com/NixOS/nixpkgs-channels \
--rev refs/heads/nixos-${config.system.stateVersion} \
> "${niveumPath}/nixpkgs.json"
'')
];
}
{
environment.interactiveShellInit = "export PATH=$PATH:$HOME/.cargo/bin";
environment.shellAliases =