Skip to content

Ruhrozz/nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

102 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

❄ Nix Stuff ❄

Some "nix stuff" repository:

  • Disko
  • NixOS
  • Home-manager
  • Stylix

Desktop version installation

With bootable USB flash drive

  • Update ./settings.nix
  • Boot with NixOS USB drive
  • Make disk partitioning with disko:
sudo nix --extra-experimental-features "nix-command flakes" run github:nix-community/disko/latest -- \
  --mode disko ./profiles/desktop/disk-config.nix
  • Update hardware-configuration.nix:
sudo nixos-generate-config --show-hardware-config > ./profiles/desktop/hardware-configuration.nix

Disko already defines filesystems, so you need to remove redundant defines

  • Install NixOS itself:
sudo nixos-install --flake .#nixos
  • Update ./settings.nix
  • Run nixos-anywhere to install system via ssh:
nix run github:nix-community/nixos-anywhere -- \
  --generate-hardware-config nixos-generate-config ./profiles/desktop/hardware-configuration.nix --flake .#nixos root@<ip address>

Default password for root connection is ASDzxc123, do not forget to update pass with passwd.

Remote version installation

You only need to install home-manager. Moreover, remote installation settings are set up by default.

git clone https://github.com/Ruhrozz/nix.git ~/.dotfiles
nix --extra-experimental-features "nix-command flakes" run github:nix-community/home-manager -- \
  switch -b nixhmbak --flake ~/.dotfiles --extra-experimental-features 'nix-command flakes'

Releases

No releases published

Packages

 
 
 

Contributors