Initial commit
This commit is contained in:
29
modules/global/nix.nix
Normal file
29
modules/global/nix.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ 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;
|
||||
# };
|
||||
}
|
Reference in New Issue
Block a user