-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 06dedf5
Showing
69 changed files
with
5,932 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# build output | ||
dist/ | ||
# generated types | ||
.astro/ | ||
|
||
# dependencies | ||
node_modules/ | ||
|
||
# logs | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
|
||
|
||
# environment variables | ||
.env | ||
.env.production | ||
|
||
# macOS-specific files | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"recommendations": ["astro-build.astro-vscode"], | ||
"unwantedRecommendations": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"command": "./node_modules/.bin/astro dev", | ||
"name": "Development server", | ||
"request": "launch", | ||
"type": "node-terminal" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Starlight Starter Kit: Basics | ||
|
||
``` | ||
npm create astro@latest -- --template starlight | ||
``` | ||
|
||
[](https://stackblitz.com/github/withastro/starlight/tree/main/examples/basics) | ||
[](https://codesandbox.io/p/sandbox/github/withastro/starlight/tree/main/examples/basics) | ||
|
||
> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun! | ||
## 🚀 Project Structure | ||
|
||
Inside of your Astro + Starlight project, you'll see the following folders and files: | ||
|
||
``` | ||
. | ||
├── public/ | ||
├── src/ | ||
│ ├── assets/ | ||
│ ├── content/ | ||
│ │ ├── docs/ | ||
│ │ └── config.ts | ||
│ └── env.d.ts | ||
├── astro.config.mjs | ||
├── package.json | ||
└── tsconfig.json | ||
``` | ||
|
||
Starlight looks for `.md` or `.mdx` files in the `src/content/docs/` directory. Each file is exposed as a route based on its file name. | ||
|
||
Images can be added to `src/assets/` and embedded in Markdown with a relative link. | ||
|
||
Static assets, like favicons, can be placed in the `public/` directory. | ||
|
||
## 🧞 Commands | ||
|
||
All commands are run from the root of the project, from a terminal: | ||
|
||
| Command | Action | | ||
| :------------------------ | :----------------------------------------------- | | ||
| `npm install` | Installs dependencies | | ||
| `npm run dev` | Starts local dev server at `localhost:3000` | | ||
| `npm run build` | Build your production site to `./dist/` | | ||
| `npm run preview` | Preview your build locally, before deploying | | ||
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` | | ||
| `npm run astro -- --help` | Get help using the Astro CLI | | ||
|
||
## 👀 Want to learn more? | ||
|
||
Check out [Starlight’s docs](https://starlight.astro.build/), read [the Astro documentation](https://docs.astro.build), or jump into the [Astro Discord server](https://astro.build/chat). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
import { defineConfig } from 'astro/config'; | ||
import starlight from '@astrojs/starlight'; | ||
|
||
|
||
export const locales = { | ||
root: { label: 'English', lang: 'en' }, | ||
ru: { label: 'Русский', lang: 'ru' }, | ||
}; | ||
|
||
const site = 'https://wiki.cachyos.org/'; | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
site, | ||
integrations: [ | ||
starlight({ | ||
title: 'CachyOS', | ||
logo: { | ||
src: '/src/assets/logo.svg', | ||
}, | ||
editLink: { | ||
baseUrl: 'https://github.com/cachyos/wiki/edit/next/src/content/docs/', | ||
}, | ||
social: { | ||
github: 'https://github.com/cachyos', | ||
twitter: 'https://twitter.com/cachyos', | ||
telegram: 'https://t.me/+oR-kWT47vRdmMDli', | ||
discord: 'https://discord.gg/qJqj94uFwE', | ||
reddit: 'https://www.reddit.com/r/cachyos', | ||
patreon: 'https://www.patreon.com/CachyOS', | ||
}, | ||
head: [ | ||
{ | ||
tag: 'script', | ||
attrs: { | ||
src: 'https://cdn.usefathom.com/script.js', | ||
'data-site': 'EZBHTSIG', | ||
defer: true, | ||
}, | ||
}, | ||
{ | ||
tag: 'meta', | ||
attrs: { property: 'og:image', content: site + 'og.jpg?v=1' }, | ||
}, | ||
{ | ||
tag: 'meta', | ||
attrs: { property: 'twitter:image', content: site + 'og.jpg?v=1' }, | ||
}, | ||
], | ||
locales, | ||
sidebar: [ | ||
{ | ||
label: 'Start Here', | ||
translations: { | ||
ru: 'Начни здесь', | ||
}, | ||
items: [ | ||
{ | ||
label: 'CachyOS Kernels', | ||
translations: { | ||
ru: 'Ядра CachyOS', | ||
}, | ||
link: 'cachyos-kernels', | ||
}, | ||
{ | ||
label: 'Kernel Manager', | ||
translations: { | ||
ru: 'Менеджер Ядра', | ||
}, | ||
link: 'kernel-manager', | ||
}, | ||
{ | ||
label: 'Repository', | ||
translations: { | ||
ru: 'Репозиторий', | ||
}, | ||
link: 'repo', | ||
}, | ||
{ | ||
label: 'ZFS Installation', | ||
translations: { | ||
ru: 'Установка ZFS', | ||
}, | ||
link: 'cachyos-zfs', | ||
}, | ||
{ | ||
label: 'Laptops GPU setup', | ||
translations: { | ||
ru: 'Настройка GPU ноутбука', | ||
}, | ||
link: 'notebooks', | ||
}, | ||
{ | ||
label: 'Showcase', | ||
translations: { | ||
ru: 'Изображения', | ||
}, | ||
link: 'screenshots', | ||
}, | ||
], | ||
}, | ||
{ | ||
label: 'How to Install CachyOS?', | ||
translations: { | ||
ru: 'Как установить CachyOS?', | ||
}, | ||
autogenerate: { directory: 'how_to_install' }, | ||
}, | ||
{ | ||
label: 'First steps', | ||
translations: { | ||
ru: 'Первые шаги', | ||
}, | ||
autogenerate: { directory: 'first_steps' }, | ||
}, | ||
{ | ||
label: 'General Information', | ||
translations: { | ||
ru: 'Основная информация', | ||
}, | ||
autogenerate: { directory: 'general_info' }, | ||
}, | ||
{ | ||
label: 'Download', | ||
translations: { | ||
ru: 'Загрузить', | ||
}, | ||
autogenerate: { directory: 'download' }, | ||
}, | ||
{ | ||
label: 'Changelog', | ||
translations: { | ||
ru: 'Журнал изменений', | ||
}, | ||
autogenerate: { directory: 'changelog' }, | ||
}, | ||
], | ||
}), | ||
], | ||
|
||
// Process images with sharp: https://docs.astro.build/en/guides/assets/#using-sharp | ||
image: { service: { entrypoint: 'astro/assets/services/sharp' } }, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "cachyos-starlight", | ||
"type": "module", | ||
"version": "0.0.1", | ||
"scripts": { | ||
"dev": "astro dev", | ||
"start": "astro dev", | ||
"build": "astro build", | ||
"preview": "astro preview", | ||
"astro": "astro" | ||
}, | ||
"dependencies": { | ||
"@astrojs/starlight": "^0.2.0", | ||
"astro": "^2.5.0", | ||
"sharp": "^0.32.1" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { defineCollection } from 'astro:content'; | ||
import { docsSchema, i18nSchema } from '@astrojs/starlight/schema'; | ||
|
||
export const collections = { | ||
docs: defineCollection({ schema: docsSchema() }), | ||
i18n: defineCollection({ type: 'data', schema: i18nSchema() }), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
title: CachyOS-settings | ||
description: CachyOS sysctl, udev, systemd configs, modprobe rules and more | ||
published: 1 | ||
date: 2022-10-23T13:32:34.763Z | ||
tags: cachy, cachyos | ||
editor: markdown | ||
dateCreated: 2022-08-06T21:30:59.973Z | ||
--- | ||
|
||
# CachyOS Settings | ||
## sysctl.d rules | ||
### vm.swappiness | ||
The swappiness sysctl parameter represents the kernel's preference (or avoidance) of swap space. Swappiness can have a value between 0 and 100, the default value is 60. | ||
|
||
A low value causes the kernel to avoid swapping, a higher value causes the kernel to try to use swap space. Using a low value on sufficient memory is known to improve responsiveness on many systems. | ||
|
||
This value is automatically calculated using your ram amount | ||
|
||
### vm.vfs_cache_pressure | ||
The value controls the tendency of the kernel to reclaim the memory which is used for caching of directory and inode objects (VFS cache). | ||
|
||
Lowering it from the default value of 100 makes the kernel less inclined to reclaim VFS cache (do not set it to 0, this may produce out-of-memory conditions) | ||
|
||
This value is automatically calculated using your ram amount | ||
|
||
### vm.page-cluster | ||
page-cluster controls the number of pages up to which consecutive pages are read in from swap in a single attempt. This is the swap counterpart to page cache readahead. The mentioned consecutivity is not in terms of virtual/physical addresses, but consecutive on swap space - that means they were swapped out together. | ||
|
||
It is a logarithmic value - setting it to zero means “1 page”, setting it to 1 means “2 pages”, setting it to 2 means “4 pages”, etc. Zero disables swap readahead completely. | ||
|
||
The default value is three (eight pages at a time). There may be some small benefits in tuning this to a different value if your workload is swap-intensive. | ||
|
||
Lower values mean lower latencies for initial faults, but at the same time extra faults and I/O delays for following faults if they would have been part of that consecutive pages readahead would have brought in. | ||
|
||
### vm.dirty_ratio | ||
Contains, as a percentage of total available memory that contains free pages and reclaimable pages, the number of pages at which a process which is generating disk writes will itself start writing out dirty data (Default is 20). | ||
|
||
### vm.dirty_background_ratio | ||
Contains, as a percentage of total available memory that contains free pages and reclaimable pages, the number of pages at which the background kernel flusher threads will start writing out dirty data (Default is 10). | ||
|
||
### Network tweaks | ||
The BBR congestion control algorithm can help achieve higher bandwidths and lower latencies for internet traffic | ||
|
||
TCP Fast Open is an extension to the transmission control protocol (TCP) that helps reduce network latency by enabling data to be exchanged during the sender’s initial TCP SYN. Using the value 3 instead of the default 1 allows TCP Fast Open for both incoming and outgoing connections | ||
|
||
### kernel.nmi_watchdog | ||
Disabling NMI watchdog will speed up your boot and shutdown, because one less module is loaded. Additionally disabling watchdog timers increases performance and lowers power consumption |
Oops, something went wrong.