2024-05-07 18:02:59 -04:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
imports = [ ./hardware-configuration.nix ];
|
2024-04-23 14:46:17 -04:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
system.stateVersion = "24.05";
|
|
|
|
system.autoUpgrade.enable = lib.mkForce false;
|
2024-04-23 14:46:17 -04:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
host = {
|
|
|
|
role = "workstation";
|
|
|
|
apps = {
|
|
|
|
development.enable = true;
|
|
|
|
media.enable = true;
|
|
|
|
office.enable = true;
|
2024-05-21 23:54:41 -04:00
|
|
|
recording.enable = true;
|
2024-05-07 18:02:59 -04:00
|
|
|
social.enable = true;
|
|
|
|
writing.enable = true;
|
|
|
|
};
|
|
|
|
ui = {
|
|
|
|
flatpak.enable = true;
|
|
|
|
gnome.enable = true;
|
|
|
|
};
|
2024-05-21 09:22:03 -04:00
|
|
|
users.aires = {
|
|
|
|
enable = true;
|
|
|
|
autologin = true;
|
|
|
|
services = {
|
|
|
|
syncthing = {
|
|
|
|
enable = true;
|
|
|
|
autostart = true;
|
|
|
|
enableTray = false;
|
2024-05-07 18:02:59 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-04-23 14:46:17 -04:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Build remotely
|
|
|
|
nix.distributedBuilds = true;
|
2024-04-28 11:54:53 -04:00
|
|
|
|
2024-05-17 10:52:15 -04:00
|
|
|
# Enable thermal control
|
|
|
|
services.thermald.enable = true;
|
|
|
|
|
|
|
|
# Limit the number of cores Nix can use so at least one is always free
|
|
|
|
nix.settings.cores = 11;
|
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Configure the virtual machine created by nixos-rebuild build-vm
|
|
|
|
virtualisation.vmVariant.virtualisation = {
|
|
|
|
memorySize = 2048;
|
|
|
|
cores = 2;
|
|
|
|
};
|
2024-04-23 14:46:17 -04:00
|
|
|
}
|