Find a file
Sebastian Wendel 9f2899ff0c first commit
2024-09-09 22:08:49 +02:00
.vscode first commit 2024-09-09 22:08:49 +02:00
modules first commit 2024-09-09 22:08:49 +02:00
nix first commit 2024-09-09 22:08:49 +02:00
.envrc first commit 2024-09-09 22:08:49 +02:00
.gitignore first commit 2024-09-09 22:08:49 +02:00
default.nix first commit 2024-09-09 22:08:49 +02:00
flake.lock first commit 2024-09-09 22:08:49 +02:00
flake.nix first commit 2024-09-09 22:08:49 +02:00
LICENSE.md first commit 2024-09-09 22:08:49 +02:00
README.md first commit 2024-09-09 22:08:49 +02:00

NixOS WSL Flake

This is my personal, opinionated configuration of NixOS WSL when I need to use Microsoft Windows as my primary operating system. It is intended to give developers and DevOps engineers an insight into the potential of Nix. If you're interested in more Nix-related topics, you can check out my other Projects or follow me on Github.

Dies ist meine persönliche Konfiguration von NixOS WSL, wenn ich MS Windows als mein primäres Betriebssystem verwenden muss. Sie soll mein System Konfiguration dokumentieren, reproduzierbar halten und anderen einen Einblick in das Potential von Nix geben.

Wenn du an weiteren Nix-bezogenen Themen interessiert bist, kannst du dir meine anderen Projekte ansehen oder mir auf Github folgen.

🛠️ Components

📁 Repository layout

├── modules       - Reusable NixOS modules
├── nix           - Flake-parts modules
├── default.nix   - Legacy support with flake-compat
├── flake.lock    - Lock file for version pinning
└── flake.nix     - Flakes configuration

🚀 Getting started

📋 Prerequisites

NixOS WSL

Before proceeding, ensure you have installed the NixOS-WSL, followed the guide and have a funtional terminal envirnment.

Icon Fonts

To get the necessary icons in all shell applications, install a NerdFont with additional fonts by running the following Powershell command in an administrative environment:

& ([scriptblock]::Create((iwr 'https://to.loredo.me/Install-NerdFont.ps1')))

To use Cascadia Code Nerd Font, enter the number 11. After completing the installation, a system restart may be required. Now you can configure Cascadia Code NF in your editor and terminal emulator.

Further details can be found at Microsoft Cascadia Code and

Configure NixOS

Checkout the source tree, open you're new NixOS terminal and follw the stepps:

sudo mv /etc/nixos /etc/.nixos
sudo git clone https://gitlab.i40.ifm-datalink.net/sebastian.wendel/nixos-wls /etc/nixos 

Test you configuration

sudo nixos-rebuild test

Apply you configuration

sudo nixos-rebuild switch

If something fails, you can add --show-trace to get a more detailed output of all the expressions on the stack.

🚧 Reporting issues

If you experience any issues with the infrastructure, please post a new issue to this repository.

Documentation

📜 License

All files in this repository are licensed under the terms of the MIT License (MIT). Please refer to the full license text in LICENSE.