2026-07-25

This commit is contained in:
root 2026-07-25 09:16:53 -03:00
parent f733a5238c
commit c461f04c13
No known key found for this signature in database
4 changed files with 18 additions and 9 deletions

View file

@ -9,18 +9,18 @@
... ...
}: }:
{ {
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
sops.defaultSopsFile = ./secrets/home.yaml; sops.defaultSopsFile = ./secrets/home.yaml;
sops.age.keyFile = "/.persist/root/.config/sops/age/keys.txt"; sops.age.keyFile = "/.persist/root/.config/sops/age/keys.txt";
sops.secrets."root/ssh/desktop" = { sops.secrets."root/ssh/desktop" = {
path = "/root/.ssh/desktop"; path = "/root/.ssh/desktop";
mode = "0600"; mode = "0600";
}; };
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
boot.initrd.systemd.enable = true; boot.initrd.systemd.enable = true;
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;

View file

@ -56,6 +56,7 @@ in
keepEnv = true; keepEnv = true;
persist = true; persist = true;
setEnv = [ setEnv = [
"HOME=/root"
"EDITOR" "EDITOR"
"TERM" "TERM"
]; ];

View file

@ -26,6 +26,13 @@ in
homeManagerModule homeManagerModule
]; ];
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
nix.nixPath = [ "nixpkgs=${pkgs.path}" ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
sops.defaultSopsFile = ./secrets/sandbox.yaml; sops.defaultSopsFile = ./secrets/sandbox.yaml;
sops.age.keyFile = "/.persist/secrets/age-keys.txt"; sops.age.keyFile = "/.persist/secrets/age-keys.txt";
sops.secrets."root-password-hash" = { sops.secrets."root-password-hash" = {
@ -187,17 +194,17 @@ in
{ {
mountPoint = "/var"; mountPoint = "/var";
image = "var.img"; image = "var.img";
size = 256; size = 2 * 1024;
} }
{ {
mountPoint = "/nix/.rw-store"; mountPoint = "/nix/.rw-store";
image = "nix-store-overlay.img"; image = "nix-store-overlay.img";
size = 512; size = 2 * 1024;
} }
{ {
mountPoint = "/.persist"; mountPoint = "/.persist";
image = "persist.img"; image = "persist.img";
size = 1; size = 2 * 1024;
} }
]; ];
shares = [ shares = [

View file

@ -19,6 +19,7 @@
services.tailscale-netns = { services.tailscale-netns = {
enable = true; enable = true;
instances.work = { instances.work = {
extraDaemonFlags = [ "--accept-routes=false" ];
}; };
}; };