30 lines
834 B
Nix
30 lines
834 B
Nix
{ pkgs, lib, inputs, username, config, ... }: {
|
|
# imp.home.dirs = [ ".local/share/nix" ]; # Nix Repl history
|
|
nix = {
|
|
package = pkgs.lix;
|
|
settings = {
|
|
allowed-users = ["root" "@wheel"];
|
|
trusted-users = [ "root" username ];
|
|
experimental-features = ["nix-command" "flakes"];
|
|
build-dir = "/nix/builds";
|
|
};
|
|
registry = lib.mapAttrs (_: value: {flake = value;}) inputs // { n.flake = inputs.nixpkgs; };
|
|
nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry;
|
|
};
|
|
|
|
system.stateVersion = "23.05"; # My first nixos was 22.11
|
|
|
|
nixpkgs.overlays = [
|
|
(import ../../pkgs)
|
|
];
|
|
|
|
# documentation = {
|
|
# enable = true;
|
|
# doc.enable = true;
|
|
# dev.enable = true;
|
|
# info.enable = true;
|
|
# nixos.enable = true;
|
|
# man.enable = true;
|
|
# };
|
|
}
|