diff options
author | Jasper Ras <jaspert.ras@gmail.com> | 2025-02-01 14:57:39 +0100 |
---|---|---|
committer | Jasper Ras <jaspert.ras@gmail.com> | 2025-02-01 14:57:39 +0100 |
commit | 24eb87d36b150f6364b843bbd9483c8586755354 (patch) | |
tree | 21a5153db1abf964005d54278c867485e3d5524c /hosts/tarreltaart.nix | |
parent | 6906281953c068a16ef4da4f2febacf2ef171610 (diff) |
roles & snorlex
Diffstat (limited to 'hosts/tarreltaart.nix')
-rw-r--r-- | hosts/tarreltaart.nix | 51 |
1 files changed, 11 insertions, 40 deletions
diff --git a/hosts/tarreltaart.nix b/hosts/tarreltaart.nix index edcb5fd..42461f6 100644 --- a/hosts/tarreltaart.nix +++ b/hosts/tarreltaart.nix @@ -1,45 +1,16 @@ -{ pkgs, ... }: +{ ... }: { - imports = [ ./hardware-configuration/tarreltaart.nix ]; - # Use the extlinux boot loader. (NixOS wants to enable GRUB by default) - boot.loader.grub.enable = false; - # Enables the generation of /boot/extlinux/extlinux.conf - boot.loader.generic-extlinux-compatible.enable = true; - - networking.hostName = "tarreltaart"; # Define your hostname. - time.timeZone = "Europe/Amsterdam"; - - users.users.jras = { - isNormalUser = true; - extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. - packages = with pkgs; [ - tree - ]; - }; - users.users.git.isNormalUser = true; + imports = [ + ./hardware-configuration/tarreltaart.nix + ../roles/server.nix + ../roles/git-server.nix + ]; - environment.systemPackages = with pkgs; [ - git - vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. - wget - ]; - programs.mtr.enable = true; - services.openssh = { - enable = true; - allowSFTP = false; - settings = { - PermitRootLogin = "no"; - AllowUsers = [ "jras" "git" ]; - }; - }; - services.gitea = { - enable = true; - appName = "JAP56 Git Server"; - }; + system.stateVersion = "24.11"; - networking.firewall.allowedTCPPorts = [ 22 ]; - - # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . - system.stateVersion = "24.11"; # Did you read the comment? + networking.hostName = "tarreltaart"; + time.timeZone = "Europe/Amsterdam"; + boot.loader.grub.enable = false; + boot.loader.generic-extlinux-compatible.enable = true; } |