Files
system-config/system/hosts/sirius-a/configuration.nix

77 lines
1.6 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.
{
pkgs,
...
}:
{
imports = [
./gandicloud.nix
];
networking = {
hostName = "sirius-a"; # Define your hostname.
# Enable networking
networkmanager.enable = true;
# Disable wpa-supplicant to avoid conflicts with network manager.
wireless.enable = false;
firewall.allowedTCPPorts = [ 22 ];
};
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# Set your time zone.
time.timeZone = "America/Los_Angeles";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
programs.zsh.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.drew = {
isNormalUser = true;
description = "Drew Haven";
extraGroups = [
"networkmanager"
"wheel"
"docker-registry"
"docker"
];
shell = pkgs.zsh;
# Enable linger so that systemd services run for this user are started and
# persist even without an active session.
linger = true;
};
security.sudo = {
enable = true;
extraConfig = ''
Defaults:root,%wheel timestamp_timeout=30
'';
};
system.stateVersion = "24.11"; # Did you read the comment?
# Enable flakes
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
}