36f866ea9c
* docs: add better comments * add deploy-rs * wip * hackz * chore: make gc daily * chore: add --fast for haxing * fix: re-did home-manager --------- Co-authored-by: Truxnell <9149206+truxnell@users.noreply.github.com>
71 lines
1.4 KiB
Nix
71 lines
1.4 KiB
Nix
{ config, lib, pkgs, imports, boot, self, ... }:
|
|
# Role for workstations
|
|
# Covers desktops/laptops, expected to have a GUI and do worloads
|
|
# Will have home-manager installs
|
|
|
|
with config;
|
|
{
|
|
|
|
# Link in desktop home mamanger profile
|
|
home-manager.users.truxnell = self.homeConfigurations.desktop;
|
|
|
|
mySystem = {
|
|
|
|
de.gnome.enable = true;
|
|
editor.vscodium.enable = true;
|
|
browser.firefox.enable = true;
|
|
# Lets see if fish everywhere is OK on the pi's
|
|
# TODO decide if i drop to bash on pis?
|
|
shell.fish.enable = true;
|
|
# But wont enable plugins globally, leave them for workstations
|
|
|
|
};
|
|
|
|
boot = {
|
|
|
|
binfmt.emulatedSystems = [ "aarch64-linux" ]; # Enabled for raspi4 compilation
|
|
plymouth.enable = true; # hide console with splash screen
|
|
};
|
|
|
|
nix.settings = {
|
|
# TODO factor out into mySystem
|
|
# Avoid disk full issues
|
|
max-free = lib.mkDefault (1000 * 1000 * 1000);
|
|
min-free = lib.mkDefault (128 * 1000 * 1000);
|
|
};
|
|
|
|
# set xserver videodrivers if used
|
|
services.xserver.enable = true;
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
jq
|
|
yq
|
|
btop
|
|
vim
|
|
unstable.deploy-rs
|
|
git
|
|
dnsutils
|
|
nix
|
|
|
|
# TODO Move
|
|
nil
|
|
nixpkgs-fmt
|
|
statix
|
|
nvd
|
|
gh
|
|
];
|
|
|
|
i18n = {
|
|
defaultLocale = lib.mkDefault "en_AU.UTF-8";
|
|
};
|
|
|
|
|
|
programs.direnv = {
|
|
# TODO move to home-manager
|
|
enable = true;
|
|
nix-direnv.enable = true;
|
|
};
|
|
programs.mtr.enable = true;
|
|
}
|