nixos-config/profiles/nix/default.nix

50 lines
1.5 KiB
Nix
Raw Normal View History

2022-02-11 19:40:34 +03:00
{ config, lib, pkgs, inputs, system, ... }:
with config.deviceSpecific; {
2021-02-07 02:38:11 +03:00
nix = rec {
2021-06-16 05:30:04 +03:00
nixPath = lib.mkForce [ "self=/etc/self/compat" "nixpkgs=/etc/nixpkgs" ];
2021-02-07 02:38:11 +03:00
registry.self.flake = inputs.self;
2022-03-10 19:11:45 +03:00
registry.nixpkgs.flake = inputs.nixpkgs;
2021-02-07 02:38:11 +03:00
optimise.automatic = true;
extraOptions = ''
experimental-features = nix-command flakes
2022-08-31 11:37:26 +03:00
builders-use-substitutes = true
2021-02-07 02:38:11 +03:00
'';
2022-03-10 19:11:45 +03:00
settings = {
auto-optimise-store = false;
require-sigs = true;
substituters = [
"https://cache.nixos.org"
"https://nix-community.cachix.org"
"https://nixpkgs-wayland.cachix.org"
2022-08-05 21:10:22 +03:00
"https://hyprland.cachix.org"
2022-03-10 19:11:45 +03:00
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="
2022-08-05 21:10:22 +03:00
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
2022-03-10 19:11:45 +03:00
];
trusted-users = [ "root" "alukard" "@wheel" ];
};
2022-08-18 17:42:27 +03:00
buildMachines = [
{
hostName = "nix-builder";
maxJobs = 8;
sshUser = "alukard";
sshKey = config.secrets.ssh-builder.decrypted;
systems = [ "x86_64-linux" ];
2022-08-31 11:37:26 +03:00
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
2022-08-18 17:42:27 +03:00
}
];
distributedBuilds = lib.mkIf (config.device != "AMD-Workstation") true;
2021-02-07 02:38:11 +03:00
};
2022-03-10 19:11:45 +03:00
environment.etc.nixpkgs.source = inputs.nixpkgs;
2021-06-16 05:30:04 +03:00
environment.etc.self.source = inputs.self;
2021-02-07 02:38:11 +03:00
}