diff --git a/hosts/vulpecula/configuration.nix b/hosts/vulpecula/configuration.nix new file mode 100644 index 0000000..537c5ca --- /dev/null +++ b/hosts/vulpecula/configuration.nix @@ -0,0 +1,44 @@ +{ + pkgs, + lib, + inputs, + ... +}: let + sshKeys = import ../../crypto/ssh-keys.nix; +in { + imports = [ + ./hardware-configuration.nix + ../../common/base.nix + ]; + + networking = { + hostName = "vulpecula"; + + firewall = { + allowedTCPPorts = [ + # 2342 + # 8080 # ? + # 9000 + # 9002 + ]; + }; + }; + + # nix.settings.trusted-users = ["root" "@wheel"]; # TODO + + users.users.tasia = { + isNormalUser = true; + description = "Tasia"; + extraGroups = ["networkmanager" "wheel"]; + initialPassword = "correcthorsebatterystaple"; + openssh.authorizedKeys.keys = [ + sshKeys.tasia.yaseen + ]; + }; + + environment.systemPackages = with pkgs; [ + ]; + + # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion + system.stateVersion = "24.05"; +} diff --git a/hosts/yaseen/configuration.nix b/hosts/yaseen/configuration.nix index e5cc774..2a7b2d6 100644 --- a/hosts/yaseen/configuration.nix +++ b/hosts/yaseen/configuration.nix @@ -21,8 +21,8 @@ in { ../../common/hardware/intel-cpu.nix ../../common/hardware/tpm2.nix ../../common/hardware/wireless.nix - ../../common/hardware/nvidia-gpu.nix - ../../common/hardware/nvidia-gpu-offload.nix + # ../../common/hardware/nvidia-gpu.nix + # ../../common/hardware/nvidia-gpu-offload.nix ../../common/hardware/ssd.nix ../../common/hardware/btrfs.nix @@ -125,55 +125,116 @@ in { programs.adb.enable = true; - services.grafana = { - enable = false; - settings.server = { - domain = "grafana.enry"; - http_port = 2342; - http_addr = "0.0.0.0"; - }; - }; + # services.grafana = { + # enable = false; + # settings.server = { + # domain = "grafana.enry"; + # http_port = 2342; + # http_addr = "0.0.0.0"; + # }; + # }; - services.prometheus = { - enable = false; - port = 9000; - retentionTime = "60d"; + # services.prometheus = { + # enable = false; + # port = 9000; + # retentionTime = "60d"; - exporters = { - node = { - enable = false; - enabledCollectors = ["systemd"]; - port = 9002; - }; - }; + # exporters = { + # node = { + # enable = false; + # enabledCollectors = ["systemd"]; + # port = 9002; + # }; + # }; - scrapeConfigs = [ - { - job_name = "enry"; - static_configs = [ - { - targets = ["127.0.0.1:${toString config.services.prometheus.exporters.node.port}"]; - } - ]; - } + # scrapeConfigs = [ + # { + # job_name = "enry"; + # static_configs = [ + # { + # targets = ["127.0.0.1:${toString config.services.prometheus.exporters.node.port}"]; + # } + # ]; + # } - { - job_name = "monitor"; - static_configs = [ - { - targets = ["127.0.0.1:8080"]; - } - ]; - } - ]; - }; + # { + # job_name = "monitor"; + # static_configs = [ + # { + # targets = ["127.0.0.1:8080"]; + # } + # ]; + # } + # ]; + # }; services.printing.drivers = [pkgs.cnijfilter2]; - services.ollama = { - enable = true; - # acceleration = "cuda"; - }; + # services.forgejo = { + # enable = true; + # database.type = "postgres"; + # # Enable support for Git Large File Storage + # lfs.enable = true; + # settings = { + # server = { + # DOMAIN = "git.example.com"; + # # You need to specify this to remove the port from URLs in the web UI. + # ROOT_URL = "https://git.vulpecula.zone/"; + # HTTP_PORT = 3000; + # }; + # # You can temporarily allow registration to create an admin user. + # service.DISABLE_REGISTRATION = true; + # # Add support for actions, based on act: https://github.com/nektos/act + # # actions = { + # # ENABLED = true; + # # DEFAULT_ACTIONS_URL = "github"; + # # }; + # # Sending emails is completely optional + # # You can send a test email from the web UI at: + # # Profile Picture > Site Administration > Configuration > Mailer Configuration + # # mailer = { + # # ENABLED = true; + # # SMTP_ADDR = "mail.example.com"; + # # FROM = "noreply@${srv.DOMAIN}"; + # # USER = "noreply@${srv.DOMAIN}"; + # # }; + # }; + # # mailerPasswordFile = config.age.secrets.forgejo-mailer-password.path; + # }; + +# services.uptime-kuma.enable = true; + + # services.mattermost = { + # enable = true; + # siteUrl = "https://mattermost.example.com"; # Set this to the URL you will be hosting the site on. + # }; + +# todo: ci runner + + # services.ollama = { + # enable = true; + # # acceleration = "cuda"; + # }; + + # services.gotosocial = { + # enable = true; + # setupPostgresqlDB = true; + # settings = { + # application-name = "My GoToSocial"; + # host = "gotosocial.example.com"; + # protocol = "http"; + # bind-address = "127.0.0.1"; + # port = 8080; + # }; + # }; + + # environment.etc."nextcloud-admin-pass".text = "Devdevdev10!"; + # services.nextcloud = { + # enable = true; + # package = pkgs.nextcloud29; + # hostName = "localhost"; + # config.adminpassFile = "/etc/nextcloud-admin-pass"; + # }; services.rustdesk-server = { enable = true;