dedicated-settings-file #3

Merged
servostar merged 7 commits from dedicated-settings-file into main 2023-12-15 19:56:43 +00:00
4 changed files with 41 additions and 13 deletions
Showing only changes of commit 4d39e01214 - Show all commits

View File

@ -1,10 +1,14 @@
{ pkgs, lib, config, ... }:
let
settings = import ./../settings.nix;
in
{ {
imports = [ imports = [
./language-server.nix ./language-server.nix
./dotnet.nix ]
./docker-rootless.nix ++ lib.optionals settings.virtualisation.docker-rootless.enable [ ./docker-rootless.nix ]
./platformio.nix ++ lib.optionals settings.virtualisation.qemu.enable [ ./qemu.nix ]
./qemu.nix ++ lib.optionals settings.dev.platformio [ ./platformio.nix ]
./latex.nix ++ lib.optionals settings.dev.latex [ ./latex.nix ]
]; ++ lib.optionals settings.dev.dotnet [ ./dotnet.nix ];
} }

View File

@ -1,9 +1,13 @@
{ pkgs, config, ... }: { { pkgs, config, ... }:
let
settings = import ./../settings.nix;
in
{
# enable rootless docker for more security # enable rootless docker for more security
virtualisation.docker.rootless = { virtualisation.docker.rootless = {
enable = true; enable = true;
setSocketVariable = true; setSocketVariable = true;
}; };
# regulary clean unused docker images # regulary clean unused docker images
virtualisation.docker.autoPrune.enable = true; virtualisation.docker.autoPrune.enable = settings.virtualisation.docker-rootless.autoPrune;
} }

View File

@ -1,10 +1,14 @@
{ pkgs, config, ... }: { { pkgs, config, ... }:
let
settings = import ./../settings.nix;
in
{
# KVM # KVM
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
# programs.virt-manager.enable = true; # after 23.11 programs.virt-manager.enable = settings.virtualisation.qemu.virt-manager; # after 23.11
# only before 23.11 # only before 23.11
environment.systemPackages = (with pkgs; [ # environment.systemPackages = (with pkgs; [
virt-manager # virt-manager
]); # ]);
} }

View File

@ -14,6 +14,22 @@ with import <nixpkgs> {}; {
}; };
}; };
virtualisation = {
docker-rootless = {
enable = true;
autoPrune = true;
};
qemu = {
enable = true;
virt-manager = true;
};
};
dev = {
platformio = true;
latex = true;
dotnet = false;
};
dvd = true; # enable DVD decryption + ripping via Handbrake dvd = true; # enable DVD decryption + ripping via Handbrake
bluray = true; # enable Bluray decryption (requires additional setup) bluray = true; # enable Bluray decryption (requires additional setup)
printing = { printing = {