nix-config/modules/features/system/system-nix.nix
2026-04-15 18:26:05 -04:00

36 lines
706 B
Nix

{ ... }:
{
config.dendritic.features.system-nix = {
nixosModules = [
(
{ config, ... }:
let
user = config.dendritic.current.primaryUser;
in
{
nixpkgs.config.allowUnfree = true;
nix.settings = {
experimental-features = [
"nix-command"
"flakes"
];
auto-optimise-store = true;
download-buffer-size = 262144000;
trusted-users = [ user ];
warn-dirty = false;
accept-flake-config = true;
};
services.fstrim.enable = true;
time.timeZone = "America/Toronto";
}
)
];
};
}