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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user