Compare commits
2 Commits
2e8996767e
...
6d826ee4d2
Author | SHA1 | Date |
---|---|---|
Ciapa | 6d826ee4d2 | |
Ciapa | 6f92c589c3 |
|
@ -7,34 +7,25 @@ variables: &nix-config
|
|||
NIXPKGS_ALLOW_INSECURE: "1"
|
||||
|
||||
steps:
|
||||
- name: Configure Nix Channels
|
||||
image: bash
|
||||
- name: Check Flake
|
||||
image: nixos/nix:latest
|
||||
pull: true
|
||||
commands:
|
||||
- nix-channel --add https://nixos.org/channels/nixos-$${NIXOS_VERSION} nixos
|
||||
- nix-channel --update
|
||||
environment:
|
||||
*nix-config
|
||||
when:
|
||||
- evaluate: 'CI_PIPELINE_EVENT != "cron" && CI_PIPELINE_EVENT != "schedule"'
|
||||
|
||||
- name: Check Flake
|
||||
image: bash
|
||||
commands:
|
||||
- nix flake check
|
||||
environment:
|
||||
*nix-config
|
||||
when:
|
||||
- evaluate: 'CI_PIPELINE_EVENT != "cron" && CI_PIPELINE_EVENT != "schedule"'
|
||||
|
||||
- name: Place SSH Key
|
||||
image: bash
|
||||
commands:
|
||||
- echo $${SSH_PRIVATE_KEY}} > .privkey
|
||||
- chmod 0600 .privkey
|
||||
|
||||
- name: Deploy
|
||||
image: bash
|
||||
image: nixos/nix:latest
|
||||
pull: true
|
||||
commands:
|
||||
- nix-env -iA nixos.openssh
|
||||
- eval "$(ssh-agent -s)"
|
||||
- echo $${SSH_PRIVATE_KEY}} | ssh-add -
|
||||
- nix develop --command deploy
|
||||
environment:
|
||||
*nix-config
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
networking.firewall.allowedTCPPorts = [ ];
|
||||
networking.firewall.allowedTCPPorts = [ 6080 ];
|
||||
services.transfer-sh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
@ -12,8 +12,5 @@
|
|||
PURGE_DAYS = "90";
|
||||
};
|
||||
};
|
||||
systemd.services.transfer-sh.serviceConfig.ReadWritePaths = lib.mkForce [
|
||||
"/mnt/data/transfer-sh/temp"
|
||||
"/mnt/data/transfer-sh/store"
|
||||
];
|
||||
systemd.services.transfer-sh.serviceConfig.ReadWritePaths = lib.mkForce "/mnt/data/transfer-sh";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue