Add precommit and run on all

This commit is contained in:
2024-02-27 22:48:45 +01:00
parent 0be3e6f634
commit 602337bd37
8 changed files with 28 additions and 14 deletions

View File

@@ -25,7 +25,7 @@
};
home.packages = with pkgs; [
# nix stuff
nixpkgs-fmt
nixpkgs-fmt
nil
statix
];

View File

@@ -76,13 +76,15 @@
"$mainMod,l,movewindow,r"
"$mainMod,k,movewindow,u"
"$mainMod,j,movewindow,d"
] ++ (builtins.concatLists (builtins.genList (x:
let
ws = let c = (x + 1) / 10; in builtins.toString (x + 1 - (c * 10));
in [
"$mainMod, ${ws}, workspace, ${toString (x + 1)}"
"ALT, ${ws}, workspace, ${toString (x + 1)}"
]) 10));
] ++ (builtins.concatLists (builtins.genList
(x:
let
ws = let c = (x + 1) / 10; in builtins.toString (x + 1 - (c * 10));
in
[
"$mainMod, ${ws}, workspace, ${toString (x + 1)}"
"ALT, ${ws}, workspace, ${toString (x + 1)}"
]) 10));
exec-once = [ "waybar &" ];
};
};

View File

@@ -10,7 +10,7 @@
ncdu
pamixer
pinentry
pre-commit
pre-commit
pulsemixer
rbw
restic
@@ -32,5 +32,8 @@
python3
poetry
ruff
# Rust
rustup
];
}

View File

@@ -11,4 +11,3 @@ in {
};
};
}