add krusader
This commit is contained in:
parent
6ef4d1a932
commit
7ce20c3d2c
2 changed files with 32 additions and 58 deletions
|
@ -1,10 +1,5 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
{ config, pkgs, inputs, lib, ... }:
|
||||
let
|
||||
agentPort = 9000;
|
||||
domain = "ci.cyplo.dev";
|
||||
uid = 2061;
|
||||
|
@ -21,8 +16,7 @@
|
|||
woodpeckerNixStorePath = "/var/lib/woodpecker/nix-store";
|
||||
woodpeckerAgentContainer = {
|
||||
autoStart = true;
|
||||
forwardPorts = [
|
||||
];
|
||||
forwardPorts = [ ];
|
||||
bindMounts = {
|
||||
"${woodpeckerEnvSecretPath}" = {
|
||||
hostPath = "${woodpeckerEnvSecretPath}";
|
||||
|
@ -37,12 +31,7 @@
|
|||
isReadOnly = false;
|
||||
};
|
||||
};
|
||||
config = {
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
config = { config, pkgs, lib, ... }: {
|
||||
system.stateVersion = "22.11";
|
||||
users = {
|
||||
mutableUsers = false;
|
||||
|
@ -74,9 +63,7 @@
|
|||
WOODPECKER_LOG_LEVEL = "debug";
|
||||
};
|
||||
serviceConfig = {
|
||||
EnvironmentFile = [
|
||||
woodpeckerEnvSecretPath
|
||||
];
|
||||
EnvironmentFile = [ woodpeckerEnvSecretPath ];
|
||||
ExecStart = "${pkgs.woodpecker-agent}/bin/woodpecker-agent";
|
||||
User = systemUserName;
|
||||
Group = systemGroupName;
|
||||
|
@ -105,33 +92,27 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
sops.secrets."woodpecker-env" =
|
||||
{
|
||||
sops.secrets."woodpecker-env" = {
|
||||
sopsFile = ../vpsfree1/gitea.sops;
|
||||
format = "binary";
|
||||
path = woodpeckerEnvSecretPath;
|
||||
}
|
||||
// secretSettings;
|
||||
} // secretSettings;
|
||||
|
||||
virtualisation.podman = {
|
||||
enable = true;
|
||||
};
|
||||
virtualisation.podman = { enable = true; };
|
||||
systemd.services.woodpecker-make-path = {
|
||||
script = ''
|
||||
mkdir -p ${woodpeckerNixStorePath}
|
||||
chown -R ${systemUserName}:${systemGroupName} ${woodpeckerNixStorePath}
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
};
|
||||
serviceConfig = { Type = "oneshot"; };
|
||||
};
|
||||
|
||||
containers.woodpecker-agent1 = woodpeckerAgentContainer;
|
||||
containers.woodpecker-agent2 = woodpeckerAgentContainer;
|
||||
containers.woodpecker-agent3 = woodpeckerAgentContainer;
|
||||
containers.woodpecker-agent4 = woodpeckerAgentContainer;
|
||||
systemd.services."container@woodpecker-agent1".requires = ["woodpecker-make-path.service"];
|
||||
systemd.services."container@woodpecker-agent2".requires = ["woodpecker-make-path.service"];
|
||||
systemd.services."container@woodpecker-agent3".requires = ["woodpecker-make-path.service"];
|
||||
systemd.services."container@woodpecker-agent4".requires = ["woodpecker-make-path.service"];
|
||||
systemd.services."container@woodpecker-agent1".requires =
|
||||
[ "woodpecker-make-path.service" ];
|
||||
systemd.services."container@woodpecker-agent2".requires =
|
||||
[ "woodpecker-make-path.service" ];
|
||||
}
|
||||
|
|
|
@ -1,12 +1,6 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
discord,
|
||||
inputs,
|
||||
nixpkgs-nixos-stable-and-unfree,
|
||||
nixpkgs-nixos-unstable-and-unfree,
|
||||
...
|
||||
}: let
|
||||
{ config, pkgs, discord, inputs, nixpkgs-nixos-stable-and-unfree
|
||||
, nixpkgs-nixos-unstable-and-unfree, ... }:
|
||||
let
|
||||
unstable = inputs.nixpkgs-nixos-unstable.legacyPackages.${pkgs.system};
|
||||
nixpkgs-master = inputs.nixpkgs-master.legacyPackages.${pkgs.system};
|
||||
in {
|
||||
|
@ -51,6 +45,7 @@ in {
|
|||
gnome-screenshot
|
||||
gparted
|
||||
inkscape
|
||||
krusader
|
||||
libreoffice
|
||||
mindforger
|
||||
modem-manager-gui
|
||||
|
@ -81,9 +76,7 @@ in {
|
|||
yubikey-manager-qt
|
||||
yubikey-personalization
|
||||
yubikey-personalization-gui
|
||||
]
|
||||
++ [unstable.gnucash unstable.thunderbird]
|
||||
++ [
|
||||
] ++ [ unstable.gnucash unstable.thunderbird ] ++ [
|
||||
nixpkgs-nixos-stable-and-unfree.discord
|
||||
nixpkgs-nixos-unstable-and-unfree.hopper
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue