nixos-config/nixos/machines/cream/configuration.nix
2023-11-07 16:47:53 +01:00

159 lines
3.5 KiB
Nix

{ config, pkgs, lib, ... }:
{
imports = [
../../components
../../system/desktop
../../system/server/netdata.nix
./hardware-configuration.nix
./packages.nix
./packages-development.nix
./syncthing.nix
./cups.nix
./tinc.nix
./tinc_retiolum.nix
#./wifi-access-point.nix
#./wireshark.nix
#./scanner.nix
./qemu.nix
./wireguard.nix
./borg.nix
./trilium.nix
./test.nix
#./proxy.nix
];
components.gui.enable = true;
components.mainUser.enable = true;
components.media.enable = true;
components.network.enable = true;
components.network.wifi.enable = true;
components.terminal.enable = true;
components.gui.taskwarrior.config = {
general = {
targets = [ "terranix" "github_private" ];
#targets = [ "terranix" "github_private" "jobrad" ];
static_fields = "priority";
log_level = "INFO";
};
terranix = {
service = "github";
login = "mrVanDalo";
token = "@oracle:eval:${pkgs.pass}/bin/pass development/github/mrVanDalo/bugwarriorAccessToken";
username = "mrVanDalo";
default_priority = "";
description_template = "{{githubtitle}} {{githuburl}}";
add_tags = "github";
project_template = "terranix";
involved_issues = true;
query = "org:terranix is:open";
include_user_issues = false;
include_user_repos = false;
};
github_private = {
service = "github";
login = "mrVanDalo";
token = "@oracle:eval:${pkgs.pass}/bin/pass development/github/mrVanDalo/bugwarriorAccessToken";
username = "mrVanDalo";
description_template = "{{githubtitle}} {{githuburl}}";
add_tags = "github";
involved_issues = true;
include_user_issues = true;
include_user_repos = true;
};
};
users.users.mainUser.extraGroups = [ "pipewire" ];
services.nginx.enable = true;
networking.hostName = "cream";
services.flatpak.enable = true;
# make sure battery is charged in a way to live for a long time
services.power-profiles-daemon.enable = false;
services.tlp = {
enable = true;
settings = {
CPU_BOOST_ON_BAT = 0;
CPU_SCALING_GOVERNOR_ON_BATTERY = "powersave";
START_CHARGE_THRESH_BAT0 = 30;
STOP_CHARGE_THRESH_BAT0 = 85;
RUNTIME_PM_ON_BAT = "auto";
};
};
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;
services.printing.enable = true;
# fonts
# -----
programs.custom.urxvt.fontSize = 16;
programs.custom.urxvt.fontType = "vector";
programs.custom.xterm.fontSize = 16;
# todo : add xterm fontType
# programs.custom.xterm.fontType = "vector";
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;
#services.xserver.displayManager.lightdm.enable = false;
#services.xserver.displayManager.sddm.enable = true;
custom.samba-share = {
enable = false;
folders = {
share = "/home/share";
video = "/home/video-material";
};
};
# for congress and streaming
hardware.opengl = {
enable = true;
};
system.stateVersion = "22.11";
}