mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-22 13:24:40 +01:00
microbin n stuff
This commit is contained in:
parent
0ad4595074
commit
78ae5135d5
|
@ -17,6 +17,7 @@
|
||||||
easymacros.url = "git+https://gitlab.com/obsidianical/easymacros.git";
|
easymacros.url = "git+https://gitlab.com/obsidianical/easymacros.git";
|
||||||
meowsite.url = "git+https://gitlab.com/obsidianical/meowsite.git";
|
meowsite.url = "git+https://gitlab.com/obsidianical/meowsite.git";
|
||||||
wordsofgod.url = "git+https://gitlab.com/obsidianical/wordsofgod.git";
|
wordsofgod.url = "git+https://gitlab.com/obsidianical/wordsofgod.git";
|
||||||
|
microbin-fork.url = "git+https://gitlab.com/obsidianical/microbin.git";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, nixpkgs-stable, home-manager, nixos-hardware, mac-brcm-fw, ... }@inputs: {
|
outputs = { self, nixpkgs, nixpkgs-stable, home-manager, nixos-hardware, mac-brcm-fw, ... }@inputs: {
|
||||||
|
|
|
@ -1,25 +1,11 @@
|
||||||
{ inputs, config, pkgs, ... }:
|
{ inputs, config, pkgs, ... }:
|
||||||
let
|
{
|
||||||
microbin = pkgs.rustPlatform.buildRustPackage rec {
|
environment.systemPackages = [ inputs.microbin-fork.defaultPackage."x86_64-linux" ];
|
||||||
pname = "microbin";
|
|
||||||
version = "1.2.0";
|
|
||||||
|
|
||||||
# GitHub sources do not have Cargo.lock
|
|
||||||
src = pkgs.fetchCrate {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "sha256-dZClslUTUchx+sOJzFG8wiAgyW/0RcCKfKYklKfVrzM=";
|
|
||||||
};
|
|
||||||
|
|
||||||
cargoSha256 = "sha256-fBbChu5iy/2H/8IYCwd1OwxplGPZAmkd8z8xD7Uc0vo=";
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
environment.systemPackages = with pkgs; [ microbin ];
|
|
||||||
systemd.services.microbin = {
|
systemd.services.microbin = {
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
environment = {
|
environment = {
|
||||||
MICROBIN_AUTH_USERNAME = "jade";
|
#MICROBIN_AUTH_USERNAME = "jade";
|
||||||
MICROBIN_AUTH_PASSWORD = builtins.readFile ../secret-data/mb-pass;
|
|
||||||
MICROBIN_HASH_IDS = "";
|
MICROBIN_HASH_IDS = "";
|
||||||
MICROBIN_EDITABLE = "";
|
MICROBIN_EDITABLE = "";
|
||||||
MICROBIN_PRIVATE = "";
|
MICROBIN_PRIVATE = "";
|
||||||
|
@ -27,7 +13,7 @@ in {
|
||||||
MICROBIN_PUBLIC_PATH = "https://s10e.de";
|
MICROBIN_PUBLIC_PATH = "https://s10e.de";
|
||||||
MICROBIN_QR = "";
|
MICROBIN_QR = "";
|
||||||
};
|
};
|
||||||
script = "${pkgs.microbin}/bin/microbin";
|
script = "${inputs.microbin-fork.defaultPackage."x86_64-linux"}/bin/microbin";
|
||||||
#scriptArgs = "--auth-password ${builtins.readFile ../secret-data/mb-pass} --auth-username jade --editable --hash-ids --no-listing --highlightsyntax --public-path https://s10e.de --qr";
|
#scriptArgs = "--auth-password ${builtins.readFile ../secret-data/mb-pass} --auth-username jade --editable --hash-ids --no-listing --highlightsyntax --public-path https://s10e.de --qr";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
};
|
};
|
||||||
"wolke.schrottkatze.de" = {
|
"wolke.schrottkatze.de" = {
|
||||||
group = "nginx";
|
group = "nginx";
|
||||||
keyType = "rsa2048";
|
keyType = "rsa2047";
|
||||||
};
|
};
|
||||||
"s10e.de" = {
|
"s10e.de" = {
|
||||||
group = "nginx";
|
group = "nginx";
|
||||||
|
|
Loading…
Reference in a new issue