ci: run
This commit is contained in:
parent
25b821a4fd
commit
f871626e0a
6 changed files with 78 additions and 1 deletions
53
.github/workflows/quality.yaml
vendored
Normal file
53
.github/workflows/quality.yaml
vendored
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
name: quality
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
changes:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
nix: ${{ steps.changes.outputs.nix }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dorny/paths-filter@v3
|
||||
id: changes
|
||||
with:
|
||||
filters: |
|
||||
nix:
|
||||
- '**/*.nix'
|
||||
- 'flake.lock'
|
||||
- 'flake.nix'
|
||||
|
||||
nix-format:
|
||||
name: Nix Format Check
|
||||
runs-on: ubuntu-latest
|
||||
needs: changes
|
||||
if: ${{ needs.changes.outputs.nix == 'true' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: cachix/install-nix-action@v31
|
||||
- run: nix fmt -- --ci
|
||||
|
||||
deadnix:
|
||||
name: Deadnix Check
|
||||
runs-on: ubuntu-latest
|
||||
needs: changes
|
||||
if: ${{ needs.changes.outputs.nix == 'true' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: cachix/install-nix-action@v31
|
||||
- run: nix develop --command deadnix --fail .
|
||||
|
||||
statix:
|
||||
name: Statix Check
|
||||
runs-on: ubuntu-latest
|
||||
needs: changes
|
||||
if: ${{ needs.changes.outputs.nix == 'true' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: cachix/install-nix-action@v31
|
||||
- run: nix develop --command statix check .
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
|||
result
|
||||
.direnv/
|
||||
.envrc
|
||||
fonts/
|
||||
|
|
|
|||
9
.pre-commit-config.yaml
Normal file
9
.pre-commit-config.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
repos:
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: nixfmt
|
||||
name: nixfmt
|
||||
entry: nix fmt -- --fail-on-change
|
||||
language: system
|
||||
files: \.nix$
|
||||
pass_filenames: false
|
||||
|
|
@ -54,6 +54,7 @@ unbind ?; bind ? if -F '#{pane_in_mode}' { send-keys -X cancel } { copy-mode ; c
|
|||
|
||||
bind -T copy-mode-vi v send-keys -X begin-selection
|
||||
bind -T copy-mode-vi y send-keys -X copy-pipe 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c'
|
||||
# TODO: breaks all the time
|
||||
bind -n DoubleClick1Pane select-pane \; copy-mode -M \; send-keys -X select-word \; run-shell -d 0.3 \; send-keys -X copy-pipe-and-cancel 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c'
|
||||
bind -n TripleClick1Pane select-pane \; copy-mode -M \; send-keys -X select-line \; run-shell -d 0.3 \; send-keys -X copy-pipe-and-cancel 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c'
|
||||
bind -T copy-mode-vi DoubleClick1Pane select-pane \; send-keys -X select-word \; run-shell -d 0.3 \; send-keys -X copy-pipe 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c' \; send-keys -X clear-selection
|
||||
|
|
|
|||
13
flake.nix
13
flake.nix
|
|
@ -96,6 +96,19 @@
|
|||
{
|
||||
formatter.x86_64-linux = (mkPkgs "x86_64-linux" [ ]).nixfmt-tree;
|
||||
|
||||
devShells.x86_64-linux.default =
|
||||
let
|
||||
pkgs = mkPkgs "x86_64-linux" [ ];
|
||||
in
|
||||
pkgs.mkShell {
|
||||
packages = [
|
||||
pkgs.deadnix
|
||||
pkgs.statix
|
||||
pkgs.nixfmt
|
||||
pkgs.pre-commit
|
||||
];
|
||||
};
|
||||
|
||||
nixosConfigurations.xps15 = nixpkgs.lib.nixosSystem {
|
||||
modules = [
|
||||
nixos-hardware.nixosModules.dell-xps-15-9500-nvidia
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ in
|
|||
interval = 1;
|
||||
signal = 1;
|
||||
on-click = "ctl audio sink";
|
||||
on-click-right = "pgrep -f 'waybar.*slider' && pkill -f 'waybar.*slider' || (waybar -c ${config.xdg.configHome}/waybar/slider.json &)";
|
||||
on-click-right = "pgrep -f 'waybar.*slider' && pkill -f 'waybar.*slider' || hyprctl dispatch exec 'waybar -c ${config.xdg.configHome}/waybar/slider.json'";
|
||||
on-click-middle = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; pkill -RTMIN+1 waybar";
|
||||
on-scroll-up = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ --limit 1.0; pkill -RTMIN+1 waybar";
|
||||
on-scroll-down = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-; pkill -RTMIN+1 waybar";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue