Archived
Watch
0
0
Fork
You've already forked nix-dotfiles
0
No description
This repository has been archived on 2026-10-28. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-28 00:48:30 +02:00
hosts test 2026-07-28 00:31:12 +02:00
modules ssh test4 2026-07-28 00:48:30 +02:00
users
.gitignore
common.nix
flake.lock
flake.nix
README.md

NIXOS Dotfiles

Usage

Nixos Configurations

Due to the host module referencing /etc/nixos/hardware-configuration.nix, so that it is seperated from the repo, all rebuild commands will need --impure, unless you copy your configuration into the repo.

First install - On installed OS

change "<HOSTNAME>" in the rebuild command to the name of the host you are installing

nix-shell -p git --run "sudo git clone https://git.awdawd.eu/Shared/nix-dotfiles.git /etc/nixos"
sudo ln -sL /etc/nixos/nix-dotfiles/flake.nix /etc/nixos
sudo nixos-rebuild --impure --flake /etc/nixos/nix-dotfiles#<HOSTNAME> switch

You may need to go through the boot options, and boot from nixos for the OS to start with the new settings

Build and switch

sudo nixos-rebuild --impure switch

Append the full path and hostname if you are going to switch config

sudo nixos-rebuild --impure --flake /etc/nixos/nix-dotfiles#test01 switch

Modules

Priority

Most options in default modules have values set with priority. This can be used to override the options in other modules. Lowest priority will be used

Modules Priority
/modules/10-system/10-core 990
/modules/10-system/20-base 980
/modules/30-graphical/10-login 790
/modules/30-graphical/30-desktop 770
/modules/30-graphical/70-web 730
/modules/40-daemons/50-server 650
/modules/50-packages/20-text_editor 580

Credits/Inspiration