os/shared/core/nix.nix

26 lines
564 B
Nix
Raw Normal View History

{ pkgs, lib, config, nixpkgs, pwnix, helix, ... }:
2023-05-21 21:15:04 +02:00
let cfg = config.custom.nix;
in with lib; {
options.custom.nix = {};
2023-06-17 23:46:16 +02:00
# TODO: Add strawberry as a build machine here
2023-05-21 21:15:04 +02:00
config = {
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [ (import ../overlay.nix helix) ];
2023-05-21 21:15:04 +02:00
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
nix.registry.nixpkgs.flake = nixpkgs;
nix.registry.helix.flake = helix;
2023-05-21 21:15:04 +02:00
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
};
}