Skip to content

rafal11ck/nix-dots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

workstation screenshot

Install without adding host config to repo

In NixOs Live CD

  1. Mount partitions at /mnt
  2. nixos-generate-config --root /mnt
  3. cp /mnt/etc/nixos/hardware-configuration.nix /etc/nixos/
  4. nix-shell -p git
  5. git clone <THIS_REPO_URL> replace <THIS_REPO_URL> with URL to this repository
  6. cd into repository directory cloned in previous step
  7. sudo nixos-install --flake './#local-hardware-config' --impure
  8. reboot

Resources Links

https://search.nixos.org/packages?channel=unstable

https://search.nixos.org/options?channel=unstable

https://home-manager-options.extranix.com/?query=&release=master

https://noogle.dev/

https://nixpk.gs/pr-tracker.html

Standalone Nix home manager

Nix command and flakes support has to be enabled.

mkdir -p ~/.config/nix
echo 'experimental-features = nix-command flakes' >> ~/.config/nix/nix.conf

Nix home-manager config provides cli part of config only. As gui has host system dependencies and workarounds. For GUI configuration use stow-able dotfiles.

nix run home-manager/master -- switch --flake .

Standalone stow-able dotfiles

In dotfiles directory run stow -t ~ -v * which means: Stow to ~ verbose so that you can see what happens * glob to everything in current directory

Structure

./dotfiles regular stow-able dot files

./home nix home-manager home configuration. It is split into two main files home-cli and home-gui. Which are responsible for command-line-interface and graphical user interface respectively.

By default home.nix should be used which imports both. If host systems has GUI dependencies, otherwise CLI only config should be used.

/hosts Contains host specific configurations.

./lib Contains function used to define nixOS systems outside of main flake module.

./modules Modules which could be called workflows.

./pkgs Custom pkgs.