This commit is contained in:
Kopatz
2024-06-03 18:25:20 +02:00
parent de415c09a9
commit 3e21d41ff0
43 changed files with 3004 additions and 31 deletions

View File

@@ -67,6 +67,7 @@
obs.enable = true;
openrgb.enable = true;
plasma.enable = true;
i3.enable = true;
#gnome.enable = true;
#cosmic.enable = true;
shared.enable = true;

View File

@@ -1,5 +1,6 @@
{ pkgs, config, ... }: {
{ pkgs, config, lib, ... }: {
imports = [ ./vm-common.nix ];
age.identityPaths = [ /home/kopatz/.ssh/id_rsa ];
mainUser.layout = "de";
mainUser.variant = "us";
@@ -15,25 +16,13 @@
ld.enable = true;
settings.enable = true;
};
services = {
#adam-site.enable = true;
kop-fileshare = {
enable = true;
basePath = "/stash";
};
graphical = {
i3.enable = true;
};
graphical = { lxqt.enable = true; };
};
networking.networkmanager.enable = true;
environment.systemPackages = with pkgs; [ firefox ];
environment.systemPackages = [ pkgs.firefox ];
services.nginx = {
enable = true;
virtualHosts = {
"localhost" = {
forceSSL = false;
enableACME = false;
locations."/stash".proxyPass = "http://127.0.0.1:7777";
};
};
};
}

22
systems/vm/vm-common.nix Normal file
View File

@@ -0,0 +1,22 @@
{ pkgs, lib, ... }: {
services.xserver = {
enable = true;
displayManager = {
autoLogin.enable = true;
autoLogin.user = "vm";
};
resolutions = lib.mkOverride 9 ([ ] ++ [{
x = 1680;
y = 1050;
}]);
};
virtualisation.vmVariant = {
virtualisation = {
memorySize = 8192;
cores = 8;
graphics = true; # Boot the vm in a window.
};
};
}