blob: 3d76e36a6867c4316de150f3656c08bb9f7e89b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
config,
lib,
pkgs,
inputs,
...
}: {
imports = [
inputs.nix-index-database.nixosModules.default
];
nix = {
gc.automatic = false; # use nh cleaner instead
# Make builds run with low priority so my system stays responsive
daemonCPUSchedPolicy = "idle";
daemonIOSchedClass = "idle";
settings = {
flake-registry = "${inputs.flake-registry}/flake-registry.json";
extra-experimental-features = ["nix-command" "flakes" "pipe-operators"];
auto-optimise-store = true;
use-xdg-base-directories = true;
};
# Disable channels
channel.enable = false;
};
nixpkgs.config.allowUnfree = true;
programs = {
nh = lib.mkIf config.collinux.terminal.programs.nh.enable {
enable = true;
flake = "/home/${config.collinux.user.name}/nixos";
clean.enable = true;
};
nix-index-database.comma.enable = true;
};
environment.systemPackages = [pkgs.cached-nix-shell];
nixpkgs.hostPlatform = "x86_64-linux";
system.stateVersion = "25.11";
}
|