nix/Readme.md

104 lines
4.4 KiB
Markdown
Raw Normal View History

2024-09-12 01:07:07 +03:00
# Dmitry 🌊 NixOS, Home Manager and Nix-on-Droid configurations.
2024-10-13 21:31:44 +03:00
## Please, support tabs in Nix!
[Discussion](https://github.com/NixOS/nix/pull/2911) and [Open issue](https://github.com/NixOS/nix/issues/7834).
2024-10-12 15:22:39 +03:00
2024-05-15 18:30:02 +03:00
## Screenshots.
2024-09-26 02:02:58 +03:00
Newest first.
2024-05-15 22:23:40 +03:00
<details>
2024-09-25 13:38:08 +03:00
<summary>Screenshot 1 + Android</summary>
2024-09-26 02:02:58 +03:00
<img src="https://i.imgur.com/qMolcsw.png" />
<img width=400px src="https://i.imgur.com/i67Rewo.png" />
<img width=400px src="https://i.imgur.com/CaVDQn8.png" />
<br><a href="https://i.imgur.com/OpZzgJZ.png">Wallpaper link</a>
</details>
<details>
<summary>Screenshot 2 + Android</summary>
2024-09-25 13:38:08 +03:00
<img src="https://i.imgur.com/00BTwv7.png" />
<img width=400px src="https://i.imgur.com/51M56xK.png" />
<img width=400px src="https://i.imgur.com/TbW3MGS.png" />
<br><a href="https://i.imgur.com/Q8ZTZCH.png">Wallpaper link</a>
</details>
<details>
2024-09-26 02:02:58 +03:00
<summary>Screenshot 3</summary>
<img src="https://i.imgur.com/LbxpvMt.jpeg" />
<a href="https://i.imgur.com/GA96791.jpeg">Wallpaper link</a>
2024-05-15 22:23:40 +03:00
</details>
2024-05-31 01:37:01 +03:00
<details>
2024-09-25 13:38:08 +03:00
<summary>Screenshot 4</summary>
2024-05-31 01:37:01 +03:00
<img src="https://i.imgur.com/67nW8XT.jpeg" />
<a href="https://i.imgur.com/H943DFl.jpeg">Wallpaper link</a>
</details>
[My current wallpaper](https://git.voronind.com/voronind/nixos/src/branch/main/config/Wallpaper.nix#L2)
2024-05-15 18:30:02 +03:00
Color theming based on wallpaper thanks to [Stylix](https://github.com/danth/stylix).
2024-06-24 03:32:33 +03:00
## Discovering my configuration.
Even tho I've tried to document everything I can in a dum-dum way, I still highly recommend you to learn the [very basics of Nix language](https://nixos.org/guides/nix-pills/). Start from the [Flake](flake.nix) file and follow the comments. If you have any questions, get in touch using [Telegram](https://t.me/voronind_com) or [Email](mailto:hi@voronind.com).
Please tell me if you find any undocumented parts.
## Configuration highlights.
* [Keyd](module/Keyd.nix) allows you to have QMK-like keyboard remaps. Killer-feature is the ability to have remaps per-application. I have pretty common remaps like CapsLock to Ctrl/Esc combo, Right Shift to Backspace, Backspace to Delete and overlays for System/Windows/Media/Application controls as well as Macros.
2024-09-08 04:05:02 +03:00
* NixOS Containers (nspawn). Containers are great. I LOVE containers! Containers! Containers! Containers! Containers! Containers! Containers! Containers! Containers! Containers! Containers! Containers! [Here](host/x86_64-linux/home/Container.nix) is how I add containers to the host, [here](container/default.nix) is the global configuration and [here](container) are all the containers.
* NixOnDroid can be used to set up your environment inside the Termux app on Android. It also gives you access to all the Nixpkgs binaries for Arm. Configuration can be found [here](home/Android.nix), but you also need to add the definition to the root `flake.nix (nixOnDroidConfigurations.default)`. [Here](https://github.com/nix-community/nix-on-droid) are the docs.
* [Stylix](config/Stylix.nix) can be used to change colors for the whole system based on current wallpaper. Example usages: [Sway](home/config/sway/module/Style.nix), [fuzzel](home/config/fuzzel/default.nix) and [Tmux](home/config/tmux/module/Status.nix).
* [Signed auto-updates](module/AutoUpdateSigned.nix). Updates are pulled every hour and require the last commit to be signed with my signature.
2024-06-24 03:32:33 +03:00
2024-06-04 23:21:52 +03:00
## Keyboard layouts.
2024-06-04 23:22:44 +03:00
Yellow are modifier keys, they enable layers when held. Green ones are just modified keys.
2024-06-04 23:21:52 +03:00
<details>
<summary>Default</summary>
<img src="https://i.imgur.com/MBb23eB.png" />
</details>
<details>
<summary>Alternative Keys</summary>
<img src="https://i.imgur.com/X9CGhLb.png" />
</details>
<details>
<summary>Sway keys</summary>
2024-09-19 15:10:31 +03:00
<img src="https://i.imgur.com/hiGZ86w.png" /><br>
2024-06-04 23:21:52 +03:00
</details>
<details>
<summary>Per-application controls</summary>
2024-06-04 23:23:39 +03:00
Firefox:<br>
<img src="https://i.imgur.com/GI0apoV.png" /><br>
Jetbrains:<br>
<img src="https://i.imgur.com/OFNlHnW.png" /><br>
2024-08-26 17:45:58 +03:00
Nautilus:<br>
<img src="https://i.imgur.com/9W1GmLn.png" /><br>
2024-06-04 23:23:39 +03:00
Tmux:<br>
2024-09-01 04:25:51 +03:00
<img src="https://i.imgur.com/GhmwyCO.png" />
2024-06-04 23:21:52 +03:00
</details>
<details>
<summary>Extra numbers</summary>
<img src="https://i.imgur.com/89ERKd9.png" />
2024-06-04 23:21:52 +03:00
</details>
<details>
<summary>Media Controls</summary>
2024-09-08 04:03:00 +03:00
<img src="https://i.imgur.com/HvdSdRP.png" />
2024-06-04 23:21:52 +03:00
</details>
<details>
<summary>System controls</summary>
2024-09-23 02:42:12 +03:00
<img src="https://i.imgur.com/rGC2HXf.png" />
2024-06-04 23:21:52 +03:00
</details>
[Link](http://www.keyboard-layout-editor.com) / [Source](https://github.com/ijprest/keyboard-layout-editor) of the tool I used to draw the images.