nh: init and remove makeshift fish function
This commit is contained in:
parent
c49d449516
commit
50150710e9
4 changed files with 35 additions and 2 deletions
|
@ -44,7 +44,6 @@ in
|
|||
};
|
||||
functions = {
|
||||
checkHash = "nix hash to-sri --type sha256 $(nix-prefetch-url --unpack $argv)";
|
||||
buildandDeployYggdrasil = "nom build '.#nixosConfigurations.yggdrasil.config.system.build.toplevel' && sudo nixos-rebuild switch --flake .#yggdrasil";
|
||||
deployNixberry = "nixos-rebuild switch --flake .#nixberry --target-host nixberry --use-remote-sudo --fast";
|
||||
deployLoptland = "nixos-rebuild switch --flake .#loptland --target-host christophhollizeck.dev --use-remote-sudo --fast";
|
||||
checkPR = "cd nixpkgs && ${lib.getExe pkgs.nixpkgs-review} pr $argv --post-result --approve";
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
namespace,
|
||||
pkgs,
|
||||
system,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
|
@ -50,6 +52,12 @@ in
|
|||
nix-output-monitor
|
||||
];
|
||||
|
||||
programs.nh = {
|
||||
enable = true;
|
||||
package = inputs.nh-flake.packages.${system}.nh;
|
||||
flake = "/home/cholli/projects/config";
|
||||
};
|
||||
|
||||
nix =
|
||||
let
|
||||
users = [
|
||||
|
@ -63,7 +71,7 @@ in
|
|||
|
||||
settings =
|
||||
{
|
||||
experimental-features = "nix-command flakes";
|
||||
experimental-features = "nix-command flakes repl-flake";
|
||||
http-connections = 50;
|
||||
warn-dirty = false;
|
||||
log-lines = 50;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue