diff --git a/components/base-server.nix b/components/base-server.nix index d15332d..42b7f5d 100644 --- a/components/base-server.nix +++ b/components/base-server.nix @@ -4,7 +4,7 @@ time.timeZone = "Australia/Brisbane"; # Select internationalisation properties. - i18n.defaultLocale = "en_GB.UTF-8"; + i18n.defaultLocale = "en_AU.UTF-8"; i18n.extraLocaleSettings = { LC_ADDRESS = "en_AU.UTF-8"; @@ -18,6 +18,13 @@ LC_TIME = "en_AU.UTF-8"; }; + # Configure keymap in X11 + services.xserver = { + layout = "au"; + xkbVariant = ""; + }; + + # Allow unfree packages nixpkgs.config.allowUnfree = true; @@ -39,5 +46,4 @@ services.openssh.enable = true; programs.fish.enable = true; - } \ No newline at end of file diff --git a/components/base-software.nix b/components/base-software.nix index f50565b..d1ca797 100644 --- a/components/base-software.nix +++ b/components/base-software.nix @@ -4,7 +4,7 @@ time.timeZone = "Australia/Brisbane"; # Select internationalisation properties. - i18n.defaultLocale = "en_GB.UTF-8"; + i18n.defaultLocale = "en_AU.UTF-8"; i18n.extraLocaleSettings = { LC_ADDRESS = "en_AU.UTF-8"; diff --git a/game-serv.nix b/game-serv.nix new file mode 100644 index 0000000..a9fc531 --- /dev/null +++ b/game-serv.nix @@ -0,0 +1,27 @@ +{ config, pkgs, ... }: + +{ + imports = + [ # Include the results of the hardware scan. + /etc/nixos/hardware-configuration.nix + ./components/base-server.nix + ]; + + # Bootloader. + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + networking.hostName = "game-serv"; # Define your hostname. + + users.users.kurtisa = { + isNormalUser = true; + description = "Kurtis Andrews"; + extraGroups = [ "networkmanager" "wheel" "docker"]; + shell = pkgs.fish; + }; + + # Docker + virtualisation.docker.enable = true; + + system.stateVersion = "23.11"; # Did you read the comment? +} \ No newline at end of file