nix-managed-macbook/nix.nix

81 lines
1.9 KiB
Nix
Raw Normal View History

2024-10-22 18:53:09 +05:30
{
config,
pkgs,
inputs,
...
}:
2024-09-07 18:27:38 +05:30
let
nixSettings = {
connect-timeout = 60;
download-attempts = 10;
cores = 4;
2024-10-22 18:53:09 +05:30
experimental-features = [
"nix-command"
"flakes"
];
2024-09-07 18:27:38 +05:30
fallback = true;
keep-outputs = true;
keep-going = true;
log-lines = 25;
max-jobs = 3;
2024-09-07 18:27:38 +05:30
};
2024-10-22 18:53:09 +05:30
in
{
2023-11-25 16:13:20 +05:30
services.nix-daemon.enable = true;
nix = {
package = pkgs.nixVersions.stable;
2023-11-25 16:13:20 +05:30
extraOptions = ''
keep-outputs = true
keep-derivations = true
'';
flake.lock: Update Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/8f6ca7855d409aeebe2a582c6fd6b6a8d0bf5661' (2024-11-03) → 'github:nix-community/home-manager/60bb110917844d354f3c18e05450606a435d2d10' (2024-11-10) • Updated input 'lix-module': 'https://git.lix.systems/api/v1/repos/lix-project/nixos-module/archive/622a2253a071a1fb97a4d3c8103a91114acc1140.tar.gz?narHash=sha256-zNW/rqNJwhq2lYmQf19wJerRuNimjhxHKmzrWWFJYts%3D&rev=622a2253a071a1fb97a4d3c8103a91114acc1140' (2024-08-13) → 'https://git.lix.systems/api/v1/repos/lix-project/nixos-module/archive/6478f624b2a00367e0e3d750a2c7a9f3afb72712.tar.gz?narHash=sha256-slp0zWHKvbCzhiBwwe6VX6jODEY%2BPKhHyiAoHgM5Bdc%3D&rev=6478f624b2a00367e0e3d750a2c7a9f3afb72712' (2024-10-19) • Updated input 'lix-module/lix': 'https://git.lix.systems/api/v1/repos/lix-project/lix/archive/bcaeb6388b8916ac6d1736e3aa2b13313e6a6bd2.tar.gz?narHash=sha256-Rosl9iA9MybF5Bud4BTAQ9adbY81aGmPfV8dDBGl34s%3D&rev=bcaeb6388b8916ac6d1736e3aa2b13313e6a6bd2' (2024-08-12) → 'https://git.lix.systems/api/v1/repos/lix-project/lix/archive/ad9d06f7838a25beec425ff406fe68721fef73be.tar.gz?narHash=sha256-hiGtfzxFkDc9TSYsb96Whg0vnqBVV7CUxyscZNhed0U%3D&rev=ad9d06f7838a25beec425ff406fe68721fef73be' (2024-10-19) • Updated input 'nix-darwin': 'github:LnL7/nix-darwin/4652874d014b82cb746173ffc64f6a70044daa7e' (2024-11-03) → 'github:LnL7/nix-darwin/5c74ab862c8070cbf6400128a1b56abb213656da' (2024-11-09) • Updated input 'nix-vscode-extensions': 'github:nix-community/nix-vscode-extensions/16ca007ec37c29a8b97e4899f33c013defbdb2f9' (2024-11-04) → 'github:nix-community/nix-vscode-extensions/85caf0185a4bf8fc2161c33a6d6d328052d7da44' (2024-11-10) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/2d2a9ddbe3f2c00747398f3dc9b05f7f2ebb0f53' (2024-10-30) → 'github:nixos/nixpkgs/85f7e662eda4fa3a995556527c87b2524b691933' (2024-11-07) • Updated input 'nixpkgs-stable': 'github:nixos/nixpkgs/9706f4dd0e516de529fbd15bb8337e4a10d53307' (2024-10-31) → 'github:nixos/nixpkgs/c128e44a249d6180740d0a979b6480d5b795c013' (2024-11-06)
2024-11-10 19:49:22 +05:30
optimise.automatic = true;
2024-09-07 18:27:38 +05:30
settings = nixSettings // {
2023-11-25 16:13:20 +05:30
max-free = 1000000000;
min-free = 128000000;
warn-dirty = false;
2024-01-31 19:23:23 +05:30
trusted-users = [ "@admin" ];
2024-10-22 18:53:09 +05:30
trusted-substituters = [
"https://cache.nixos.org"
"https://nix-community.cachix.org"
2024-11-10 19:45:40 +05:30
"https://cache.lix.systems"
2024-10-22 18:53:09 +05:30
];
2024-09-14 09:23:05 +05:30
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
2024-11-10 19:45:40 +05:30
"cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
2024-09-14 09:23:05 +05:30
];
2023-11-25 16:13:20 +05:30
};
2024-09-07 18:27:38 +05:30
distributedBuilds = true;
linux-builder = {
enable = true;
maxJobs = 3;
2024-10-22 18:53:09 +05:30
config = (
{ pkgs, ... }:
{
users.extraGroups.docker.members = builtins.map (i: "nixbld" + builtins.toString i) (
pkgs.lib.genList (i: i + 1) 32
);
virtualisation = {
docker.enable = true;
darwin-builder = {
diskSize = 50 * 1024;
memorySize = 8 * 1024;
};
cores = 8;
};
flake.lock: Update Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/8f6ca7855d409aeebe2a582c6fd6b6a8d0bf5661' (2024-11-03) → 'github:nix-community/home-manager/60bb110917844d354f3c18e05450606a435d2d10' (2024-11-10) • Updated input 'lix-module': 'https://git.lix.systems/api/v1/repos/lix-project/nixos-module/archive/622a2253a071a1fb97a4d3c8103a91114acc1140.tar.gz?narHash=sha256-zNW/rqNJwhq2lYmQf19wJerRuNimjhxHKmzrWWFJYts%3D&rev=622a2253a071a1fb97a4d3c8103a91114acc1140' (2024-08-13) → 'https://git.lix.systems/api/v1/repos/lix-project/nixos-module/archive/6478f624b2a00367e0e3d750a2c7a9f3afb72712.tar.gz?narHash=sha256-slp0zWHKvbCzhiBwwe6VX6jODEY%2BPKhHyiAoHgM5Bdc%3D&rev=6478f624b2a00367e0e3d750a2c7a9f3afb72712' (2024-10-19) • Updated input 'lix-module/lix': 'https://git.lix.systems/api/v1/repos/lix-project/lix/archive/bcaeb6388b8916ac6d1736e3aa2b13313e6a6bd2.tar.gz?narHash=sha256-Rosl9iA9MybF5Bud4BTAQ9adbY81aGmPfV8dDBGl34s%3D&rev=bcaeb6388b8916ac6d1736e3aa2b13313e6a6bd2' (2024-08-12) → 'https://git.lix.systems/api/v1/repos/lix-project/lix/archive/ad9d06f7838a25beec425ff406fe68721fef73be.tar.gz?narHash=sha256-hiGtfzxFkDc9TSYsb96Whg0vnqBVV7CUxyscZNhed0U%3D&rev=ad9d06f7838a25beec425ff406fe68721fef73be' (2024-10-19) • Updated input 'nix-darwin': 'github:LnL7/nix-darwin/4652874d014b82cb746173ffc64f6a70044daa7e' (2024-11-03) → 'github:LnL7/nix-darwin/5c74ab862c8070cbf6400128a1b56abb213656da' (2024-11-09) • Updated input 'nix-vscode-extensions': 'github:nix-community/nix-vscode-extensions/16ca007ec37c29a8b97e4899f33c013defbdb2f9' (2024-11-04) → 'github:nix-community/nix-vscode-extensions/85caf0185a4bf8fc2161c33a6d6d328052d7da44' (2024-11-10) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/2d2a9ddbe3f2c00747398f3dc9b05f7f2ebb0f53' (2024-10-30) → 'github:nixos/nixpkgs/85f7e662eda4fa3a995556527c87b2524b691933' (2024-11-07) • Updated input 'nixpkgs-stable': 'github:nixos/nixpkgs/9706f4dd0e516de529fbd15bb8337e4a10d53307' (2024-10-31) → 'github:nixos/nixpkgs/c128e44a249d6180740d0a979b6480d5b795c013' (2024-11-06)
2024-11-10 19:49:22 +05:30
nix.package = pkgs.lix;
2024-10-22 18:53:09 +05:30
nix.settings = nixSettings // {
sandbox = false;
2024-09-07 18:27:38 +05:30
};
flake.lock: Update Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/8f6ca7855d409aeebe2a582c6fd6b6a8d0bf5661' (2024-11-03) → 'github:nix-community/home-manager/60bb110917844d354f3c18e05450606a435d2d10' (2024-11-10) • Updated input 'lix-module': 'https://git.lix.systems/api/v1/repos/lix-project/nixos-module/archive/622a2253a071a1fb97a4d3c8103a91114acc1140.tar.gz?narHash=sha256-zNW/rqNJwhq2lYmQf19wJerRuNimjhxHKmzrWWFJYts%3D&rev=622a2253a071a1fb97a4d3c8103a91114acc1140' (2024-08-13) → 'https://git.lix.systems/api/v1/repos/lix-project/nixos-module/archive/6478f624b2a00367e0e3d750a2c7a9f3afb72712.tar.gz?narHash=sha256-slp0zWHKvbCzhiBwwe6VX6jODEY%2BPKhHyiAoHgM5Bdc%3D&rev=6478f624b2a00367e0e3d750a2c7a9f3afb72712' (2024-10-19) • Updated input 'lix-module/lix': 'https://git.lix.systems/api/v1/repos/lix-project/lix/archive/bcaeb6388b8916ac6d1736e3aa2b13313e6a6bd2.tar.gz?narHash=sha256-Rosl9iA9MybF5Bud4BTAQ9adbY81aGmPfV8dDBGl34s%3D&rev=bcaeb6388b8916ac6d1736e3aa2b13313e6a6bd2' (2024-08-12) → 'https://git.lix.systems/api/v1/repos/lix-project/lix/archive/ad9d06f7838a25beec425ff406fe68721fef73be.tar.gz?narHash=sha256-hiGtfzxFkDc9TSYsb96Whg0vnqBVV7CUxyscZNhed0U%3D&rev=ad9d06f7838a25beec425ff406fe68721fef73be' (2024-10-19) • Updated input 'nix-darwin': 'github:LnL7/nix-darwin/4652874d014b82cb746173ffc64f6a70044daa7e' (2024-11-03) → 'github:LnL7/nix-darwin/5c74ab862c8070cbf6400128a1b56abb213656da' (2024-11-09) • Updated input 'nix-vscode-extensions': 'github:nix-community/nix-vscode-extensions/16ca007ec37c29a8b97e4899f33c013defbdb2f9' (2024-11-04) → 'github:nix-community/nix-vscode-extensions/85caf0185a4bf8fc2161c33a6d6d328052d7da44' (2024-11-10) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/2d2a9ddbe3f2c00747398f3dc9b05f7f2ebb0f53' (2024-10-30) → 'github:nixos/nixpkgs/85f7e662eda4fa3a995556527c87b2524b691933' (2024-11-07) • Updated input 'nixpkgs-stable': 'github:nixos/nixpkgs/9706f4dd0e516de529fbd15bb8337e4a10d53307' (2024-10-31) → 'github:nixos/nixpkgs/c128e44a249d6180740d0a979b6480d5b795c013' (2024-11-06)
2024-11-10 19:49:22 +05:30
environment.systemPackages = [ pkgs.htop ];
2024-10-22 18:53:09 +05:30
}
);
2024-09-07 18:27:38 +05:30
};
2023-11-25 16:13:20 +05:30
};
nixpkgs = {
hostPlatform = "x86_64-darwin";
config.allowUnfree = true;
2022-09-27 13:08:52 +05:30
};
}