103 lines
2.1 KiB
Nix
103 lines
2.1 KiB
Nix
|
{ config, pkgs, lib, ... }: {
|
||
|
|
||
|
imports = [
|
||
|
|
||
|
../../system/desktop
|
||
|
../../system/server/netdata.nix
|
||
|
|
||
|
./hardware-configuration.nix
|
||
|
./packages.nix
|
||
|
./syncthing.nix
|
||
|
./tinc.nix
|
||
|
|
||
|
#./wifi-access-point.nix
|
||
|
#./wireshark.nix
|
||
|
#./scanner.nix
|
||
|
#./qemu.nix
|
||
|
./wireguard.nix
|
||
|
|
||
|
];
|
||
|
|
||
|
|
||
|
services.nginx.enable = true;
|
||
|
|
||
|
networking.hostName = "cream";
|
||
|
|
||
|
system.custom.wifi.interfaces = [ "wlp166s0" ];
|
||
|
|
||
|
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";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
programs.custom.steam.enable = true;
|
||
|
programs.custom.video.enable = false;
|
||
|
|
||
|
services.printing.enable = true;
|
||
|
|
||
|
# fonts
|
||
|
# -----
|
||
|
programs.custom.urxvt.fontSize = 12;
|
||
|
programs.custom.xterm.fontSize = 12;
|
||
|
system.custom.fonts.dpi = 200;
|
||
|
|
||
|
virtualisation = {
|
||
|
docker.enable = true;
|
||
|
podman.enable = true;
|
||
|
|
||
|
virtualbox = {
|
||
|
host.enable = false;
|
||
|
guest.x11 = false;
|
||
|
guest.enable = false;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
configuration.desktop = {
|
||
|
width = 2256;
|
||
|
height = 1504;
|
||
|
};
|
||
|
|
||
|
services.xserver.desktopManager.gnome.enable = true;
|
||
|
|
||
|
custom.samba-share = {
|
||
|
enable = false;
|
||
|
folders = {
|
||
|
share = "/home/share";
|
||
|
video = "/home/video-material";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
# enable this to use sidequest
|
||
|
programs.adb.enable = true;
|
||
|
users.users.mainUser.extraGroups = [ "adbusers" "video" ];
|
||
|
|
||
|
# for congress and streaming
|
||
|
hardware.opengl = {
|
||
|
enable = true;
|
||
|
# extraPackages = [
|
||
|
# intel-media-driver # LIBVA_DRIVER_NAME=iHD
|
||
|
# vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
|
||
|
# vaapiVdpau
|
||
|
# libvdpau-va-gl
|
||
|
# ];
|
||
|
driSupport = true;
|
||
|
driSupport32Bit = true;
|
||
|
};
|
||
|
#nixpkgs.config.packageOverrides = pkgs: {
|
||
|
# vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
|
||
|
#};
|
||
|
|
||
|
system.stateVersion = "22.11"; # Did you read the comment?
|
||
|
|
||
|
}
|