This commit is contained in:
Rouven Seifert 2023-10-28 15:51:25 +02:00
parent 45628bdbc3
commit 78b1a5761c
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
13 changed files with 52 additions and 113 deletions

View file

@ -6,6 +6,7 @@
./gpg.nix
./sops.nix
./vim.nix
./nix.nix
./tmux.nix
./yazi.nix
./zsh.nix

15
shared/nix.nix Normal file
View file

@ -0,0 +1,15 @@
{ config, lib, nixpkgs, ... }:
{
nix = {
# expose all flake inputs through nix Path and registry
registry = {
nixpkgs.flake = nixpkgs;
};
nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry;
# keep build-time deps around for offline-rebuilding
settings = {
auto-optimise-store = true;
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
};
};
}

View file

@ -81,16 +81,6 @@
echo System package diff:
${config.nix.package}/bin/nix store diff-closures $(command ls -d /nix/var/nix/profiles/system-* | tail -2)
}
shell() {
unset PKGS
for var in "$@"
do
PKGS=$PKGS\ nixpkgs/nixos-unstable\\#$var
done
eval ${pkgs.nix-output-monitor}/bin/nom shell $PKGS
}
'';
promptInit =
''