nixos-configs/hosts/solaris/default.nix
2025-08-12 16:13:33 -04:00

75 lines
1.5 KiB
Nix

# hosts/solaris/default.nix
{
config,
lib,
pkgs,
...
}: {
imports = [
# Hardware configuration
./hardware-configuration.nix
# Common configurations
../common/global
../common/optional/fcitx5.nix
../common/optional/bluetooth.nix
../common/optional/steam.nix
../common/optional/kmonad.nix
../common/optional/auto-cpufreq.nix
];
# Bootloader
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.supportedFilesystems = ["nfs"];
# Networking
networking = {
hostName = "solaris";
networkmanager.enable = true;
useDHCP = lib.mkDefault true;
};
# User configuration
users.users.fabric = {
isNormalUser = true;
description = "fabric";
extraGroups = ["networkmanager" "wheel" "video"];
shell = pkgs.zsh;
};
services.rpcbind.enable = true;
fileSystems."/home/fabric/nas" = {
device = "tatara:/nas";
fsType = "nfs";
options = [
"x-systemd.automount"
"noauto"
"x-systemd.idle-timeout=60"
"x-systemd.device-timeout=5"
"x-systemd.mount-timeout=5"
"nfsvers=4" # Use NFSv4
"hard" # Hard mount (recommended)
"intr" # Allow interruption
"rsize=8192" # Read size
"wsize=8192" # Write size
];
};
# Display manager configuration
services.displayManager.defaultSession = "dwl";
# Basic system packages
environment.systemPackages = with pkgs; [
libinput
libnotify
foot
usbutils
ntfs3g
powertop
];
powerManagement.powertop.enable = true;
}