mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
cleanup
This commit is contained in:
parent
45628bdbc3
commit
78b1a5761c
13 changed files with 52 additions and 113 deletions
|
@ -6,6 +6,7 @@
|
|||
./gpg.nix
|
||||
./sops.nix
|
||||
./vim.nix
|
||||
./nix.nix
|
||||
./tmux.nix
|
||||
./yazi.nix
|
||||
./zsh.nix
|
||||
|
|
15
shared/nix.nix
Normal file
15
shared/nix.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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 =
|
||||
''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue