README update and minor fixes

This commit is contained in:
foglar 2024-12-28 14:57:04 +01:00
parent 79291ca5b5
commit 552125ea17
2 changed files with 13 additions and 14 deletions

View File

@ -37,10 +37,6 @@ sudo nixos-rebuild switch --flake ~/.dotfiles#kogami
- The system consists currently from 2 profiles: - The system consists currently from 2 profiles:
- [Kogami](./kogami/configuration.nix) - My daily driver notebook - [Kogami](./kogami/configuration.nix) - My daily driver notebook
- [Ginoza](./ginoza/configuration.nix) - Old notebook, only essentials installed - [Ginoza](./ginoza/configuration.nix) - Old notebook, only essentials installed
- Nix-On-Droid - in future
- Nix on not nix-distro - in future
- Nix server - in future
- Nix in WSL - in future
### Custom setup ### Custom setup
@ -50,6 +46,7 @@ sudo nixos-rebuild switch --flake ~/.dotfiles#kogami
- for system packages in [packages.nix](./nixos/system/packages.nix) - for system packages in [packages.nix](./nixos/system/packages.nix)
- for home-manager or user configuration in [home.nix](./nixos/home/packages/packages.nix) - for home-manager or user configuration in [home.nix](./nixos/home/packages/packages.nix)
- Many options are by default set to true, so you should disable them in your own configuration - Many options are by default set to true, so you should disable them in your own configuration
> [!IMPORTANT] > [!IMPORTANT]
> Don't forget to edit your username in [flake.nix](./flake.nix) and other settings like preffered shell and browser etc... > Don't forget to edit your username in [flake.nix](./flake.nix) and other settings like preffered shell and browser etc...
@ -74,13 +71,15 @@ sudo nixos-rebuild switch --flake ~/.dotfiles#kogami
> [!TIP] > [!TIP]
> Whole system is very configurable and customizable. > Whole system is very configurable and customizable.
> You can change default applications right in [flake.nix](./flake.nix) under userSettings > You can change default applications right in [flake.nix](./flake.nix) under userSettings.
> You can change your default system from Hyprland to GNOME or KDE, or maybe have all of them at the same time
- you can change your default system from Hyprland to GNOME or KDE, or maybe have all of them at the same time - To explore what you can configure look into [packages](./nixos/home/packages/) for home-manager options, or into [system](./nixos/system/) for system configuration and packages
- In directory [apps](./nixos/home/apps/) are application lists, that can be installed, think of them as lists of applications
### Secure Operations ### Secure Operations
- private key for sops is in **~/.config/sops/ags/keys.txt** - Private key for sops is in **~/.config/sops/ags/keys.txt**
- Generate your key using this command: - Generate your key using this command:
@ -88,8 +87,8 @@ sudo nixos-rebuild switch --flake ~/.dotfiles#kogami
nix-shell nixpkgs#age -c age-keygen -o ~/.config/sops/age/keys.txt nix-shell nixpkgs#age -c age-keygen -o ~/.config/sops/age/keys.txt
``` ```
- secrets are managed in yaml file [secrets.yaml](./nixos/system/packages/sops/secrets/secrets.yaml) - Secrets are managed in yaml file [secrets.yaml](./nixos/system/packages/sops/secrets/secrets.yaml)
- things that are actually managed in sops configuration: - Things that are actually managed in sops configuration:
- SSH keys - SSH keys
- Passwords - Passwords
- Yubikey ID - Yubikey ID
@ -97,12 +96,12 @@ nix-shell nixpkgs#age -c age-keygen -o ~/.config/sops/age/keys.txt
> [!NOTE] > [!NOTE]
> This configuration will work fine even without SOPS configuration, if you don't need it justs ignore it. > This configuration will work fine even without SOPS configuration, if you don't need it justs ignore it.
- for more information about SOPS and NixOS look at [Vimjoyer's](https://www.youtube.com/@vimjoyer/featured) [video on youtube](https://www.youtube.com/watch?v=G5f6GC7SnhU) or in [sops-nix repository](https://github.com/Mic92/sops-nix) - For more information about SOPS and NixOS look at [Vimjoyer's](https://www.youtube.com/@vimjoyer/featured) [video on youtube](https://www.youtube.com/watch?v=G5f6GC7SnhU) or in [sops-nix repository](https://github.com/Mic92/sops-nix)
### Yubikey ### Yubikey
- setup your Yubikey to work with current user - Setup your Yubikey to work with current user.
- change your Yubikey ID in [yubikey.nix](./nixos/system/packages/yubikey.nix) or in [sops.nix](./nixos/system/packages/sops/sops.nix), you can add multiple IDs. - Change your Yubikey ID in [yubikey.nix](./nixos/system/packages/yubikey.nix) or in [sops.nix](./nixos/system/packages/sops/sops.nix), you can add multiple IDs.
- If you have multiple Yubikeys, run this for each of them. - If you have multiple Yubikeys, run this for each of them.
```bash ```bash
@ -147,7 +146,7 @@ nvim /nixos/system/packages/ssh-client.nix
## Sources of inspiration ## Sources of inspiration
- [EmergentMind's Nix-Config](https://github.com/EmergentMind/nix-config) - explanation of yubikey setup and declarative configuration of SSH keys - [EmergentMind's Nix-Config](https://github.com/EmergentMind/nix-config) - explanation of Yubikey setup and declarative configuration of SSH keys
- [YT video](https://www.youtube.com/watch?v=3CeXbONjIgE) - [YT video](https://www.youtube.com/watch?v=3CeXbONjIgE)
- [LibrePhoenix's Nix-Config](https://github.com/librephoenix/nixos-config) - if else options and modular control center - [LibrePhoenix's Nix-Config](https://github.com/librephoenix/nixos-config) - if else options and modular control center
- [YT video about modular control center](https://www.youtube.com/watch?v=H_Qct7TVB6o) - [YT video about modular control center](https://www.youtube.com/watch?v=H_Qct7TVB6o)

View File

@ -192,7 +192,7 @@
(lib.mkIf config.program.vscode.markdown.enable { (lib.mkIf config.program.vscode.markdown.enable {
programs.vscode.userSettings = { programs.vscode.userSettings = {
"[markdown]" = { "[markdown]" = {
"editor.defaultFormatter" = "DavidAnson.vscode-markdownlint"; "editor.defaultFormatter" = "yzhang.markdown-all-in-one";
}; };
}; };