Add precommit and run on all
This commit is contained in:
parent
0be3e6f634
commit
602337bd37
12
.pre-commit-config.yaml
Normal file
12
.pre-commit-config.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v3.2.0
|
||||||
|
hooks:
|
||||||
|
- id: trailing-whitespace
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: check-yaml
|
||||||
|
- id: check-added-large-files
|
||||||
|
- repo: https://github.com/nix-community/nixpkgs-fmt
|
||||||
|
rev: v1.3.0
|
||||||
|
hooks:
|
||||||
|
- id: nixpkgs-fmt
|
@ -13,7 +13,8 @@
|
|||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
user = "torjus";
|
user = "torjus";
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
nixosConfigurations.prismo = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.prismo = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = { inherit inputs self user; };
|
specialArgs = { inherit inputs self user; };
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
};
|
};
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# nix stuff
|
# nix stuff
|
||||||
nixpkgs-fmt
|
nixpkgs-fmt
|
||||||
nil
|
nil
|
||||||
statix
|
statix
|
||||||
];
|
];
|
||||||
|
@ -76,13 +76,15 @@
|
|||||||
"$mainMod,l,movewindow,r"
|
"$mainMod,l,movewindow,r"
|
||||||
"$mainMod,k,movewindow,u"
|
"$mainMod,k,movewindow,u"
|
||||||
"$mainMod,j,movewindow,d"
|
"$mainMod,j,movewindow,d"
|
||||||
] ++ (builtins.concatLists (builtins.genList (x:
|
] ++ (builtins.concatLists (builtins.genList
|
||||||
let
|
(x:
|
||||||
ws = let c = (x + 1) / 10; in builtins.toString (x + 1 - (c * 10));
|
let
|
||||||
in [
|
ws = let c = (x + 1) / 10; in builtins.toString (x + 1 - (c * 10));
|
||||||
"$mainMod, ${ws}, workspace, ${toString (x + 1)}"
|
in
|
||||||
"ALT, ${ws}, workspace, ${toString (x + 1)}"
|
[
|
||||||
]) 10));
|
"$mainMod, ${ws}, workspace, ${toString (x + 1)}"
|
||||||
|
"ALT, ${ws}, workspace, ${toString (x + 1)}"
|
||||||
|
]) 10));
|
||||||
exec-once = [ "waybar &" ];
|
exec-once = [ "waybar &" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
ncdu
|
ncdu
|
||||||
pamixer
|
pamixer
|
||||||
pinentry
|
pinentry
|
||||||
pre-commit
|
pre-commit
|
||||||
pulsemixer
|
pulsemixer
|
||||||
rbw
|
rbw
|
||||||
restic
|
restic
|
||||||
@ -32,5 +32,8 @@
|
|||||||
python3
|
python3
|
||||||
poetry
|
poetry
|
||||||
ruff
|
ruff
|
||||||
|
|
||||||
|
# Rust
|
||||||
|
rustup
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -11,4 +11,3 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,4 +54,3 @@
|
|||||||
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
|
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
|
||||||
system.stateVersion = "23.11"; # Did you read the comment?
|
system.stateVersion = "23.11"; # Did you read the comment?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user