mirror of
https://github.com/FabricSoul/nixos-configs.git
synced 2026-02-03 22:26:24 -05:00
feat: add host solaris
This commit is contained in:
parent
892a6fe048
commit
705acb97e7
1 changed files with 68 additions and 0 deletions
68
hosts/solaris/default.nix
Normal file
68
hosts/solaris/default.nix
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
# 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
|
||||||
|
];
|
||||||
|
|
||||||
|
# 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" "docker"];
|
||||||
|
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
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue