This repository has been archived on 2024-07-08. You can view files and clone it, but cannot push or open issues or pull requests.
nix-config-tn/nixos/profiles/role-worstation.nix

31 lines
740 B
Nix
Raw Normal View History

2024-03-24 07:21:13 -05:00
{ config, lib, pkgs, imports, boot, ... }:
# Role for workstations
# Covers desktops/laptops, expected to have a GUI and do worloads
# Will have home-manager installs
with lib;
{
2024-03-25 06:51:18 -05:00
config.boot = {
2024-03-24 07:21:13 -05:00
binfmt.emulatedSystems = [ "aarch64-linux" ]; # Enabled for raspi4 compilation
2024-03-25 06:51:18 -05:00
plymouth.enable = true; # hide console with splash screen
2024-03-24 07:21:13 -05:00
};
2024-03-25 06:51:18 -05:00
config.nix.settings = {
2024-03-24 07:21:13 -05:00
# TODO factor out into mySystem
# Avoid disk full issues
max-free = lib.mkDefault (1000 * 1000 * 1000);
min-free = lib.mkDefault (128 * 1000 * 1000);
};
2024-03-24 17:23:35 -05:00
# set xserver videodrivers if used
2024-03-25 06:51:18 -05:00
config.services.xserver.enable = true;
2024-03-24 07:21:13 -05:00
2024-03-24 17:23:35 -05:00
# Laptop so ill likely use wireles
# very likely to be set by GUI packages but lets
# be declarative.
2024-03-24 07:21:13 -05:00
}