2026-07-25
This commit is contained in:
parent
f733a5238c
commit
c461f04c13
4 changed files with 18 additions and 9 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@ in
|
||||||
keepEnv = true;
|
keepEnv = true;
|
||||||
persist = true;
|
persist = true;
|
||||||
setEnv = [
|
setEnv = [
|
||||||
|
"HOME=/root"
|
||||||
"EDITOR"
|
"EDITOR"
|
||||||
"TERM"
|
"TERM"
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -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 = [
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@
|
||||||
services.tailscale-netns = {
|
services.tailscale-netns = {
|
||||||
enable = true;
|
enable = true;
|
||||||
instances.work = {
|
instances.work = {
|
||||||
|
extraDaemonFlags = [ "--accept-routes=false" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue