this repo has no description

chore: reformat Nix files

hauleth.dev 2ee0eb69 4af901df

verified
+23 -21
flake.nix
···
}: {
formatter = pkgs.alejandra;
-
packages = (pkgs.callPackage ./pkgs {}) // {
-
default = pkgs.writeScriptBin "activate" ''
-
echo ========= System =========
-
${pkgs.lib.getExe self'.packages.system} switch
-
echo
-
echo ========= Home =========
-
${pkgs.lib.getExe self'.packages.home} switch
-
'';
-
-
home = pkgs.writeScriptBin "activate-home" ''
-
${pkgs.lib.getExe inputs'.home-manager.packages.default} --flake "${self}" "$@"
-
'';
+
packages =
+
(pkgs.callPackage ./pkgs {})
+
// {
+
default = pkgs.writeScriptBin "activate" ''
+
echo ========= System =========
+
${pkgs.lib.getExe self'.packages.system} switch
+
echo
+
echo ========= Home =========
+
${pkgs.lib.getExe self'.packages.home} switch
+
'';
-
system = let
-
builder =
-
if pkgs.stdenv.isDarwin
-
then pkgs.lib.getExe' inputs'.darwin.packages.darwin-rebuild "darwin-rebuild"
-
else pkgs.lib.getExe pkgs.nixos-rebuid;
-
in
-
pkgs.writeScriptBin "activate-system" ''
-
${builder} --flake "${self}" "$@"
+
home = pkgs.writeScriptBin "activate-home" ''
+
${pkgs.lib.getExe inputs'.home-manager.packages.default} --flake "${self}" "$@"
'';
-
};
+
+
system = let
+
builder =
+
if pkgs.stdenv.isDarwin
+
then pkgs.lib.getExe' inputs'.darwin.packages.darwin-rebuild "darwin-rebuild"
+
else pkgs.lib.getExe pkgs.nixos-rebuid;
+
in
+
pkgs.writeScriptBin "activate-system" ''
+
${builder} --flake "${self}" "$@"
+
'';
+
};
devShells = let
globalShells = pkgs.callPackage ./dev_shells.nix {
+1 -4
hosts/niuniobook.nix
···
-
{
-
inputs,
-
...
-
}: {
+
{inputs, ...}: {
type = "darwin";
hostname = "NiunioBook";
+1 -1
modules/git.nix
···
cargoHash = "sha256-Qw7ZHLWPgIKqCmjhHwJ4QEz/WQMxrR8eG3tAgAKN7v0=";
buildNoDefaultFeatures = true;
-
buildFeatures = [ "github" ];
+
buildFeatures = ["github"];
# attempts to run the program on .git in src which is not deterministic
doCheck = false;
+2 -2
modules/pijul.nix
···
-
{ pkgs, ... }: {
-
home.packages = [ pkgs.pijul ];
+
{pkgs, ...}: {
+
home.packages = [pkgs.pijul];
}
+7 -3
modules/swiftbar.nix
···
-
{pkgs, lib, ...}: {
+
{
+
pkgs,
+
lib,
+
...
+
}: {
# WIP
options.swiftbar = let
inherit (lib) mkOption types;
···
type = types.string;
example = "1m";
description = ''
-
How often should SwiftBar run script in the background.
+
How often should SwiftBar run script in the background.
'';
};
···
};
};
};
-
}
+
}
+6 -1
modules/tools.nix
···
-
{pkgs, inputs, config, ...}: let
+
{
+
pkgs,
+
inputs,
+
config,
+
...
+
}: let
pkgs-self = inputs.self.packages.${pkgs.stdenv.hostPlatform.system};
in {
home.packages = with pkgs; [
+6 -1
pkgs/default.nix
···
-
{callPackage, entr, ripgrep, writeShellApplication}: {
+
{
+
callPackage,
+
entr,
+
ripgrep,
+
writeShellApplication,
+
}: {
prr = callPackage ./prr.nix {};
imbox = callPackage ./imbox.nix {};
ubin-client = callPackage ./ubin-client.nix {};
+15 -8
pkgs/imbox.nix
···
-
{ libressl, stdenv, fetchgit, lib, pkg-config }: stdenv.mkDerivation (self: {
-
pname = "imbox";
-
version = "1.4";
+
{
+
libressl,
+
stdenv,
+
fetchgit,
+
lib,
+
pkg-config,
+
}:
+
stdenv.mkDerivation (self: {
+
pname = "imbox";
+
version = "1.4";
-
src = fetchgit {
+
src = fetchgit {
url = "https://git.causal.agency/imbox";
rev = self.version;
hash = "sha256-y5GCH3miimOWSCvS+Kh/nOpNrIEpcoc9p8jlQqYuh7Q=";
-
};
+
};
-
nativeBuildInputs = [ pkg-config ];
+
nativeBuildInputs = [pkg-config];
-
buildInputs = [ libressl ];
-
})
+
buildInputs = [libressl];
+
})
+36 -29
pkgs/prr.nix
···
-
{ stdenv, rustPlatform, openssl, darwin, fetchFromGitHub, lib, pkg-config }:
-
+
{
+
stdenv,
+
rustPlatform,
+
openssl,
+
darwin,
+
fetchFromGitHub,
+
lib,
+
pkg-config,
+
}:
rustPlatform.buildRustPackage rec {
-
pname = "prr";
-
version = "0.16.0";
+
pname = "prr";
+
version = "0.16.0";
-
nativeBuildInputs = [
-
pkg-config
-
];
+
nativeBuildInputs = [
+
pkg-config
+
];
-
buildInputs =
-
[
-
openssl
-
]
-
++ lib.optional stdenv.isDarwin (with darwin.apple_sdk; [
-
frameworks.Security
-
frameworks.SystemConfiguration
-
]);
+
buildInputs =
+
[
+
openssl
+
]
+
++ lib.optional stdenv.isDarwin (with darwin.apple_sdk; [
+
frameworks.Security
+
frameworks.SystemConfiguration
+
]);
-
src = fetchFromGitHub {
-
owner = "danobi";
-
repo = pname;
-
rev = "v${version}";
-
hash = lib.fakeHash;
-
};
+
src = fetchFromGitHub {
+
owner = "danobi";
+
repo = pname;
+
rev = "v${version}";
+
hash = lib.fakeHash;
+
};
-
cargoHash = lib.fakeHash;
+
cargoHash = lib.fakeHash;
-
meta = with lib; {
-
description = "Mailing list style code reviews for GitHub";
-
homepage = "https://github.com/danobi/prr";
-
license = licenses.gpl2;
-
maintainers = [];
-
};
-
}
+
meta = with lib; {
+
description = "Mailing list style code reviews for GitHub";
+
homepage = "https://github.com/danobi/prr";
+
license = licenses.gpl2;
+
maintainers = [];
+
};
+
}
+5 -1
pkgs/ubin-client.nix
···
-
{writeShellApplication, curl}: writeShellApplication {
+
{
+
writeShellApplication,
+
curl,
+
}:
+
writeShellApplication {
name = "ubin";
runtimeInputs = [curl];
+1 -4
users/hauleth.nix
···
-
{
-
inputs,
-
...
-
}: {
+
{inputs, ...}: {
username = "hauleth";
home = inputs.home-manager.lib.homeManagerConfiguration {