mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 06:08:11 +09:00
nix builder
This commit is contained in:
@@ -1,4 +1,27 @@
|
|||||||
{
|
{
|
||||||
imports = [ ./hardware-configuration.nix ];
|
imports = [ ./hardware-configuration.nix ];
|
||||||
|
|
||||||
|
fileSystems."/nix/store" = {
|
||||||
|
device = "/dev/disk/by-label/nix-store";
|
||||||
|
fsType = "ext4";
|
||||||
|
|
||||||
|
options = [
|
||||||
|
"noatime"
|
||||||
|
];
|
||||||
|
|
||||||
|
neededForBoot = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/var/lib/nix-build" = {
|
||||||
|
device = "/dev/disk/by-label/nix-build";
|
||||||
|
fsType = "ext4";
|
||||||
|
|
||||||
|
options = [
|
||||||
|
"noatime"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
nix.settings.build-dir = "/var/lib/nix-build";
|
||||||
|
|
||||||
|
services.fstrim.enable = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,8 @@
|
|||||||
"flakes"
|
"flakes"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
connect-timeout = 10;
|
||||||
|
|
||||||
extra-substituters = [
|
extra-substituters = [
|
||||||
"https://cache.nixos.org"
|
"https://cache.nixos.org"
|
||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
|
|||||||
Reference in New Issue
Block a user