1
0
forked from clan/clan-core

Merge pull request 'format all files' (#4) from format-all into main

Reviewed-on: clan/clan-baseos#4
This commit is contained in:
lassulus 2023-07-12 17:53:14 +00:00
commit 4af5df0da2
7 changed files with 42 additions and 25 deletions

View File

@ -1,11 +1,12 @@
{self, inputs, ...}: {
{
self,
inputs,
...
}: {
imports = [
inputs.treefmt-nix.flakeModule
];
perSystem = {
pkgs,
...
}: {
perSystem = {pkgs, ...}: {
treefmt.projectRootFile = "flake.nix";
treefmt.flakeCheck = true;
treefmt.flakeFormatter = true;

View File

@ -1,6 +1,7 @@
{ self, ... }: {
{self, ...}: {
flake.packages.x86_64-linux = {
inherit (self.nixosConfigurations.installer.config.formats)
inherit
(self.nixosConfigurations.installer.config.formats)
install-iso
;
};

View File

@ -1,4 +1,4 @@
{ self, ... }: {
{self, ...}: {
pre-commit.settings.hooks.alejandra.enable = true;
pre-commit.settings.hooks.shellcheck.enable = true;
}

View File

@ -11,8 +11,13 @@
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } ({ lib, config, self, ... }: {
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} ({
lib,
config,
self,
...
}: {
systems = lib.systems.flakeExposed;
imports = [
./flake-parts/packages.nix

View File

@ -1,5 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}: {
options.hidden-announce = {
enable = lib.mkEnableOption "hidden-announce";
script = lib.mkOption {
@ -17,18 +21,20 @@
enable = true;
relay.onionServices.hidden-ssh = {
version = 3;
map = [{
port = 22;
target.port = 22;
}];
map = [
{
port = 22;
target.port = 22;
}
];
};
client.enable = true;
};
systemd.services.hidden-ssh-announce = {
description = "irc announce hidden ssh";
after = [ "tor.service" "network-online.target" ];
wants = [ "tor.service" ];
wantedBy = [ "multi-user.target" ];
after = ["tor.service" "network-online.target"];
wants = ["tor.service"];
wantedBy = ["multi-user.target"];
serviceConfig = {
# ${pkgs.tor}/bin/torify
ExecStart = pkgs.writers.writeDash "announce-hidden-service" ''

View File

@ -1,5 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}: {
systemd.tmpfiles.rules = [
"d /var/shared 0777 root root - -"
];

View File

@ -1,8 +1,8 @@
{ lib
, buildGoModule
, fetchFromGitHub
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "go-ssb";
version = "0.2.1";
@ -17,7 +17,7 @@ buildGoModule rec {
vendorHash = "sha256-ZytuWFre7Cz6Qt01tLQoPEuNzDIyoC938OkdIrU8nZo=";
ldflags = [ "-s" "-w" ];
ldflags = ["-s" "-w"];
# take very long
doCheck = false;
@ -26,6 +26,6 @@ buildGoModule rec {
description = "Go implementation of ssb (work in progress)";
homepage = "https://github.com/ssbc/go-ssb";
license = licenses.mit;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [];
};
}