Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yuzujin99/nixos

modular nixos configuration
https://github.com/yuzujin99/nixos

nix nixos nixos-config nixos-configuration

Last synced: 4 days ago
JSON representation

modular nixos configuration

Awesome Lists containing this project

README

        

# pull
git clone https://github.com/sayomelu/nixos ~/.config/nixos
cp /etc/nixos/hardware-configuration.nix ~/.config/nixos
rm -rf /etc/nixos
sudo ln -sF ~/.config/nixos /etc/nixos
sudo cp -rf ~/.config/nixos /etc/nixos
cd /etc/nixos
sudo cp configuration-template.nix configuration.nix

# cleanup
nix-collect-garbage
nix-collect-garbage -d

# setup
sudo parted
print
select
mklabel gpt
mkpart ESP fat32 1MB 512MB
mkpart primary 512MB 100%
set 1 esp on

mkfs.xfs /dev/sda1
mkfs.fat -F 32 /dev/sda3

nix search
nix-env -i git

nixos-generate-config --root /mnt
nano /mnt/etc/nixos/configuration.nix
nixos-install

nix-channel --add https://mirrors.cernet.edu.cn/nix-channels/nixos-23.05 nixos
nix-channel --update
nixos-rebuild switch --upgrade