2024-06-20 08:59:56 -05:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
# Role for workstations
|
|
|
|
# Covers desktops/laptops, expected to have a GUI and do workloads
|
|
|
|
# Will have home-manager installs
|
|
|
|
|
|
|
|
with config;
|
|
|
|
{
|
|
|
|
mySystem = {
|
|
|
|
shell.fish.enable = true;
|
2024-07-21 17:28:13 -05:00
|
|
|
editor.vscode.enable = true;
|
2024-06-20 08:59:56 -05:00
|
|
|
|
|
|
|
system.resticBackup.local.enable = false;
|
|
|
|
system.resticBackup.remote.enable = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
binfmt.emulatedSystems = [ "aarch64-linux" ]; # Enabled for raspi4 compilation
|
|
|
|
plymouth.enable = true; # hide console with splash screen
|
|
|
|
};
|
|
|
|
|
|
|
|
nix.settings = {
|
|
|
|
# Avoid disk full issues
|
|
|
|
max-free = lib.mkDefault (1000 * 1000 * 1000);
|
|
|
|
min-free = lib.mkDefault (128 * 1000 * 1000);
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
2024-07-05 11:43:01 -05:00
|
|
|
# set xserver videodrivers if used
|
|
|
|
xserver.enable = true;
|
|
|
|
# Enable the Gnome keyring for auto unlocking ssh keys on login
|
|
|
|
gnome.gnome-keyring.enable = true;
|
2024-06-20 08:59:56 -05:00
|
|
|
fwupd.enable = config.boot.loader.systemd-boot.enable; # fwupd does not work in BIOS mode
|
|
|
|
thermald.enable = true;
|
|
|
|
smartd.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
hardware = {
|
|
|
|
enableAllFirmware = true;
|
|
|
|
sensor.hddtemp = {
|
|
|
|
enable = true;
|
|
|
|
drives = [ "/dev/disk/by-id/*" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
# Sensors etc
|
|
|
|
lm_sensors
|
|
|
|
cpufrequtils
|
|
|
|
cpupower-gui
|
|
|
|
vivaldi
|
2024-06-30 15:13:39 -05:00
|
|
|
gparted
|
2024-09-06 15:38:27 -05:00
|
|
|
termius
|
2024-06-20 08:59:56 -05:00
|
|
|
];
|
|
|
|
|
|
|
|
i18n = {
|
|
|
|
defaultLocale = lib.mkDefault "en_US.UTF-8";
|
|
|
|
};
|
|
|
|
|
2024-07-21 16:25:59 -05:00
|
|
|
programs = {
|
|
|
|
mtr.enable = true;
|
|
|
|
ssh.startAgent = true;
|
|
|
|
|
|
|
|
# Enable appimage support and executing them via the appimage-run helper.
|
|
|
|
appimage = {
|
|
|
|
enable = true;
|
|
|
|
binfmt = true;
|
|
|
|
};
|
2024-07-21 17:28:13 -05:00
|
|
|
};
|
|
|
|
}
|