mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-12 16:39:44 +00:00
add incus
This commit is contained in:
parent
a5e0a7c64d
commit
763dfc0826
1 changed files with 17 additions and 2 deletions
|
@ -38,13 +38,18 @@
|
||||||
boot.supportedFilesystems = [ "ntfs" ];
|
boot.supportedFilesystems = [ "ntfs" ];
|
||||||
|
|
||||||
# Kernel modules
|
# Kernel modules
|
||||||
boot.kernelModules = [ "kvm-intel" "snd-hda-intel" "i8042" ];
|
boot.kernelModules = [ "kvm-intel" "snd-hda-intel" "i8042" "nf_nat_ftp" ];
|
||||||
boot.extraModprobeConfig = ''
|
boot.extraModprobeConfig = ''
|
||||||
options snd-hda-intel model=alc255-acer,dell-headset-multi
|
options snd-hda-intel model=alc255-acer,dell-headset-multi
|
||||||
options i8042 nopnp=1
|
options i8042 nopnp=1
|
||||||
'';
|
'';
|
||||||
boot.kernelParams = [ "allow-discards" ];
|
boot.kernelParams = [ "allow-discards" ];
|
||||||
|
|
||||||
|
boot.kernel.sysctl = {
|
||||||
|
"net.ipv4.conf.all.forwarding" = true;
|
||||||
|
"net.ipv4.conf.default.forwarding" = true;
|
||||||
|
};
|
||||||
|
|
||||||
# Setup keyfile
|
# Setup keyfile
|
||||||
# boot.initrd.secrets = {
|
# boot.initrd.secrets = {
|
||||||
# "/crypto_keyfile.bin" = null;
|
# "/crypto_keyfile.bin" = null;
|
||||||
|
@ -114,6 +119,13 @@ networking = {
|
||||||
185.199.108.133 raw.githubusercontent.com
|
185.199.108.133 raw.githubusercontent.com
|
||||||
'';
|
'';
|
||||||
nameservers = [ "1.1.1.1" "9.9.9.9" ];
|
nameservers = [ "1.1.1.1" "9.9.9.9" ];
|
||||||
|
bridges = { incusbr0.interfaces = []; };
|
||||||
|
firewall.extraCommands = ''
|
||||||
|
iptables -A INPUT incusbr0 -j ACCEPT
|
||||||
|
iptables -A FORWARD -o incusbr0 -j ACCEPT
|
||||||
|
iptables -A FORWARD -i incusbr0 -j ACCEPT
|
||||||
|
iptables -A OUTPUT -o incusbr0 -j ACCEPT
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable dde
|
# Enable dde
|
||||||
|
@ -165,7 +177,7 @@ networking = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "user";
|
description = "user";
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
extraGroups = [ "networkmanager" "wheel" "libvirtd" "qemu" "qemu-kvm" "vo" "docker" ];
|
extraGroups = [ "networkmanager" "wheel" "libvirtd" "qemu" "qemu-kvm" "vo" "docker" "lxc" "incus-admin" ];
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
kate
|
kate
|
||||||
vim
|
vim
|
||||||
|
@ -195,6 +207,9 @@ networking = {
|
||||||
virtualisation.libvirtd.enable = true;
|
virtualisation.libvirtd.enable = true;
|
||||||
virtualisation.waydroid.enable = true;
|
virtualisation.waydroid.enable = true;
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
|
virtualisation.lxc.enable = true;
|
||||||
|
virtualisation.lxc.lxcfs.enable = true;
|
||||||
|
virtualisation.incus.enable = true;
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
|
|
Loading…
Reference in a new issue