nixos-config/nixos/machines/cream/configuration.nix

164 lines
3.8 KiB
Nix
Raw Normal View History

2023-11-07 16:47:53 +01:00
{ config, pkgs, lib, ... }:
{
2023-02-13 18:40:56 +01:00
imports = [
2023-02-17 00:41:22 +01:00
../../components
2023-02-13 18:40:56 +01:00
../../system/desktop
../../system/server/netdata.nix
./hardware-configuration.nix
./packages.nix
2023-07-05 20:43:59 +02:00
./packages-development.nix
2023-02-13 18:40:56 +01:00
./syncthing.nix
2023-02-20 13:45:06 +01:00
./cups.nix
2023-06-10 18:34:54 +02:00
./tinc.nix
./tinc_retiolum.nix
2023-02-13 18:40:56 +01:00
#./wifi-access-point.nix
#./wireshark.nix
#./scanner.nix
2023-02-16 13:52:15 +01:00
./qemu.nix
2023-02-13 18:40:56 +01:00
./wireguard.nix
./borg.nix
2023-05-22 09:45:58 +02:00
./trilium.nix
2023-07-09 00:51:45 +02:00
./test.nix
2023-10-10 14:58:23 +02:00
#./proxy.nix
2023-02-13 18:40:56 +01:00
];
2023-02-17 00:41:22 +01:00
components.gui.enable = true;
2023-12-08 21:27:52 +01:00
# todo enable again
components.gui.emacs.enable = false; # because it's not working at the moment (again)
2023-08-25 11:33:25 +02:00
components.mainUser.enable = true;
components.media.enable = true;
2023-12-02 16:05:29 +01:00
components.media.tts-client.enable = false;
2023-06-01 11:38:39 +02:00
components.network.enable = true;
components.network.wifi.enable = true;
2023-08-25 11:33:25 +02:00
components.terminal.enable = true;
2023-11-10 16:26:59 +01:00
home-manager.users.mainUser.home.sessionPath = [ "$HOME/.timewarrior/scripts" ];
2023-11-07 16:47:53 +01:00
components.gui.taskwarrior.config = {
general = {
2023-11-10 11:03:20 +01:00
targets = [ "terranix" "my_github" ];
2023-11-07 16:47:53 +01:00
log_level = "INFO";
2023-11-10 16:26:59 +01:00
static_fields = [ "priority" ];
merge_annotations = false;
2023-11-07 16:47:53 +01:00
};
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;
};
2023-11-10 11:03:20 +01:00
my_github = {
2023-11-07 16:47:53 +01:00
service = "github";
login = "mrVanDalo";
token = "@oracle:eval:${pkgs.pass}/bin/pass development/github/mrVanDalo/bugwarriorAccessToken";
username = "mrVanDalo";
description_template = "{{githubtitle}} {{githuburl}}";
add_tags = "github";
include_user_issues = true;
include_user_repos = true;
2023-11-10 11:03:20 +01:00
exclude_repos = [ "azubi" "csv-to-qif" "stepp0r" ];
2023-11-07 16:47:53 +01:00
};
2023-11-10 14:30:38 +01:00
# todo : add github issues
2023-11-07 16:47:53 +01:00
};
2023-08-25 11:33:25 +02:00
users.users.mainUser.extraGroups = [ "pipewire" ];
2023-02-17 00:41:22 +01:00
2023-02-13 18:40:56 +01:00
services.nginx.enable = true;
networking.hostName = "cream";
2023-12-08 21:27:52 +01:00
#services.flatpak.enable = true;
2023-05-11 10:35:26 +02:00
# 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";
};
};
2023-02-13 18:40:56 +01:00
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";
};
};
2023-02-17 11:45:09 +01:00
programs.custom.steam.enable = true;
2023-02-13 18:40:56 +01:00
services.printing.enable = true;
# fonts
# -----
2023-02-16 13:52:15 +01:00
programs.custom.urxvt.fontSize = 16;
programs.custom.urxvt.fontType = "vector";
programs.custom.xterm.fontSize = 16;
# todo : add xterm fontType
2023-02-16 21:43:28 +01:00
# programs.custom.xterm.fontType = "vector";
2023-02-13 18:40:56 +01:00
virtualisation = {
docker.enable = true;
podman.enable = true;
virtualbox = {
host.enable = false;
guest.x11 = false;
guest.enable = false;
};
};
configuration.desktop = {
width = 2256;
height = 1504;
};
2023-12-08 21:27:52 +01:00
#services.xserver.desktopManager.gnome.enable = true;
2023-02-16 21:43:28 +01:00
#services.xserver.displayManager.lightdm.enable = false;
#services.xserver.displayManager.sddm.enable = true;
2023-02-13 18:40:56 +01:00
custom.samba-share = {
enable = false;
folders = {
share = "/home/share";
video = "/home/video-material";
};
};
# for congress and streaming
hardware.opengl = {
2023-02-17 11:45:09 +01:00
enable = true;
2023-02-13 18:40:56 +01:00
};
2023-02-17 11:45:09 +01:00
system.stateVersion = "22.11";
2023-02-13 18:40:56 +01:00
}