mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
I don't know if i like this
This commit is contained in:
parent
c6a9144ffe
commit
1b62d16ddc
63 changed files with 369 additions and 294 deletions
|
|
@ -1,66 +0,0 @@
|
|||
{
|
||||
nix,
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
}:
|
||||
{
|
||||
nix = {
|
||||
#
|
||||
# Disable usage of channels
|
||||
#
|
||||
channel.enable = false;
|
||||
#
|
||||
# Flake registry and $NIX_PATH pinning
|
||||
#
|
||||
registry = lib.pipe inputs [
|
||||
(lib.filterAttrs (_: lib.isType "flake"))
|
||||
(lib.mapAttrs (_: flake: { inherit flake; }))
|
||||
(x: x // { nixpkgs.flake = inputs.unstable; })
|
||||
];
|
||||
nixPath = [ "/etc/nix/path" ];
|
||||
#
|
||||
# Ignore global registry
|
||||
#
|
||||
settings.flake-registry = "";
|
||||
#
|
||||
# Use nix directly from master
|
||||
#
|
||||
package = nix.packages.default;
|
||||
#
|
||||
# Other nix settings
|
||||
#
|
||||
settings = {
|
||||
experimental-features = [
|
||||
"auto-allocate-uids"
|
||||
"ca-derivations"
|
||||
"cgroups"
|
||||
"daemon-trust-override"
|
||||
"dynamic-derivations"
|
||||
"fetch-closure"
|
||||
"flakes"
|
||||
"nix-command"
|
||||
"no-url-literals"
|
||||
"parse-toml-timestamps"
|
||||
"read-only-local-store"
|
||||
"recursive-nix"
|
||||
"configurable-impure-env"
|
||||
];
|
||||
auto-optimise-store = true;
|
||||
warn-dirty = false;
|
||||
#
|
||||
# Use for testing
|
||||
#
|
||||
#allow-import-from-derivation = false;
|
||||
trusted-users = [ "root" ];
|
||||
allowed-users = [ "@wheel" ];
|
||||
use-xdg-base-directories = true;
|
||||
auto-allocate-uids = true;
|
||||
};
|
||||
};
|
||||
|
||||
environment.etc = lib.mapAttrs' (name: value: {
|
||||
name = "nix/path/${name}";
|
||||
value.source = value.flake;
|
||||
}) config.nix.registry;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue