Compare commits

..

3 Commits

Author SHA1 Message Date
f01c720fdc Enable direnv. 2024-09-19 09:41:52 +01:00
4ee7a91610 WIP: qemu setup for hassos 2024-09-19 09:33:48 +01:00
67be953b44 Enable dircolors. 2024-09-16 15:00:49 +01:00
3 changed files with 34 additions and 3 deletions

View File

@@ -3,6 +3,7 @@
packages = packages =
with pkgs; with pkgs;
[ [
direnv
fzf fzf
git git
home-manager home-manager

View File

@@ -1,5 +1,9 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
dircolors.enable = true;
direnv.enable = true;
fish = { fish = {
enable = true; enable = true;

View File

@@ -20,13 +20,39 @@
networking.hostName = "chilly"; networking.hostName = "chilly";
services.tailscaleAutoconnect.authkey = "tskey-auth-kRXS9oPyPm11CNTRL-BE6YnbP9J6ZZuV9dHkX17ZMnm1JGdu93"; services.tailscaleAutoconnect.authkey = "tskey-auth-kRXS9oPyPm11CNTRL-BE6YnbP9J6ZZuV9dHkX17ZMnm1JGdu93";
services.consul.interface.advertise = lib.mkForce "enp1s0"; services.consul.interface.advertise = lib.mkForce "br0";
virtualisation.libvirtd = {
enable = true;
allowedBridges = [ "br0" ];
};
virtualisation.libvirtd.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
virt-manager unstable.qemu
usbutils usbutils
virt-manager
(pkgs.writeShellScriptBin "qemu-system-x86_64-uefi" ''
qemu-system-x86_64 \
-bios ${pkgs.OVMF.fd}/FV/OVMF.fd \
"$@"
'')
]; ];
users.users.ppetru.extraGroups = [ "libvirtd" ]; users.users.ppetru.extraGroups = [ "libvirtd" ];
networking = {
# TODO: try using DHCP for br0. will probably need a hardcoded MAC
defaultGateway = "192.168.1.1";
nameservers = [ "192.168.1.1" ];
bridges.br0.interfaces = [ "enp1s0" ];
interfaces.br0 = {
useDHCP = false;
ipv4.addresses = [
{
"address" = "192.168.1.5";
"prefixLength" = 24;
}
];
};
};
} }