Compare commits
1 commit
402fe5735e
...
f1bc98713f
Author | SHA1 | Date | |
---|---|---|---|
f1bc98713f |
7 changed files with 68 additions and 37 deletions
|
@ -3,6 +3,7 @@ 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: |
|
||||||
|
@ -13,6 +14,7 @@ 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:
|
||||||
|
@ -36,16 +38,20 @@ 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"
|
||||||
|
|
29
flake.lock
generated
29
flake.lock
generated
|
@ -131,11 +131,11 @@
|
||||||
"rocksdb": "rocksdb"
|
"rocksdb": "rocksdb"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1742567657,
|
"lastModified": 1742266954,
|
||||||
"narHash": "sha256-p513FwDJl1J8fCpUFbAeZTb0ONbEmn2r5kGFBc9siUw=",
|
"narHash": "sha256-PoVjZXR24r1WPyWWK+DZDAlVr4otn/BcxY7/jd8fehM=",
|
||||||
"owner": "girlbossceo",
|
"owner": "girlbossceo",
|
||||||
"repo": "conduwuit",
|
"repo": "conduwuit",
|
||||||
"rev": "33c5afe050491988ee8224af25b9b06e892f4b50",
|
"rev": "7bf92c8a3710eeff229bd86bc81a89daa94b66d5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -868,11 +868,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
"nixpkgs_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1743008566,
|
"lastModified": 1742960832,
|
||||||
"narHash": "sha256-vqiNwWvNcIuHIPu6RC1WScwDHlcGerCZWZ8XOLVu0B0=",
|
"narHash": "sha256-xdp71QH76Q0esAJi4+5xDzpgBQNFpq8xn6UNfyT/s9w=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "f55926cd4adb4db12ca97a86bc4e48e2c213f4d9",
|
"rev": "24693557f72603e8f2c514ee26854d5c2aad9090",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -945,6 +945,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"pixelflasher": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1741302870,
|
||||||
|
"narHash": "sha256-7AywZ1b3PaqolAZ0vQmddD6Br4o0a7ucdtE0/W3rnaM=",
|
||||||
|
"owner": "cything",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "5ef8b274bb7f939104295a22cec3382268ed73cc",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "cything",
|
||||||
|
"ref": "pixelflasher",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"pre-commit-hooks-nix": {
|
"pre-commit-hooks-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": [
|
"flake-compat": [
|
||||||
|
@ -1008,6 +1024,7 @@
|
||||||
"nixpkgs-stable": "nixpkgs-stable_2",
|
"nixpkgs-stable": "nixpkgs-stable_2",
|
||||||
"nixvim": "nixvim",
|
"nixvim": "nixvim",
|
||||||
"nvim-github-theme": "nvim-github-theme",
|
"nvim-github-theme": "nvim-github-theme",
|
||||||
|
"pixelflasher": "pixelflasher",
|
||||||
"rust-overlay": "rust-overlay",
|
"rust-overlay": "rust-overlay",
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
"treefmt": "treefmt",
|
"treefmt": "treefmt",
|
||||||
|
|
|
@ -71,6 +71,7 @@
|
||||||
url = "github:nix-community/nix-index-database";
|
url = "github:nix-community/nix-index-database";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
pixelflasher.url = "github:cything/nixpkgs/pixelflasher";
|
||||||
attic = {
|
attic = {
|
||||||
url = "github:zhaofengli/attic";
|
url = "github:zhaofengli/attic";
|
||||||
inputs = {
|
inputs = {
|
||||||
|
|
|
@ -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";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,10 +18,7 @@ in
|
||||||
settings = {
|
settings = {
|
||||||
listen = "[::]:8091";
|
listen = "[::]:8091";
|
||||||
api-endpoint = "https://cache.cy7.sh/";
|
api-endpoint = "https://cache.cy7.sh/";
|
||||||
allowed-hosts = [
|
allowed-hosts = [ "cache.cy7.sh" "cdn.cy7.sh" ];
|
||||||
"cache.cy7.sh"
|
|
||||||
"cdn.cy7.sh"
|
|
||||||
];
|
|
||||||
require-proof-of-possession = false;
|
require-proof-of-possession = false;
|
||||||
compression = {
|
compression = {
|
||||||
type = "none";
|
type = "none";
|
||||||
|
|
|
@ -11,4 +11,13 @@ index 02e4857..b522154 100644
|
||||||
Download::Url(url) => Ok(Redirect::temporary(&url).into_response()),
|
Download::Url(url) => Ok(Redirect::temporary(&url).into_response()),
|
||||||
Download::AsyncRead(stream) => {
|
Download::AsyncRead(stream) => {
|
||||||
let stream = ReaderStream::new(stream).map_err(|e| {
|
let stream = ReaderStream::new(stream).map_err(|e| {
|
||||||
|
@@ -262,7 +262,7 @@ async fn get_nar(
|
||||||
|
|
||||||
|
// TODO: Make num_prefetch configurable
|
||||||
|
// The ideal size depends on the average chunk size
|
||||||
|
- let merged = merge_chunks(chunks, streamer, storage, 2).map_err(|e| {
|
||||||
|
+ let merged = merge_chunks(chunks, streamer, storage, 8).map_err(|e| {
|
||||||
|
tracing::error!(%e, "Stream error");
|
||||||
|
e
|
||||||
|
});
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@ in
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
conduwuit = pkgFrom inputs.conduwuit "default";
|
conduwuit = pkgFrom inputs.conduwuit "default";
|
||||||
|
pixelflasher = nixpkgsFrom inputs.pixelflasher "pixelflasher";
|
||||||
attic-server = pkgFrom inputs.attic "attic-server";
|
attic-server = pkgFrom inputs.attic "attic-server";
|
||||||
attic = pkgFrom inputs.attic "attic";
|
attic = pkgFrom inputs.attic "attic";
|
||||||
garage = (
|
garage = (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue