Skip to content
DityarenPublic

About

Modular Declarative NixOS Flakes System Configuration

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

182 Commits

Folders and files

Repository files navigation

NixOS Configuration

NixOS Desktop

My personal NixOS configuration built with NixOS Flakes and modular features.

Setup

Clone the repository:

git clone https://github.com/dityaren/nixos.git
cd ./nixos

Make a copy of nixos/modules/hosts/snow in the same directory and rename it into your desired hostname,

Make changes into variables:

modules/hosts/your-host-dir/vars.nix

Change the machine-specific values:

flake.vars = {
  username = "your-username";
  hostname = "your-hostname";
  stateVersion = "26.05";
  flakeRoot = "your-nixos-config-location/"; # End with /
};

Then rebuild:

sudo nixos-rebuild switch --flake your-nixos-config-location#your-hostname

Structure

.
├── flake.nix
├── flake.lock
└── modules/
    ├── hosts/
    │   └── (machine)/
    │       └── vars.nix
    │
    └── features/
        ├── ...
        ├── ...
        └── ...

About

Modular Declarative NixOS Flakes System Configuration

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages