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

121 lines
2.4 KiB
Nix
Raw Normal View History

2023-02-13 18:40:56 +01:00
{ config, pkgs, lib, ... }: {
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-02-13 18:40:56 +01:00
];
2023-07-09 19:01:19 +02:00
2023-02-17 00:41:22 +01:00
components.gui.enable = true;
2023-08-25 11:33:25 +02:00
components.mainUser.enable = true;
components.media.enable = true;
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;
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-05-11 10:35:26 +02:00
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";
};
};
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";
};
};
programs.custom.video.enable = false;
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;
};
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
}