home-lab/machines/limiting-factor/configuration.nix
Geir Okkenhaug Jerstad 8fda07ecd3 prepared for mininas
2025-07-07 19:17:33 +02:00

71 lines
1.5 KiB
Nix

{
config,
pkgs,
lib,
...
}: {
imports = [
./hardware-configuration.nix
../../modules/security/ssh-keys.nix
../../modules/users/sma.nix
../../modules/network/common.nix
../../modules/network/extraHosts.nix
# Development (minimal for server)
../../modules/development/emacs.nix
];
# Bootloader
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Networking
networking.hostName = "limiting-factor";
networking.networkmanager.enable = true;
# Add nomodeset for graphics compatibility
boot.kernelParams = ["nomodeset"];
# Time and locale
time.timeZone = "Europe/Oslo";
i18n.defaultLocale = "en_US.UTF-8";
# Console configuration
console = {
font = "Lat2-Terminus16";
keyMap = "no";
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Emacs server configuration (minimal)
services.emacs-profiles = {
enable = true;
profile = "nox";
enableDaemon = false; # Don't run daemon on server
user = "sma";
};
# 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.
}