Nix configurations for my personal machines (Linux & macOS)

chore: adjust nixpkgs config

ovyerus.com 110ce862 e904a36f

verified
Changed files
+16 -8
files
modules
+3
files/nixpkgs-config.nix
···
+
{
+
allowUnfree = true;
+
}
+13 -8
modules/nix.nix
···
inputs,
...
}: let
-
shared.nix.settings = {
-
auto-optimise-store = true;
-
experimental-features = ["nix-command" "flakes"];
-
trusted-users = ["root" "@wheel"];
+
shared = {
+
nixpkgs.config = import ../files/nixpkgs-config.nix;
+
+
nix.settings = {
+
auto-optimise-store = true;
+
experimental-features = ["nix-command" "flakes"];
+
trusted-users = ["root" "@wheel" "ovy"];
+
};
};
in
delib.module {
name = "nix";
# TODO: double check home-manager options
-
home.always = shared;
+
home.always =
+
shared
+
// {
+
xdg.configFile."nixpkgs/config.nix".source = ../files/nixpkgs-config.nix;
+
};
nixos.always =
shared
// {
···
};
};
-
nixpkgs.config.allowUnfree = true;
system.tools.nixos-option.enable = false;
};
darwin.always = {
-
nixpkgs.config.allowUnfree = true;
-
nix = {
buildMachines = [
{