diff options
| author | Isabella Bastaja <isabella@sorre.xyz> | 2026-08-18 20:07:35 +0200 |
|---|---|---|
| committer | Isabella Bastaja <isabella@sorre.xyz> | 2026-08-20 22:00:12 +0200 |
| commit | dcd2c4c4d71161301a956b7e4777b499f5010e74 (patch) | |
| tree | 91945b57a045cb79bd83e58e898f28c3a626c53c /hosts/tower/default.nix | |
| parent | b57bf02455c97a70efb22c6c7805f4df87c8b998 (diff) | |
tower: init
Diffstat (limited to 'hosts/tower/default.nix')
| -rw-r--r-- | hosts/tower/default.nix | 69 |
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? +} |
