aboutsummaryrefslogtreecommitdiff
path: root/hosts/tower/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/tower/default.nix')
-rw-r--r--hosts/tower/default.nix69
1 files changed, 69 insertions, 0 deletions
diff --git a/hosts/tower/default.nix b/hosts/tower/default.nix
new file mode 100644
index 0000000..4fe610f
--- /dev/null
+++ b/hosts/tower/default.nix
@@ -0,0 +1,69 @@
+{ ... }:
+{
+ imports = [
+ # Include the results of the hardware scan.
+ ./hardware.nix
+ ./ssh.nix
+ ./web
+ ./network.nix
+ ./auto-update.nix
+ ];
+
+ boot.loader.grub.device = "/dev/sda";
+ time.timeZone = "Europe/Zagreb";
+
+ virtualisation.podman = {
+ enable = true;
+ autoPrune.enable = true;
+ dockerCompat = true;
+ dockerSocket.enable = true;
+ };
+
+ # Set the max amount of space used for logs
+ services.journald.extraConfig = ''
+ SystemMaxUse=100M
+ '';
+
+ # Select internationalisation properties.
+ i18n.defaultLocale = "en_US.UTF-8";
+ i18n.extraLocaleSettings = {
+ LC_ADDRESS = "hr_HR.UTF-8";
+ LC_IDENTIFICATION = "hr_HR.UTF-8";
+ LC_MEASUREMENT = "hr_HR.UTF-8";
+ LC_MONETARY = "hr_HR.UTF-8";
+ LC_NAME = "hr_HR.UTF-8";
+ LC_NUMERIC = "hr_HR.UTF-8";
+ LC_PAPER = "hr_HR.UTF-8";
+ LC_TELEPHONE = "hr_HR.UTF-8";
+ LC_TIME = "hr_HR.UTF-8";
+ };
+
+ programs.gnupg.agent = {
+ enable = true;
+ enableSSHSupport = true;
+ };
+
+ users.users = {
+ isabella = {
+ isNormalUser = true;
+ description = "Isabella Morgana Bastaja";
+ extraGroups = [
+ "networkmanager"
+ "wheel"
+ ];
+ openssh.authorizedKeys.keys = [
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM4aG8NI25TgjcDevjsY/Y6d3iYsQxSEtIpsqprMHmad osiris@underworld"
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPUcWGKF3uIf/gqbo1/lxb8XLoi67Bc2tVi1Bd/Ddhoz isabella@wonderland"
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEvtzeVHgenfSUrpZeyZBoBTzN96rdYMy3KEJoRXja0O isabella@nyaan"
+ ];
+ };
+ };
+
+ # This value determines the NixOS release from which the default
+ # settings for stateful data, like file locations and database versions
+ # on your system were taken. It‘s perfectly fine and recommended to leave
+ # this value at the release version of the first install of this system.
+ # Before changing this value read the documentation for this option
+ # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
+ system.stateVersion = "26.05"; # Did you read the comment?
+}