Compare commits

...

2 commits

Author SHA1 Message Date
92b0c1fc43 minor updates 2025-05-26 16:31:34 +02:00
876d01a5d8 generalize nspawn network config 2025-05-26 16:30:45 +02:00
3 changed files with 22 additions and 15 deletions

12
flake.lock generated
View file

@ -299,11 +299,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1747565775, "lastModified": 1747978958,
"narHash": "sha256-B6jmKHUEX1jxxcdoYHl7RVaeohtAVup8o3nuVkzkloA=", "narHash": "sha256-pQQnbxWpY3IiZqgelXHIe/OAE/Yv4NSQq7fch7M6nXQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "97118a310eb8e13bc1b9b12d67267e55b7bee6c8", "rev": "7419250703fd5eb50e99bdfb07a86671939103ea",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -502,11 +502,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1747542820, "lastModified": 1747744144,
"narHash": "sha256-GaOZntlJ6gPPbbkTLjbd8BMWaDYafhuuYRNrxCGnPJw=", "narHash": "sha256-W7lqHp0qZiENCDwUZ5EX/lNhxjMdNapFnbErcbnP11Q=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "292fa7d4f6519c074f0a50394dbbe69859bb6043", "rev": "2795c506fe8fb7b03c36ccb51f75b6df0ab2553f",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -27,20 +27,26 @@
virt-viewer virt-viewer
podman-compose podman-compose
]; ];
systemd.nspawn = { systemd.nspawn =
n1 = { let
networkConfig = { networkConfig = {
Private = true; Private = true;
VirtualEthernet = true; VirtualEthernet = true;
Bridge = "br0"; Bridge = "br0";
}; };
}; in
n2 = { {
networkConfig = { n1 = {
Private = true; inherit networkConfig;
VirtualEthernet = true; };
Bridge = "br0"; n2 = {
inherit networkConfig;
};
evpn1 = {
inherit networkConfig;
};
evpn2 = {
inherit networkConfig;
}; };
}; };
};
} }

View file

@ -30,6 +30,7 @@ in
atuin atuin
nmap nmap
killall killall
magic-wormhole
]; ];
users.defaultUserShell = pkgs.zsh; users.defaultUserShell = pkgs.zsh;
programs.fzf = { programs.fzf = {