snowflake/hosts/sutakku/default.nix

90 lines
1.7 KiB
Nix
Raw Normal View History

2023-02-27 21:38:27 -05:00
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
../../modules
2023-02-27 21:38:27 -05:00
];
2023-02-28 06:30:53 -05:00
boot.loader = {
grub = {
enable = true;
configurationLimit = 3;
device = "/dev/sda";
useOSProber = false;
};
};
2023-04-02 09:00:04 -04:00
2023-02-27 21:38:27 -05:00
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 = "";
};
2023-02-27 21:48:08 -05:00
virtualisation.docker.enable = true;
2023-02-27 21:44:06 -05:00
users = {
defaultUserShell = pkgs.nushell;
users.oh = {
2023-02-27 21:38:27 -05:00
isNormalUser = true;
description = "oh";
extraGroups = [ "networkmanager" "wheel" ];
};
2023-02-27 21:44:06 -05:00
};
nixpkgs.config.allowUnfree = true;
2023-02-27 21:38:27 -05:00
environment.systemPackages = with pkgs; [
wget
nfs-utils
pinentry-curses
];
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryFlavor = "curses";
};
services.openssh.enable = true;
2023-04-02 09:00:04 -04:00
networking = {
hostName = "sutakku";
networkmanager.enable = true;
firewall = {
enable = true;
};
nameservers = [ "192.168.1.86" ];
};
2023-02-27 21:38:27 -05:00
nix = {
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes
warn-dirty = false
'';
2023-03-01 01:57:26 -05:00
settings.auto-optimise-store = true;
gc = {
automatic = true;
dates = "weekly";
options = "delete-older-than 7d";
};
2023-02-27 21:38:27 -05:00
};
system.stateVersion = "23.05";
}