aboutsummaryrefslogtreecommitdiff
path: root/hosts/sagittarius/default.nix
diff options
context:
space:
mode:
authorMiran Bastaja <miran.bastaja04@gmail.com>2024-08-02 22:19:40 +0200
committerMiran Bastaja <miran.bastaja04@gmail.com>2024-08-02 22:19:40 +0200
commit7c7f9d0f6ea2542406de2ea5f4f09106d8ab52c7 (patch)
tree48a3a3d900bc7a17dd49943abe27e66b7b354655 /hosts/sagittarius/default.nix
parentfedbf8f5c09b8d13b094878a7c46cd6850cccf93 (diff)
sagittarius: set up nix comin for automatic deployments
Diffstat (limited to 'hosts/sagittarius/default.nix')
-rw-r--r--hosts/sagittarius/default.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/hosts/sagittarius/default.nix b/hosts/sagittarius/default.nix
index 2e45e03..6ce0492 100644
--- a/hosts/sagittarius/default.nix
+++ b/hosts/sagittarius/default.nix
@@ -1,4 +1,4 @@
-{ ... }:
+{ config, ... }:
{
imports = [
# Include the results of the hardware scan.
@@ -6,6 +6,7 @@
./home.nix
./ssh.nix
./web
+ ./sops.nix
];
boot.loader.grub.device = "/dev/sda";
@@ -25,6 +26,17 @@
routes = [ { Gateway = "fe80::1"; } ];
};
};
+ services.comin = {
+ enable = true;
+ remotes = [
+ {
+ name = "origin";
+ url = "https://git.sorre.xyz/miranb/nixos-config.git";
+ branches.main.name = "main";
+ auth.access_token_path = config.sops.secrets."forgejo-access-token/sorre".path;
+ }
+ ];
+ };
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";