Run alejandra

This commit is contained in:
ItsDrike 2024-07-27 01:07:07 +02:00
parent 286920def4
commit c00134da1c
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
152 changed files with 827 additions and 721 deletions

View file

@ -1,6 +1,6 @@
{pkgs, ...}: {
home.sessionVariables = {
DIRENV_LOG_FORMAT="";
DIRENV_LOG_FORMAT = "";
};
programs.direnv = {
enable = true;

View file

@ -11,4 +11,3 @@ in {
programs.fastfetch.enable = true;
};
}

View file

@ -1,9 +1,5 @@
{
pkgs,
...
}: let
scriptPkgs = (import ./bin {inherit pkgs;});
{pkgs, ...}: let
scriptPkgs = import ./bin {inherit pkgs;};
in {
programs.git = {
aliases = {
@ -70,6 +66,8 @@ in {
set-upstream = "!git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`";
fixup-picker = "!git log -n 50 --pretty=format:'%h %s' --no-merges | fzf | cut -c -7 | xargs -o git commit --fixup";
staash = "stash --all";
stash-staged = "!sh -c 'git stash --keep-index; git stash push -m \"staged\" --keep-index; git stash pop stash@{1}'";

View file

@ -1,4 +1,4 @@
{pkgs, ...}:
pkgs.writeShellScriptBin "better-git-branch" ''
${builtins.readFile ./better-git-branch.sh}
''
pkgs.writeShellScriptBin "better-git-branch" ''
${builtins.readFile ./better-git-branch.sh}
''

View file

@ -1,7 +1,4 @@
{
pkgs,
...
}: let
{pkgs, ...}: let
packages = {
better-git-branch = pkgs.callPackage ./better-git-branch {};
};

View file

@ -1,8 +1,10 @@
{ osConfig, pkgs, ... }:
let
myGitConf = osConfig.myOptions.home-manager.git;
in
{
osConfig,
pkgs,
...
}: let
myGitConf = osConfig.myOptions.home-manager.git;
in {
imports = [
./gh.nix
./ignores.nix

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: {
{pkgs, ...}: {
programs.gh = {
enable = true;
gitCredentialHelper.enable = false;

View file

@ -1,4 +1,4 @@
{ config, ... }: {
{config, ...}: {
programs = {
gpg = {
enable = true;

View file

@ -10,7 +10,7 @@
cfg = osConfig.myOptions.home-manager.programs.applications.iamb;
in {
config = mkIf cfg.enable {
home.packages = with pkgs; [ iamb ];
home.packages = with pkgs; [iamb];
xdg.configFile."iamb/config.json".text = builtins.toJSON {
settings = {
@ -33,10 +33,12 @@ in {
};
default_profile = cfg.defaultProfile;
profiles = lib.mapAttrs (name: profile: {
user_id = profile.userId;
url = profile.homeServer;
}) cfg.profiles;
profiles =
lib.mapAttrs (name: profile: {
user_id = profile.userId;
url = profile.homeServer;
})
cfg.profiles;
dirs = {
cache = "${config.xdg.cacheHome}/iamb/";

View file

@ -1,5 +1,9 @@
# Config copied from https://git.notashelf.dev/NotAShelf/nyx
{ pkgs, lib, ... }: let
{
pkgs,
lib,
...
}: let
inherit (lib) getExe;
mpv = "${getExe pkgs.mpv}";
@ -69,5 +73,5 @@ in {
macro v set browser "${mpv} %u" ; open-in-browser ; set browser "firefox %u" -- "Open video on mpv"
macro , open-in-browser
'';
};
};
}

View file

@ -57,4 +57,3 @@
{url = "https://kiszamolo.hu/feed";}
];
}

View file

@ -1,4 +1,4 @@
{ config, ... }: {
{config, ...}: {
programs = {
# nix-index is a file database for nixpkgs
# this provides `nix-locate` command.

View file

@ -1,7 +1,6 @@
{
programs = {
ssh = {
# TODO: Enable this after figuring out how to add protected/encrypted blocks here.
# I don't like the idea of expising IPs/hostnames in the config.
# For now, I just persist the .ssh directory, managing stuff manually.