os/shared/core/nix.nix

23 lines
412 B
Nix
Raw Permalink Normal View History

2023-05-21 21:15:04 +02:00
{ pkgs, lib, config, nixpkgs, pwnix, ... }:
let cfg = config.custom.nix;
in with lib; {
options.custom.nix = {};
config = {
nixpkgs.config.allowUnfree = true;
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
nix.registry.nixpkgs.flake = nixpkgs;
nix.registry.pwnix.flake = pwnix;
2023-05-23 10:47:29 +02:00
nix.settings.trusted-users = [
"@wheel"
"root"
];
2023-05-21 21:15:04 +02:00
};
}