Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/yuzujin99/nixos
- Owner: yuzujin99
- Created: 2021-04-11T12:53:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-24T08:44:38.000Z (about 1 year ago)
- Last Synced: 2024-10-27T01:48:30.782Z (21 days ago)
- Topics: nix, nixos, nixos-config, nixos-configuration
- Language: Nix
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.txt
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
select
mklabel gpt
mkpart ESP fat32 1MB 512MB
mkpart primary 512MB 100%
set 1 esp onmkfs.xfs /dev/sda1
mkfs.fat -F 32 /dev/sda3nix search
nix-env -i gitnixos-generate-config --root /mnt
nano /mnt/etc/nixos/configuration.nix
nixos-installnix-channel --add https://mirrors.cernet.edu.cn/nix-channels/nixos-23.05 nixos
nix-channel --update
nixos-rebuild switch --upgrade