This commit is contained in:
cy 2025-03-26 11:53:06 -04:00
parent 57aa110347
commit 225e01d935
Signed by: cy
SSH key fingerprint: SHA256:o/geVWV4om1QhUSkKvDQeW/eAihwnjyXkqMwrVdbuts
3 changed files with 31 additions and 34 deletions

View file

@ -3,7 +3,6 @@ on:
workflow_dispatch: workflow_dispatch:
push: push:
pull_request: pull_request:
env: env:
ATTIC_TOKEN: ${{ secrets.ATTIC_TOKEN }} ATTIC_TOKEN: ${{ secrets.ATTIC_TOKEN }}
NIX_CONFIG: | NIX_CONFIG: |
@ -14,7 +13,6 @@ env:
accept-flake-config = true accept-flake-config = true
system-features = nixos-test benchmark big-parallel kvm system-features = nixos-test benchmark big-parallel kvm
TERM: ansi TERM: ansi
jobs: jobs:
build-machines: build-machines:
strategy: strategy:
@ -38,20 +36,16 @@ jobs:
remove-codeql: 'true' remove-codeql: 'true'
remove-docker-images: 'true' remove-docker-images: 'true'
build-mount-path: /nix build-mount-path: /nix
- name: Install Nix - name: Install Nix
uses: cachix/install-nix-action@v30 uses: cachix/install-nix-action@v30
- name: Sync repository - name: Sync repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
persist-credentials: false persist-credentials: false
- name: setup attic - name: setup attic
run: | run: |
nix profile install github:zhaofengli/attic nix profile install github:zhaofengli/attic
attic login cy7 https://cache.cy7.sh "$ATTIC_TOKEN" attic login cy7 https://cache.cy7.sh "$ATTIC_TOKEN"
- name: build - name: build
run: | run: |
package=".#nixosConfigurations."${{ matrix.machine }}".config.system.build.toplevel" package=".#nixosConfigurations."${{ matrix.machine }}".config.system.build.toplevel"

View file

@ -107,7 +107,7 @@
"vim.enableNeovim" = true; "vim.enableNeovim" = true;
"vim.hlsearch" = true; "vim.hlsearch" = true;
"vim.easymotion" = true; "vim.easymotion" = true;
"editor.lineNumbers" = "relative"; "editor.lineNumbers" = "relative";
"vim.normalModeKeyBindings" = vimCommonKeyBindings ++ [ "vim.normalModeKeyBindings" = vimCommonKeyBindings ++ [
{ {
"before" = [ ";" ]; "before" = [ ";" ];
@ -223,32 +223,32 @@
} }
]; ];
}; };
keybindings = [ keybindings = [
# repeat these vim bindings here cause otherwise they get overridden by vscode # repeat these vim bindings here cause otherwise they get overridden by vscode
{ {
"key" = "ctrl+b"; "key" = "ctrl+b";
"when" = "inputFocus"; "when" = "inputFocus";
"command" = "cursorLeft"; "command" = "cursorLeft";
} }
{ {
"key" = "ctrl+f"; "key" = "ctrl+f";
"when" = "inputFocus"; "when" = "inputFocus";
"command" = "cursorRight"; "command" = "cursorRight";
} }
# clear default bindings that conflict # clear default bindings that conflict
{ {
"key" = "ctrl+f"; "key" = "ctrl+f";
"command" = "-actions.find"; "command" = "-actions.find";
} }
{ {
"key" = "ctrl+b"; "key" = "ctrl+b";
"command" = "-workbench.action.toggleSidebarVisibility"; "command" = "-workbench.action.toggleSidebarVisibility";
} }
{ {
"key" = "ctrl+w"; "key" = "ctrl+w";
"command" = "-workbench.action.closeActiveEditor"; "command" = "-workbench.action.closeActiveEditor";
} }
]; ];
}; };
}; };
} }

View file

@ -18,7 +18,10 @@ in
settings = { settings = {
listen = "[::]:8091"; listen = "[::]:8091";
api-endpoint = "https://cache.cy7.sh/"; api-endpoint = "https://cache.cy7.sh/";
allowed-hosts = [ "cache.cy7.sh" "cdn.cy7.sh" ]; allowed-hosts = [
"cache.cy7.sh"
"cdn.cy7.sh"
];
require-proof-of-possession = false; require-proof-of-possession = false;
compression = { compression = {
type = "none"; type = "none";