aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-08-05 08:19:33 +0200
committerKarel Kočí <cynerd@email.cz>2022-08-05 08:19:33 +0200
commit970c8596e86b8bb3ebff5e76e152fa5acdd65f98 (patch)
treeb3da4eb18452d94d2ec5da0abb6cb312249b3fc0 /nixos
parent7c3d7e4989a83d188a013f9b1a8492f607958b6b (diff)
downloadnixos-personal-970c8596e86b8bb3ebff5e76e152fa5acdd65f98.tar.gz
nixos-personal-970c8596e86b8bb3ebff5e76e152fa5acdd65f98.tar.bz2
nixos-personal-970c8596e86b8bb3ebff5e76e152fa5acdd65f98.zip
Small rework of packages and and devices build
Diffstat (limited to 'nixos')
-rw-r--r--nixos/machine/errol.nix29
-rw-r--r--nixos/modules/generic.nix10
2 files changed, 14 insertions, 25 deletions
diff --git a/nixos/machine/errol.nix b/nixos/machine/errol.nix
index 5dd87a7..06e2446 100644
--- a/nixos/machine/errol.nix
+++ b/nixos/machine/errol.nix
@@ -20,8 +20,9 @@ with lib;
hardware.cpu.amd.updateMicrocode = true;
cynerd.autounlock = {
- "encroot" = "/dev/disk/by-uuid/c07e929a-6eac-4f99-accf-f7cb3431290c";
- "enchdd" = "/dev/disk/by-uuid/7fee3cda-efa0-47cd-8832-fdead9a7e6db";
+ "encroot" = "/dev/disk/by-uuid/8095988e-239b-4417-9df6-94a40e4133ed";
+ "enchdd1" = "/dev/disk/by-uuid/87f16080-5ff6-43dd-89f3-307455a46fbe";
+ "enchdd2" = "/dev/disk/by-uuid/be4a33fa-8bc6-431d-a3ac-787668f223ed";
};
fileSystems = {
"/" = {
@@ -40,7 +41,7 @@ with lib;
};
"/home2" = {
- device = "/dev/mapper/enchdd";
+ device = "/dev/mapper/enchdd1";
fsType = "btrfs";
options = ["compress=lzo" "subvol=@home"];
};
@@ -59,28 +60,6 @@ with lib;
configDir = "/home/cynerd/.config/syncthing";
};
- #environment.systemPackages = [ pkgs.laminar ];
- #users.groups.build.gid = 220;
- #users.users.build = {
- # group = "build";
- # uid = 220;
- # subUidRanges = [{ count = 65534; startUid = 20000; }];
- # subGidRanges = [{ count = 65534; startGid = 20000; }];
- # createHome = true;
- # home = "/var/build";
- #};
- #systemd.services.laminar = {
- # description = "Laminar build server";
- # after = [ "network.target" ];
- # wantedBy = [ "multi-user.target" ];
- # serviceConfig = {
- # User = "build";
- # ExecStart = "${pkgs.laminar}/bin/laminar";
- # EnvironmentFile = "/etc/laminar.conf";
- # Restart = "always";
- # };
- #};
-
};
}
diff --git a/nixos/modules/generic.nix b/nixos/modules/generic.nix
index 08b3bfa..2b3c3fd 100644
--- a/nixos/modules/generic.nix
+++ b/nixos/modules/generic.nix
@@ -11,6 +11,16 @@ with lib;
extraOptions = "experimental-features = nix-command flakes";
settings = {
auto-optimise-store = true;
+ substituters = [
+ "https://cache.nixos.org"
+ "https://thefloweringash-armv7.cachix.org"
+ "https://arm.cachix.org"
+ ];
+ trusted-public-keys = [
+ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
+ "thefloweringash-armv7.cachix.org-1:v+5yzBD2odFKeXbmC+OPWVqx4WVoIVO6UXgnSAWFtso="
+ "arm.cachix.org-1:K3XjAeWPgWkFtSS9ge5LJSLw3xgnNqyOaG7MDecmTQ8="
+ ];
};
registry = {
personal.to = {