nix-config/modules/features/system/system-nix.nix
2026-04-21 00:46:43 -04:00

46 lines
1 KiB
Nix

{ ... }:
{
config.dendritic.features.system-nix = {
nixosModules = [
(
{ config, pkgs, ... }:
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";
nix.settings = {
substituters = [
"https://cache.gwg313.xyz/mycache?priority=5"
];
trusted-public-keys = [
"mycache:ovUjiiyQNUGjK8yZA4dPV1f8tIfCZrGIubdWvWpdvtc="
];
};
environment.systemPackages = [ pkgs.attic-client ];
}
)
];
};
}