Skip to content

Template for nix configuration for darwin and linux together

License

Notifications You must be signed in to change notification settings

ivan-balashov/nix-conf-public

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

nix-conf-public

Template for nix configuration for darwin and linux together

How to use

  • Fork it to your private(!!!) repository.

  • Install nix

    #Linux
    sh <(curl -L https://nixos.org/nix/install) --daemon
    
    #macOS
    sh <(curl -L https://nixos.org/nix/install)
  • Add experimental features to work with flakes

    mkdir -p ~/.config/nix
    echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
  • Clone your repository to your machine

    git clone https://github.com/your-username/your-config.git ~/.config/home-manager
    cd ~/.config/home-manager
  • First time apply config

    #Linux
    nix run home-manager/master -- switch --flake .#linux-username
    
    #macOS
    nix run home-manager/master -- switch --flake .#darwin-username
  • Any other time after updating config

    home-manager switch --flake .#your-hostname

About

Template for nix configuration for darwin and linux together

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published