nixos-config/legacy/sterni/configuration.nix
2024-06-07 22:56:52 +02:00

76 lines
1.4 KiB
Nix

{ config, pkgs, lib, ... }: {
imports = [
../../components
../../modules
./hardware-configuration.nix
./packages.nix
./syncthing.nix
./tinc.nix
./wireguard.nix
];
components.gui.enable = true;
components.terminal.enable = true;
components.network.enable = true;
components.network.wifi.enable = true;
components.mainUser.enable = true;
users.users.mainUser.extraGroups = [ "adbusers" "video" ];
services.printing.enable = false;
services.nginx.enable = true;
networking.hostName = "sterni";
services.flatpak.enable = true;
security.wrappers = {
pmount = {
source = "${pkgs.pmount}/bin/pmount";
setuid = true;
owner = "root";
group = "root";
};
pumount = {
source = "${pkgs.pmount}/bin/pumount";
setuid = true;
owner = "root";
group = "root";
};
};
# still needed?
home-manager.users.mainUser.home.stateVersion = "22.11";
virtualisation = {
docker.enable = true;
podman.enable = true;
virtualbox = {
host.enable = false;
guest.enable = false;
};
};
services.xserver.desktopManager.gnome.enable = true;
samba-share = {
enable = false;
folders = {
share = "/home/share";
video = "/home/video-material";
};
};
# for congress and streaming
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
}