mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-09 14:15:12 +02:00
feat: enable waydroid & lxd
This commit is contained in:
@@ -38,8 +38,13 @@
|
|||||||
qemu_full
|
qemu_full
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.kernelModules = ["kvm-amd" "kvm-intel"];
|
boot.kernelModules = ["kvm-amd" "kvm-intel" "vfio-pci"];
|
||||||
# Enable nested virsualization, required by security containers and nested vm.
|
# Enable nested virsualization, required by security containers and nested vm.
|
||||||
boot.extraModprobeConfig = "options kvm_intel nested=1"; # for intel cpu
|
boot.extraModprobeConfig = "options kvm_intel nested=1"; # for intel cpu
|
||||||
# boot.extraModprobeConfig = "options kvm_amd nested=1"; # for amd cpu
|
# boot.extraModprobeConfig = "options kvm_amd nested=1"; # for amd cpu
|
||||||
|
|
||||||
|
virtualisation = {
|
||||||
|
waydroid.enable = true;
|
||||||
|
lxd.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
"${username}" = {};
|
"${username}" = {};
|
||||||
docker = {};
|
docker = {};
|
||||||
wireshark = {};
|
wireshark = {};
|
||||||
|
|
||||||
# for android platform tools's udev rules
|
# for android platform tools's udev rules
|
||||||
adbusers ={};
|
adbusers ={};
|
||||||
dialout = {};
|
dialout = {};
|
||||||
@@ -22,7 +21,7 @@
|
|||||||
|
|
||||||
users.users."${username}" = {
|
users.users."${username}" = {
|
||||||
# generated by `mkpasswd -m scrypt`
|
# generated by `mkpasswd -m scrypt`
|
||||||
# we have to use initialHashedPassword here, if your'are using tmpfs for /
|
# we have to use initialHashedPassword here when using tmpfs for /
|
||||||
initialHashedPassword = "$7$CU..../....Sdl/JRH..9eIvZ6mE/52r.$xeR6lyvTcVVKt28Owcoc/vPOOECcYSiq1xjw/QCz2t0";
|
initialHashedPassword = "$7$CU..../....Sdl/JRH..9eIvZ6mE/52r.$xeR6lyvTcVVKt28Owcoc/vPOOECcYSiq1xjw/QCz2t0";
|
||||||
home = "/home/${username}";
|
home = "/home/${username}";
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user