fmt: fix fmt \o/
also add deadnix checks
This commit is contained in:
parent
e8ea0e7f7b
commit
5f9bde625b
@ -1,6 +1,5 @@
|
||||
{ pkgs, lib, isUnstable, ... }:
|
||||
let
|
||||
oathPkg = pkgs.oath-toolkit or pkgs.oathToolkit;
|
||||
ix = pkgs.writeScriptBin "ix" (import ./ix.nix { inherit (pkgs) perl; });
|
||||
rage = pkgs.writeScriptBin "rage" (import ./rage.nix { inherit pkgs; });
|
||||
sfetch = pkgs.writeScriptBin "sfetch"
|
||||
|
26
flake.nix
26
flake.nix
@ -87,6 +87,7 @@
|
||||
( . ./common.sh; start ) || true;
|
||||
'';
|
||||
nativeBuildInputs = with pkgs; [
|
||||
deadnix
|
||||
git
|
||||
go
|
||||
jq
|
||||
@ -175,11 +176,26 @@
|
||||
packages = forAllSystems (system:
|
||||
let pkgs = nixpkgsFor.${system};
|
||||
in {
|
||||
gqrss = pkgs.callPackage ./pkgs/gqrss.nix { inherit pkgs; isUnstable = true; };
|
||||
icbirc = pkgs.callPackage ./pkgs/icbirc.nix { inherit pkgs; isUnstable = true; };
|
||||
mcchunkie = pkgs.callPackage ./pkgs/mcchunkie.nix { inherit pkgs; isUnstable = true; };
|
||||
yarr = pkgs.callPackage ./pkgs/yarr.nix { inherit pkgs; isUnstable = true; };
|
||||
zutty = pkgs.callPackage ./pkgs/zutty.nix { inherit pkgs; isUnstable = true; };
|
||||
gqrss = pkgs.callPackage ./pkgs/gqrss.nix {
|
||||
inherit pkgs;
|
||||
isUnstable = true;
|
||||
};
|
||||
icbirc = pkgs.callPackage ./pkgs/icbirc.nix {
|
||||
inherit pkgs;
|
||||
isUnstable = true;
|
||||
};
|
||||
mcchunkie = pkgs.callPackage ./pkgs/mcchunkie.nix {
|
||||
inherit pkgs;
|
||||
isUnstable = true;
|
||||
};
|
||||
yarr = pkgs.callPackage ./pkgs/yarr.nix {
|
||||
inherit pkgs;
|
||||
isUnstable = true;
|
||||
};
|
||||
zutty = pkgs.callPackage ./pkgs/zutty.nix {
|
||||
inherit pkgs;
|
||||
isUnstable = true;
|
||||
};
|
||||
});
|
||||
|
||||
templates."ada" = {
|
||||
|
3
fmt
3
fmt
@ -1,7 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
find . -name \*.nix -exec nix fmt {} \+
|
||||
find . -name \*.sh -exec shfmt -w {} \+
|
||||
find . -name \*.nix -exec deadnix -f -l -L {} \+
|
||||
shfmt -w deploy
|
||||
shfmt -w mkboot
|
||||
statix check .
|
||||
|
@ -165,9 +165,7 @@ in {
|
||||
};
|
||||
|
||||
services = {
|
||||
yarr = {
|
||||
enable = true;
|
||||
};
|
||||
yarr = { enable = true; };
|
||||
gotosocial = {
|
||||
enable = true;
|
||||
# https://github.com/superseriousbusiness/gotosocial/blob/v0.5.0-rc1/example/config.yaml
|
||||
|
@ -1,12 +1,5 @@
|
||||
{ config, pkgs, emacs, isUnstable, ... }:
|
||||
let
|
||||
pubKeys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFbj3DNho0T/SLcuKPzxT2/r8QNdEQ/ms6tRiX6YraJk root@tal.tapenet.org"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIPMaAm4rDxyU975Z54YiNw3itC2fGc3SaE2VaS1fai8 root@box"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIITjFpmWZVWixv2i9902R+g5B8umVhaqmjYEKs2nF3Lu qbit@tal.tapenet.org"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILnaC1v+VoVNnK04D32H+euiCyWPXU8nX6w+4UoFfjA3 qbit@plq"
|
||||
];
|
||||
userBase = { openssh.authorizedKeys.keys = pubKeys; };
|
||||
secretAgent =
|
||||
"Contents/Library/LoginItems/SecretAgent.app/Contents/MacOS/SecretAgent";
|
||||
in {
|
||||
|
@ -1,5 +1,2 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
with lib; {
|
||||
imports = [ ./ssh-fido-agent.nix ];
|
||||
}
|
||||
{ config, lib, pkgs, ... }: with lib; { imports = [ ./ssh-fido-agent.nix ]; }
|
||||
|
||||
|
@ -3,6 +3,8 @@ with pkgs;
|
||||
let
|
||||
cfg = config.services.gotosocial;
|
||||
gotosocial = callPackage ../pkgs/gotosocial.nix { };
|
||||
settingsFormat = pkgs.formats.json { };
|
||||
settingsType = settingsFormat.type;
|
||||
prettyJSON = conf:
|
||||
pkgs.runCommandLocal "gotosocial-config.json" { } ''
|
||||
echo '${
|
||||
@ -31,7 +33,7 @@ in {
|
||||
};
|
||||
|
||||
configuration = mkOption {
|
||||
type = (pkgs.formats.json { }).type;
|
||||
inherit settingsType;
|
||||
description = ''
|
||||
Specify the configuration for GoToSocial in Nix.
|
||||
'';
|
||||
|
@ -91,8 +91,9 @@ in {
|
||||
User = cfg.user;
|
||||
Group = cfg.group;
|
||||
|
||||
ExecStart = ''
|
||||
${cfg.package}/bin/yarr -addr ${cfg.address}:${toString cfg.port} -db ${cfg.dbPath} -auth-file ${cfg.authFilePath}'';
|
||||
ExecStart = "${cfg.package}/bin/yarr -addr ${cfg.address}:${
|
||||
toString cfg.port
|
||||
} -db ${cfg.dbPath} -auth-file ${cfg.authFilePath}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -1,4 +1 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
with lib; {
|
||||
imports = [ ./config-manager.nix ];
|
||||
}
|
||||
{ config, lib, pkgs, ... }: with lib; { imports = [ ./config-manager.nix ]; }
|
||||
|
Loading…
Reference in New Issue
Block a user