ROCKPro64-Server/system/settings/nix/default.nix

24 lines
471 B
Nix
Raw Normal View History

2025-02-28 12:21:09 -05:00
{ config, lib, pkgs, unstable, ... }:
{
imports = [ ./gc ];
options.nixpkgs.allowUnfreePackages = lib.mkOption {
type = with lib.types; listOf str;
};
config = {
nix.settings = {
experimental-features = [
"nix-command"
"flakes"
];
auto-optimise-store = true;
};
_module.args.pkgsUnstable = import unstable {
inherit (pkgs.stdenv.hostPlatform) system;
inherit (config.nixpkgs) config;
};
};
}