File tree 4 files changed +47
-14
lines changed
4 files changed +47
-14
lines changed Original file line number Diff line number Diff line change 18
18
../common/optional/pipewire.nix
19
19
../common/optional/quietboot.nix
20
20
../common/optional/wireless.nix
21
+ ../common/optional/lxd.nix
21
22
22
23
../common/optional/starcitizen-fixes.nix
23
24
] ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ {
2
+ virtualisation . lxd = {
3
+ enable = true ;
4
+ preseed = {
5
+ networks = [
6
+ {
7
+ name = "lxdbr0" ;
8
+ type = "bridge" ;
9
+ config = {
10
+ "ipv4.address" = "10.0.100.1/24" ;
11
+ "ipv4.nat" = "true" ;
12
+ } ;
13
+ }
14
+ ] ;
15
+ storage_pools = [
16
+ {
17
+ name = "default" ;
18
+ driver = "dir" ;
19
+ config . source = "/var/lib/lxd/storage-pools/default" ;
20
+ }
21
+ ] ;
22
+ profiles = [
23
+ {
24
+ name = "default" ;
25
+ config = {
26
+ "security.privileged" = "true" ;
27
+ } ;
28
+ devices = {
29
+ eth0 = {
30
+ name = "eth0" ;
31
+ network = "lxdbr0" ;
32
+ type = "nic" ;
33
+ } ;
34
+ root = {
35
+ path = "/" ;
36
+ pool = "default" ;
37
+ type = "disk" ;
38
+ } ;
39
+ } ;
40
+ }
41
+ ] ;
42
+ } ;
43
+ } ;
44
+ # https://github.com/NixOS/nixpkgs/issues/263359
45
+ networking . firewall . trustedInterfaces = [ "lxdbr0" ] ;
46
+ }
Original file line number Diff line number Diff line change 20
20
21
21
../common/optional/tlp.nix
22
22
../common/optional/wireless.nix
23
-
24
- ../common/optional/lxc.nix
25
23
] ;
26
24
27
25
networking = {
You can’t perform that action at this time.
0 commit comments