2019-12-20 05:54:26 +01:00
|
|
|
{ config, pkgs, lib, ... }: {
|
2019-10-24 02:20:38 +02:00
|
|
|
|
|
|
|
imports = [
|
|
|
|
|
2023-02-17 11:45:09 +01:00
|
|
|
../../components
|
2021-09-25 11:07:09 +02:00
|
|
|
../../system/desktop
|
2019-10-24 02:20:38 +02:00
|
|
|
|
2021-09-25 11:07:09 +02:00
|
|
|
./hardware-configuration.nix
|
2019-10-24 02:20:38 +02:00
|
|
|
./packages.nix
|
|
|
|
./syncthing.nix
|
|
|
|
./tinc.nix
|
2023-08-14 03:48:28 +02:00
|
|
|
# ./trilium.nix
|
2019-10-24 02:20:38 +02:00
|
|
|
|
|
|
|
#./wifi-access-point.nix
|
2020-01-04 05:57:37 +01:00
|
|
|
#./wireshark.nix
|
2023-08-14 03:08:56 +02:00
|
|
|
#./qemu.nix
|
2023-01-19 12:31:04 +01:00
|
|
|
./wireguard.nix
|
2019-10-24 02:20:38 +02:00
|
|
|
|
|
|
|
];
|
|
|
|
|
2023-02-17 11:45:09 +01:00
|
|
|
components.gui.enable = true;
|
2023-08-14 03:08:56 +02:00
|
|
|
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;
|
2022-09-23 20:29:18 +02:00
|
|
|
|
2022-09-20 20:47:36 +02:00
|
|
|
services.nginx.enable = true;
|
|
|
|
|
2019-12-20 05:54:26 +01:00
|
|
|
networking.hostName = "sterni";
|
2019-10-24 02:20:38 +02:00
|
|
|
|
2023-08-14 03:08:56 +02:00
|
|
|
services.flatpak.enable = true;
|
2019-10-24 02:20:38 +02:00
|
|
|
|
|
|
|
security.wrappers = {
|
2022-01-13 13:40:18 +01:00
|
|
|
pmount = {
|
|
|
|
source = "${pkgs.pmount}/bin/pmount";
|
2022-01-23 20:23:47 +01:00
|
|
|
setuid = true;
|
|
|
|
owner = "root";
|
|
|
|
group = "root";
|
2022-01-13 13:40:18 +01:00
|
|
|
};
|
|
|
|
pumount = {
|
|
|
|
source = "${pkgs.pmount}/bin/pumount";
|
2022-01-23 20:23:47 +01:00
|
|
|
setuid = true;
|
|
|
|
owner = "root";
|
|
|
|
group = "root";
|
2022-01-13 13:40:18 +01:00
|
|
|
};
|
2019-10-24 02:20:38 +02:00
|
|
|
};
|
|
|
|
|
2023-02-17 11:45:09 +01:00
|
|
|
home-manager.users.mainUser.home.stateVersion = "22.11";
|
|
|
|
|
2019-10-24 02:20:38 +02:00
|
|
|
# fonts
|
|
|
|
# -----
|
2019-12-20 05:54:26 +01:00
|
|
|
programs.custom.urxvt.fontSize = 12;
|
|
|
|
programs.custom.xterm.fontSize = 12;
|
2019-10-24 02:20:38 +02:00
|
|
|
|
|
|
|
virtualisation = {
|
2023-01-07 21:24:32 +01:00
|
|
|
docker.enable = true;
|
2022-10-08 18:52:57 +02:00
|
|
|
podman.enable = true;
|
2019-10-24 02:20:38 +02:00
|
|
|
|
|
|
|
virtualbox = {
|
2019-12-20 05:54:26 +01:00
|
|
|
host.enable = false;
|
|
|
|
guest.x11 = false;
|
2019-10-24 02:20:38 +02:00
|
|
|
guest.enable = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-08-18 21:19:27 +02:00
|
|
|
services.xserver.desktopManager.gnome.enable = true;
|
|
|
|
|
2019-12-02 23:56:29 +01:00
|
|
|
custom.samba-share = {
|
2023-02-13 18:40:56 +01:00
|
|
|
enable = false;
|
2019-12-02 23:56:29 +01:00
|
|
|
folders = {
|
2019-12-15 09:21:51 +01:00
|
|
|
share = "/home/share";
|
2022-05-25 18:32:53 +02:00
|
|
|
video = "/home/video-material";
|
2019-12-02 23:56:29 +01:00
|
|
|
};
|
2019-10-24 02:20:38 +02:00
|
|
|
};
|
|
|
|
|
2019-12-03 03:30:33 +01:00
|
|
|
# enable this to use sidequest
|
2023-08-14 03:29:02 +02:00
|
|
|
# programs.adb.enable = false;
|
2020-12-30 01:18:37 +01:00
|
|
|
|
|
|
|
# for congress and streaming
|
|
|
|
hardware.opengl = {
|
|
|
|
enable = true;
|
2023-01-23 20:04:50 +01:00
|
|
|
# extraPackages = [
|
|
|
|
# intel-media-driver # LIBVA_DRIVER_NAME=iHD
|
|
|
|
# vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
|
|
|
|
# vaapiVdpau
|
|
|
|
# libvdpau-va-gl
|
|
|
|
# ];
|
2021-03-10 19:27:43 +01:00
|
|
|
driSupport = true;
|
2020-12-30 01:18:37 +01:00
|
|
|
driSupport32Bit = true;
|
|
|
|
};
|
2019-12-03 03:30:33 +01:00
|
|
|
|
2019-10-24 02:20:38 +02:00
|
|
|
}
|