80 lines
1.7 KiB
Nix
80 lines
1.7 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
../../modules/common
|
|
../../modules/security/ssh-keys.nix
|
|
../../modules/users/sma.nix
|
|
];
|
|
|
|
# Bootloader
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
# Networking
|
|
networking.hostName = "limiting-factor";
|
|
networking.networkmanager.enable = true;
|
|
|
|
# Time zone
|
|
time.timeZone = "Europe/Oslo";
|
|
|
|
# Internationalization
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
i18n.extraLocaleSettings = {
|
|
LC_ADDRESS = "nb_NO.UTF-8";
|
|
LC_IDENTIFICATION = "nb_NO.UTF-8";
|
|
LC_MEASUREMENT = "nb_NO.UTF-8";
|
|
LC_MONETARY = "nb_NO.UTF-8";
|
|
LC_NAME = "nb_NO.UTF-8";
|
|
LC_NUMERIC = "nb_NO.UTF-8";
|
|
LC_PAPER = "nb_NO.UTF-8";
|
|
LC_TELEPHONE = "nb_NO.UTF-8";
|
|
LC_TIME = "nb_NO.UTF-8";
|
|
};
|
|
|
|
# Console keymap
|
|
console.keyMap = "us";
|
|
|
|
# Define users
|
|
users.users.sma = {
|
|
isNormalUser = true;
|
|
description = "Diziet Sma";
|
|
extraGroups = ["networkmanager" "wheel"];
|
|
packages = with pkgs; [
|
|
# Basic server tools
|
|
git
|
|
vim
|
|
htop
|
|
];
|
|
};
|
|
|
|
# Allow unfree packages
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
# List packages installed in system profile
|
|
environment.systemPackages = with pkgs; [
|
|
wget
|
|
curl
|
|
git
|
|
vim
|
|
htop
|
|
tree
|
|
file
|
|
rsync
|
|
];
|
|
|
|
# Enable the OpenSSH daemon
|
|
services.openssh.enable = true;
|
|
|
|
# Open ports in the firewall
|
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
# Or disable the firewall altogether.
|
|
# networking.firewall.enable = false;
|
|
|
|
system.stateVersion = "25.05"; # Do not change this.
|
|
}
|