diff options
Diffstat (limited to 'modules/hosts/hp-envy-office/configuration.nix')
-rw-r--r-- | modules/hosts/hp-envy-office/configuration.nix | 75 |
1 files changed, 44 insertions, 31 deletions
diff --git a/modules/hosts/hp-envy-office/configuration.nix b/modules/hosts/hp-envy-office/configuration.nix index 9b3e173..89c5da4 100644 --- a/modules/hosts/hp-envy-office/configuration.nix +++ b/modules/hosts/hp-envy-office/configuration.nix @@ -1,42 +1,55 @@ { config, lib, pkgs, ... }: { - imports = [ ./hardware-configuration.nix ]; - - # Show bootloader for longer since it usually doesn't show - boot.loader.timeout = 15; - - # Enable extra software pkgs - software.desktop = { - chromium.enable = true; - cad.enable = false; - crypto.enable = false; - graphics.enable = true; - office.enable = true; - utilities.enable = true; - }; - software.development = { - docker.enable = true; + imports = [ + ./hardware-configuration.nix + ../../nixos/archetypes/tjkeller + ]; + + # Setup bootloader + boot._loader.enable = true; + boot.loader.timeout = 15; # Show for longer since it's usually skipped + + # Enable common options + _archetypes = { + # Use desktop profile + profiles.desktop.enable = true; + # Install software + collections = { + desktop = { + extraUtilities.enable = true; + chromium.enable = true; + graphics.enable = true; + office.enable = true; + }; + development = { + docker.enable = true; + web = { + node.enable = true; + }; + }; + virtualization.enable = true; + bluetooth.enable = true; + }; + # Setup user + users.primary = { + enable = true; + }; + tjkeller = { + nas = { + enable = true; + office.enable = true; + office.automount = true; + }; + }; }; + # Disable suspend + systemd._suspend.disable = true; + # Enable virtualization virtualization.enable = true; - # Enable network drives - nas.enable = true; - nas.office.enable = true; - nas.home.enable = false; - - networking.hosts = { - "192.168.77.3" = [ "devel" ]; - }; - # Use amdgpu driver for x11 services.xserver.videoDrivers = [ "amdgpu" ]; - # Enable bluetooth - bluetooth.enable = true; - - # Disable autologin - autologin.enable = false; - system.stateVersion = "24.11"; } |