Skip to content

cu1ch3n/nix-config-legacy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chen's NixOS, Darwin & Home Manager configurations

NixOS logo

Currently avaliable hosts:

intel-nuc-12
macbook-air-2021
thinkpad-x1c-5th
linode-server

This configuration is flake-based, so you may check the output of this configuration by running:

$ nix flake show git+https://git.cuichen.cc/nix-config

Install

Clone the Repository

$ git clone https://git.cuichen.cc/nix-config
$ cd nix-config

Bootstrap

If you don't have flake or home-manager enabled in your current system, you may run

$ nix develop

to enter the bootstrap envitonment.

NixOS

[nix-shell]$ sudo nixos-rebuild switch --flake .#hostname

Home Manager

[nix-shell]$ home-manager switch --flake .#chen@hostname

macOS (Macbook Air 2021)

[nix-shell]$ nix build .\#darwinConfigurations.macbook-air-2021.system -o /tmp/nix-result
[nix-shell]$ /tmp/nix-result/sw/bin/darwin-rebuild switch --flake .#chen@macbook-air-2021
[nix-shell]$ rm -rf /tmp/nix-result

The zsh alias update-sys may be used after my zsh module being applied.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published