Merge branch 'master' of prism.r:stockholm

This commit is contained in:
jeschli 2019-08-06 15:51:38 +02:00
commit 01a431857a
7 changed files with 54 additions and 4 deletions

View File

@ -70,7 +70,8 @@ let
filename = pkgs.writeDash "bier-balance" '' filename = pkgs.writeDash "bier-balance" ''
${pkgs.hledger}/bin/hledger -f $state_file bal -N -O csv \ ${pkgs.hledger}/bin/hledger -f $state_file bal -N -O csv \
| ${pkgs.coreutils}/bin/tail +2 \ | ${pkgs.coreutils}/bin/tail +2 \
| ${pkgs.miller}/bin/mlr --icsv --opprint cat | ${pkgs.miller}/bin/mlr --icsv --opprint cat \
| ${pkgs.gnused}/bin/sed 's/^/the_/'
''; '';
}; };
} }

View File

@ -232,7 +232,12 @@ in {
rose = { rose = {
owner = config.krebs.users.Mic92; owner = config.krebs.users.Mic92;
nets = rec { nets = rec {
internet = {
ip4.addr = "129.215.165.52";
aliases = [ "rose.i" ];
};
retiolum = { retiolum = {
via = internet;
addrs = [ addrs = [
config.krebs.hosts.rose.nets.retiolum.ip4.addr config.krebs.hosts.rose.nets.retiolum.ip4.addr
config.krebs.hosts.rose.nets.retiolum.ip6.addr config.krebs.hosts.rose.nets.retiolum.ip6.addr
@ -260,7 +265,12 @@ in {
martha = { martha = {
owner = config.krebs.users.Mic92; owner = config.krebs.users.Mic92;
nets = rec { nets = rec {
internet = {
ip4.addr = "129.215.165.53";
aliases = [ "martha.i" ];
};
retiolum = { retiolum = {
via = internet;
addrs = [ addrs = [
config.krebs.hosts.martha.nets.retiolum.ip4.addr config.krebs.hosts.martha.nets.retiolum.ip4.addr
config.krebs.hosts.martha.nets.retiolum.ip6.addr config.krebs.hosts.martha.nets.retiolum.ip6.addr
@ -288,7 +298,12 @@ in {
donna = { donna = {
owner = config.krebs.users.Mic92; owner = config.krebs.users.Mic92;
nets = rec { nets = rec {
internet = {
ip4.addr = "129.215.165.54";
aliases = [ "donna.i" ];
};
retiolum = { retiolum = {
via = internet;
addrs = [ addrs = [
config.krebs.hosts.donna.nets.retiolum.ip4.addr config.krebs.hosts.donna.nets.retiolum.ip4.addr
config.krebs.hosts.donna.nets.retiolum.ip6.addr config.krebs.hosts.donna.nets.retiolum.ip6.addr
@ -620,6 +635,13 @@ in {
}; };
}; };
}; };
domsen-backup = {
owner = config.krebs.users.domsen;
ci = false;
external = true;
syncthing.id = "22NLFY5-QMRM3BH-76QIBYI-OPMKVGM-DU4FNZI-3KN2POF-V4WIC6M-2SFFUAC";
nets = {};
};
}; };
users = { users = {
ciko = { ciko = {
@ -665,5 +687,7 @@ in {
filly = { filly = {
}; };
pie_ = {}; pie_ = {};
domsen = {
};
}; };
} }

View File

@ -176,6 +176,7 @@ in
config = mkIf kcfg.enable { config = mkIf kcfg.enable {
systemd.services.syncthing = mkIf (kcfg.cert != null || kcfg.key != null) { systemd.services.syncthing = mkIf (kcfg.cert != null || kcfg.key != null) {
serviceConfig.PermissionsStartOnly = mkDefault true;
preStart = '' preStart = ''
${optionalString (kcfg.cert != null) '' ${optionalString (kcfg.cert != null) ''
cp ${toString kcfg.cert} ${scfg.configDir}/cert.pem cp ${toString kcfg.cert} ${scfg.configDir}/cert.pem

View File

@ -14,6 +14,10 @@ with import <stockholm/lib>;
version = "2.2.0"; version = "2.2.0";
sha256 = "1pb56dgf3jj2kq3cbbppwzyg3ccgqy9xara62hkjwyxzdx20clk1"; sha256 = "1pb56dgf3jj2kq3cbbppwzyg3ccgqy9xara62hkjwyxzdx20clk1";
}; };
"19.09" = {
version = "2.2.0";
sha256 = "1pb56dgf3jj2kq3cbbppwzyg3ccgqy9xara62hkjwyxzdx20clk1";
};
}.${versions.majorMinor version}; }.${versions.majorMinor version};
in mkDerivation { in mkDerivation {

View File

@ -20,6 +20,11 @@ with import <stockholm/lib>;
rev = "refs/tags/v${cfg.version}"; rev = "refs/tags/v${cfg.version}";
sha256 = "11xjivpj495r2ss9aqljnpzzycb57cm4sr7yzmf939rzwsd3ib0x"; sha256 = "11xjivpj495r2ss9aqljnpzzycb57cm4sr7yzmf939rzwsd3ib0x";
}; };
"19.09" = {
version = "0.4.1-tv1";
rev = "refs/tags/v${cfg.version}";
sha256 = "11xjivpj495r2ss9aqljnpzzycb57cm4sr7yzmf939rzwsd3ib0x";
};
}.${versions.majorMinor version}; }.${versions.majorMinor version};
in mkDerivation { in mkDerivation {

View File

@ -1,6 +1,6 @@
{ lib, pkgs, ... }: { lib, pkgs, test, ... }:
{ {
nixpkgs = lib.mkForce { nixpkgs = lib.mkIf (! test) (lib.mkForce {
file = { file = {
path = toString (pkgs.fetchFromGitHub { path = toString (pkgs.fetchFromGitHub {
owner = "nixos"; owner = "nixos";
@ -10,5 +10,5 @@
}); });
useChecksum = true; useChecksum = true;
}; };
}; });
} }

View File

@ -32,4 +32,19 @@
]; ];
lass.screenlock.enable = lib.mkForce false; lass.screenlock.enable = lib.mkForce false;
krebs.syncthing = {
folders = {
the_playlist = {
path = "/home/lass/tmp/the_playlist";
peers = [ "mors" "phone" "prism" "xerxes" ];
};
};
};
krebs.permown = {
"/home/lass/tmp/the_playlist" = {
owner = "lass";
group = "syncthing";
umask = "0007";
};
};
} }