Compare commits
No commits in common. "fd98ce38b06ba7479d4f03c341d5c7a2f34db65b" and "b3d97cdc5f0beb17a3388dcb213b15c016f03929" have entirely different histories.
fd98ce38b0
...
b3d97cdc5f
4 changed files with 18 additions and 78 deletions
|
@ -1,17 +0,0 @@
|
||||||
{ pkgs, config, ...}:
|
|
||||||
|
|
||||||
{
|
|
||||||
services.xserver.enable = true;
|
|
||||||
services.xserver.displayManager.autoLogin = {
|
|
||||||
enable = true;
|
|
||||||
user = "regent";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.xserver.displayManager.sessionCommands = ''
|
|
||||||
${pkgs.x11vnc}/bin/x11vnc -rfbauth $HOME/.vnc/passwd &
|
|
||||||
'';
|
|
||||||
|
|
||||||
services.xserver.desktopManager.xfce = {
|
|
||||||
enable = true;
|
|
||||||
}
|
|
||||||
};
|
|
|
@ -15,8 +15,6 @@
|
||||||
url = "github:0xc000022070/zen-browser-flake";
|
url = "github:0xc000022070/zen-browser-flake";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
#microvm.url = "github:astro/microvm.nix";
|
|
||||||
#microvm.inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
|
|
||||||
catppuccin.url = "github:catppuccin/nix";
|
catppuccin.url = "github:catppuccin/nix";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
@ -48,13 +46,6 @@
|
||||||
./hosts/focalor
|
./hosts/focalor
|
||||||
lix-module.nixosModules.default
|
lix-module.nixosModules.default
|
||||||
|
|
||||||
/*microvm.nixosModules.host
|
|
||||||
{
|
|
||||||
microvm.autostart = [
|
|
||||||
"windows"
|
|
||||||
];
|
|
||||||
}*/
|
|
||||||
|
|
||||||
vscode-server.nixosModules.default
|
vscode-server.nixosModules.default
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
# Host-specific hardware
|
# Host-specific hardware
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
./secrets.nix
|
./secrets.nix
|
||||||
./vfio.nix
|
|
||||||
|
|
||||||
# Common modules shared across hosts
|
# Common modules shared across hosts
|
||||||
../../common/system.nix
|
../../common/system.nix
|
||||||
|
@ -17,7 +16,6 @@
|
||||||
# Desktop modules
|
# Desktop modules
|
||||||
../../common/desktop/core.nix
|
../../common/desktop/core.nix
|
||||||
../../common/desktop/sway.nix
|
../../common/desktop/sway.nix
|
||||||
../../common/desktop/vnc.nix
|
|
||||||
|
|
||||||
# Nvidia
|
# Nvidia
|
||||||
../../common/nvidia.nix
|
../../common/nvidia.nix
|
||||||
|
@ -36,35 +34,7 @@
|
||||||
networking.hostName = "focalor";
|
networking.hostName = "focalor";
|
||||||
networking.hostId = "84bdc587";
|
networking.hostId = "84bdc587";
|
||||||
|
|
||||||
systemd.network = {
|
networking = {
|
||||||
enable = true;
|
|
||||||
netdevs."br0" = {
|
|
||||||
netdevConfig = {
|
|
||||||
Name = "br0";
|
|
||||||
Kind = "bridge";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
networks = {
|
|
||||||
"10-lan" = {
|
|
||||||
matchConfig.Name = ["enp5s0" "vm-*"];
|
|
||||||
networkConfig = {
|
|
||||||
Bridge = "br0";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"10-lan-bridge" = {
|
|
||||||
matchConfig.Name = "br0";
|
|
||||||
networkConfig = {
|
|
||||||
Address = ["10.0.0.34/24" "2601:5c2:8400:26c0:aaa1:59ff:fe94:5aba/64"];
|
|
||||||
Gateway = "10.0.0.1";
|
|
||||||
DNS = ["10.0.0.210" "1.1.1.1"];
|
|
||||||
IPv6AcceptRA = true;
|
|
||||||
};
|
|
||||||
linkConfig.RequiredForOnline = "routable";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
/*networking = {
|
|
||||||
firewall.enable = false;
|
firewall.enable = false;
|
||||||
firewall.trustedInterfaces = [
|
firewall.trustedInterfaces = [
|
||||||
"tailscale0"
|
"tailscale0"
|
||||||
|
@ -72,7 +42,7 @@
|
||||||
nameservers = [ "10.0.0.210" "1.1.1.1" ];
|
nameservers = [ "10.0.0.210" "1.1.1.1" ];
|
||||||
useDHCP = true;
|
useDHCP = true;
|
||||||
firewall.allowedTCPPorts = [22 80 443 2456 2457 9000 9001 9002];
|
firewall.allowedTCPPorts = [22 80 443 2456 2457 9000 9001 9002];
|
||||||
};*/
|
};
|
||||||
|
|
||||||
services.resolved = {
|
services.resolved = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -1,23 +1,19 @@
|
||||||
{ config, lib, system, pkgs, modulesPath, inputs, ... }:
|
programs.virt-manager.enable = true;
|
||||||
|
virtualisation.spiceUSBRedirection.enable = true;
|
||||||
{
|
virtualisation.libvirtd = {
|
||||||
programs.virt-manager.enable = true;
|
enable = true;
|
||||||
virtualisation.spiceUSBRedirection.enable = true;
|
qemu = {
|
||||||
virtualisation.libvirtd = {
|
package = pkgs.qemu_kvm;
|
||||||
enable = true;
|
runAsRoot = true;
|
||||||
qemu = {
|
swtpm.enable = true;
|
||||||
package = pkgs.qemu_kvm;
|
ovmf = {
|
||||||
runAsRoot = true;
|
enable = true;
|
||||||
swtpm.enable = true;
|
packages = [(pkgs.OVMF.override {
|
||||||
ovmf = {
|
secureBoot = true;
|
||||||
enable = true;
|
tpmSupport = true;
|
||||||
packages = [(pkgs.OVMF.override {
|
}).fd];
|
||||||
secureBoot = true;
|
|
||||||
tpmSupport = true;
|
|
||||||
}).fd];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
users.extraUsers.regent.extraGroups = [ "libvirtd" ];
|
users.extraUsers.regent.extraGroups = [ "libvirtd" ];
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue