/nixdots

Dotfiles for my NixOS system

Primary LanguageNixMIT LicenseMIT


❄️ NixOS dotfiles ❄️

My NixOS system configuration. Feel free to explore!

Special thanks to:

Rice Preview Neovim
⠀⠀   🌸 Setup / Hyprland 🌸
 -----------------------------------

 ╭─ Distro  -> NixOS
 ├─ Editor  -> Neovim
 ├─ Browser -> Firefox / Chrome
 ├─ Shell   -> ZSH
 ╰─ Resource Monitor -> Btop

 ╭─ Model -> DELL XPS 8940
 ├─ CPU   -> Intel i5-10400f @ 4.3GHz
 ├─ GPU   -> NVIDIA GeForce GTX 1650 SUPER
 ╰─ Resolution -> 1920x1080@165hz

 ╭─ WM       -> Hyprland
 ├─ Terminal -> Foot
 ├─ Theme    -> Catppuccin
 ├─ Icons    -> Papirus-Dark
 ├─ Font     -> JetBrains Mono Nerd Font
 ╰─ Hotel    -> Trivago

                        

Commands you should know:

  • Rebuild and switch to change the system configuration (in the configuration directory):
rebuild

OR

sudo nixos-rebuild switch --flake '.#redyf'
  • Connect to internet (Change what's inside the brackets with your info).
iwctl --passphrase [passphrase] station [device] connect [SSID]

Installation

IMPORTANT: Do not use my configuration.nix and/or hardware-configuration.nix! These files include specific settings to my drives and are unlikely to have a positive reaction on your device!

It might not work perfectly right after installation, you have been warned!

For best security, make sure the files will not conflict with your current ones.

Pré-requisitos:

Clono the repo and cd into it:

git clone https://github.com/Redyf/nixdots ~/flake && cd ~/flake

Create a hardware configuration for your system:

sudo nixos-generate-config

You can add or create your own output in flake.nix through the following template:

nixosConfigurations = {
    # Now, creating a new system config can be done with a single line.
    #                                Architecture   Hostname
    redyf = nixpkgs.lib.nixosSystem "x86_64-linux" "desktop";
    laptop = nixpkgs.lib.nixosSystem "x86_64-linux" "laptop";
    # ADD YOUR COMPUTER HERE! (feel free to remove mine)
    yourComputer = nixpkgs.lib.nixosSystem "x86_64-linux" "yourComputer";
};

Finally, rebuild your configuration with:

sudo nixos-rebuild switch --flake .#yourComputer

And that's all! If you have any problem, feel free to make an issue in the github repo. (https://github.com/Redyf/nixdots/issues).

Conclusion

And so that was my setup for NixOS. The code is licensed under the MIT license, so you can use or distribute the code however you like. If you have any questions, contact me on Discord: Redyf#1337.