nixos/hosts/sakoserver/configuration.nix

44 lines
955 B
Nix
Raw Normal View History

{ config, pkgs, lib, inputs, outputs, ... }: {
imports = [ outputs.nixosModules.server ./hardware-configuration.nix ];
2024-04-03 16:50:45 +04:00
2024-12-31 16:37:36 +04:00
# its you!
2024-04-03 16:50:45 +04:00
networking.hostName = "sakoserver";
2024-12-31 16:37:36 +04:00
# why not
networking.networkmanager.enable = true;
time.timeZone = "Asia/Dubai";
# locale
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
boot.loader = {
timeout = 3;
2024-12-31 16:37:36 +04:00
efi.canTouchEfiVariables = true;
systemd-boot = {
enable = true;
configurationLimit = 10;
};
};
2024-12-31 16:46:43 +04:00
users.users.sako = {
isNormalUser = true;
extraGroups = [ "wheel" ];
};
environment.systemPackages = with pkgs; [ neovim wget ];
# networking.firewall.allowedTCPPorts = [];
# networking.firewall.allowedUDPPorts = [];
2024-12-31 16:41:32 +04:00
void = { server = { isServer = true; }; };
2024-12-31 16:43:44 +04:00
2024-12-31 16:46:43 +04:00
# https://nixos.org/manual/nixos/stable/#sec-upgrading
2024-12-31 16:43:44 +04:00
# don't change this pls ty ily thanks
system.stateVersion = "24.11";
2024-12-31 16:41:32 +04:00
}