snowflake/hosts/sutakku/default.nix
2023-03-19 15:18:49 -04:00

86 lines
1.7 KiB
Nix

{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
../../modules/services
];
boot.loader = {
grub = {
enable = true;
configurationLimit = 3;
device = "/dev/sda";
useOSProber = false;
};
};
networking.hostName = "sutakku";
networking.networkmanager.enable = true;
time.timeZone = "America/New_York";
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";
};
services.xserver = {
layout = "us";
xkbVariant = "";
};
virtualisation.docker.enable = true;
users = {
defaultUserShell = pkgs.nushell;
users.oh = {
isNormalUser = true;
description = "oh";
extraGroups = [ "networkmanager" "wheel" ];
};
};
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
wget
nfs-utils
pinentry-curses
];
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryFlavor = "curses";
};
services.openssh.enable = true;
networking.firewall.enable = true;
networking.nameservers = [ "192.168.1.45" ];
nix = {
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes
warn-dirty = false
'';
settings.auto-optimise-store = true;
gc = {
automatic = true;
dates = "weekly";
options = "delete-older-than 7d";
};
};
system.stateVersion = "23.05";
}