2024-05-26 12:51:51 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
./hardware-configuration.nix
|
|
|
|
../../common/cachix.nix
|
|
|
|
../../common/generic.nix
|
|
|
|
../../common/server.nix
|
|
|
|
../../common/tailscale.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
boot.loader.grub.enable = true;
|
|
|
|
boot.loader.grub.device = "/dev/sdb";
|
|
|
|
boot.loader.grub.useOSProber = true;
|
|
|
|
|
2024-06-04 10:58:25 +00:00
|
|
|
services.smartd.enable = true;
|
|
|
|
|
2024-05-26 12:51:51 +00:00
|
|
|
networking.hostName = "lea";
|
|
|
|
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
|
|
|
time.timeZone = "Europe/London";
|
|
|
|
|
|
|
|
i18n.defaultLocale = "en_GB.UTF-8";
|
|
|
|
|
|
|
|
services.xserver = {
|
|
|
|
layout = "gb";
|
|
|
|
xkbVariant = "";
|
|
|
|
};
|
|
|
|
|
|
|
|
console.keyMap = "uk";
|
|
|
|
|
|
|
|
nix.settings.trusted-users = [ "@wheel" ];
|
|
|
|
|
|
|
|
users.users.ash = {
|
|
|
|
isNormalUser = true;
|
|
|
|
description = "Ashley";
|
|
|
|
extraGroups = [ "networkmanager" "wheel" ];
|
|
|
|
packages = with pkgs; [];
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
helix
|
2024-06-04 10:58:25 +00:00
|
|
|
smartmontools
|
2024-05-26 12:51:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
services.openssh.enable = true;
|
|
|
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
|
|
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
|
|
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|