mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
33 lines
772 B
Nix
33 lines
772 B
Nix
inputs: {
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
#other nix settings
|
|
nix = {
|
|
package = inputs.nix.packages.${pkgs.system}.default;
|
|
settings = {
|
|
experimental-features = [
|
|
"nix-command"
|
|
"flakes"
|
|
"repl-flake"
|
|
];
|
|
auto-optimise-store = true;
|
|
warn-dirty = false;
|
|
#ignore global registry
|
|
flake-registry = builtins.toFile "empty-flake-registry.json" ''{"flakes":[],"version":2}'';
|
|
#use for testing
|
|
#allow-import-from-derivation = false;
|
|
trusted-users = [
|
|
"root"
|
|
"@wheel"
|
|
];
|
|
allowed-users = [];
|
|
use-xdg-base-directories = true;
|
|
};
|
|
};
|
|
#fix for use-xdg-base-directories
|
|
environment.profiles = [
|
|
"\${XDG_STATE_HOME:-$HOME/.local/state}/nix/profile"
|
|
];
|
|
}
|