Files
nixos-config/hosts/eva-02/configuration.nix

168 lines
3.1 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
config,
pkgs,
pkgs-unstable,
inputs,
configPath,
hostname,
hostTypes,
lib,
...
}:
{
nix.settings.experimental-features = ["nix-command" "flakes"];
# Nix optimizations
nix.optimise.automatic = true;
# nix.settings.auto-optimise-store = true;
nix.gc = {
automatic = true;
interval = [{
Hour = 2;
Minute = 30;
Weekday = 7;
}];
# persistent = true;
options = "--delete-older-than 30d";
};
networking.hostName = "eva-02"; # Define your hostname.
# Set your time zone.
time.timeZone = "America/Los_Angeles";
# Enable sound with pipewire.
# hardware.pulseaudio.enable = false;
#hardware.pulseaudio = {
# enable = true;
# package = pkgs.pulseaudioFull;
#};
# Enable Touch ID
security.pam.services.sudo_local.touchIdAuth = true;
# Define a user account. Don't forget to set a password with passwd.
system.primaryUser = "rogueking";
programs.zsh.enable = true;
users.users.rogueking = {
# isNormalUser = true;
description = "rogueking";
# extraGroups = [ "admin" "staff" "wheel" "docker" ];
home = "/Users/rogueking";
shell = pkgs.zsh;
packages = with pkgs; [
#apps
#cli
];
};
homebrew = {
enable = true;
user = "rogueking";
#onActivation.autoUpdate = true;
brews = [
"docker"
"esptool"
"git-lfs"
"huggingface-cli"
"putty"
"tailscale"
];
casks = [
"1password"
"1password-cli"
"bambu-studio"
"blender"
"brave-browser"
"comfyui"
"ghostty"
"imhex"
"jellyfin-media-player"
"jordanbaird-ice"
"localsend"
"melonds"
"moonlight"
"obsidian"
"signal"
"steam"
"vesktop"
#"visual-studio-code"
"vlc"
];
};
# Install firefox.
# programs.firefox.enable = true;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Enable OpenSSH daemon
# services.openssh = {
# enable = true;
# # ports = [ 22 ];
# settings = {
# PasswordAuthentication = true;
# AllowUsers = [ "rogueking" ];
# UseDns = true;
# X11Forwarding = false;
# PermitRootLogin = "no";
# MaxAuthTries = 8;
# };
# };
users.users."rogueking".openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINXqriPZVIuduc/J7GS1mD171LL0gIbgEjlImsxedWVX"
];
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
#apps
#cli tools
btop
curl
docker
dust
file
findutils
git
kopia
lazydocker
nettools
nix-prefetch-github
nmap
openssh
openssl
ptunnel
unzip
vim
pkgs-unstable.vscode
];
fonts.packages = with pkgs; [
nerd-fonts.hack
nerd-fonts.fira-code
];
home-manager = {
extraSpecialArgs = {
inherit
configPath
inputs
pkgs-unstable
hostname
hostTypes
;
};
users = {
"rogueking" = import ./../../home-manager/home.nix;
};
backupFileExtension = "backup";
};
system.stateVersion = 6;
}