CLEAN: nix develop
This commit is contained in:
parent
daeb15f821
commit
c495445e91
22 changed files with 439 additions and 423 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ...}: {
|
||||
{pkgs, ...}: {
|
||||
fonts.packages = with pkgs; [
|
||||
dejavu_fonts
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
_: {
|
||||
networking = {
|
||||
nameservers = ["1.1.1.1" "8.8.8.8"];
|
||||
# dhcpcd.extraConfig = "nohook resolv.conf";
|
||||
# dhcpcd.extraConfig = "nohook resolv.conf";
|
||||
firewall.enable = true;
|
||||
interfaces.enp11s0.wakeOnLan.enable = true ;
|
||||
interfaces.enp11s0.wakeOnLan.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
};
|
||||
|
||||
nixpkgs.config = {
|
||||
# allowUnfree = true;
|
||||
# allowUnsupportedSystem = true;
|
||||
# allowUnfree = true;
|
||||
# allowUnsupportedSystem = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
boot.kernelModules = lib.mkAfter ["tun"];
|
||||
|
|
@ -22,21 +22,20 @@
|
|||
|
||||
virtualisation.libvirtd = {
|
||||
enable = true;
|
||||
qemu =
|
||||
qemu =
|
||||
if lib.versionOlder config.system.nixos.release "25.11"
|
||||
then {
|
||||
ovmf.enable = true;
|
||||
ovmf.packages = [pkgs.OVMFFull.fd];
|
||||
runAsRoot = false;
|
||||
swtpm.enable = true;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
runAsRoot = false;
|
||||
swtpm.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
users.users.lomig.extraGroups = ["libvirtd" "kvm" "input"];
|
||||
|
||||
environment.etc."qemu/bridge.conf".text = ''
|
||||
|
|
@ -47,7 +46,7 @@
|
|||
source = "${pkgs.qemu}/libexec/qemu-bridge-helper";
|
||||
owner = "root";
|
||||
group = "kvm";
|
||||
setuid = true ;
|
||||
setuid = true;
|
||||
permissions = "u+rwx,g+rx,o+rx";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue