feat(limonka)!: remove nix.registry and nix.nixPath, not working

This commit is contained in:
reo101 2024-09-15 17:08:20 +03:00
parent 87e3cf2c3b
commit e33df45bf6
Signed by: reo101
GPG key ID: 675AA7EF13964ACB

View file

@ -8,33 +8,12 @@
# Auto upgrade nix package and the daemon service. # Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true; services.nix-daemon.enable = true;
nix = let nix = {
flakeInputs = lib.filterAttrs (lib.const (lib.isType "flake")) inputs;
in {
# Ensure we can work with flakes # Ensure we can work with flakes
# TODO: add to `README.md` # TODO: add to `README.md`
# NOTE: run `sudo -i nix-env --uninstall nix` to uninstall the global `nix` # NOTE: run `sudo -i nix-env --uninstall nix` to uninstall the global `nix`
package = pkgs.lix-monitored; package = pkgs.lix-monitored;
# This will add each flake input as a registry
# To make nix3 commands consistent with your flake
registry = lib.mapAttrs (_: value: { flake = value; }) flakeInputs;
# This will additionally add your inputs to the system's legacy channels
# Making legacy nix commands consistent as well, awesome!
nixPath = lib.mapAttrsToList (key: value: "${key}=flake:${key}") flakeInputs;
# extraOptions = ''
# # Enable flakes and new 'nix' command
# experimental-features = nix-command flakes
# # Allow building multiple derivations in parallel
# max-jobs = auto
# # Deduplicate and optimize nix store
# auto-optimise-store = true
# # Keep outputs and derivations
# keep-outputs = true
# keep-derivations = true
# '';
settings = { settings = {
# Enable flakes and new 'nix' command # Enable flakes and new 'nix' command