File tree Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Original file line number Diff line number Diff line change 2626curl --proto ' =https' |  sh -s -- install
2727``` 
2828
29+ ### add ` trusted-users `   
30+ 
31+ edit ` /etc/nix/nix.custom.conf ` :
32+ ``` conf 
33+ trusted-users = charles 
34+ ``` 
35+ 
36+ restart daemon:
37+ 
38+ on macOS:
39+ ``` sh 
40+ sudo launchctl unload /Library/LaunchDaemons/systems.determinate.nix-daemon.plist
41+ sudo launchctl load /Library/LaunchDaemons/systems.determinate.nix-daemon.plist
42+ ``` 
43+ 
44+ on Ubuntu:
45+ ``` sh 
46+ sudo systemctl restart nix-daemon
47+ ``` 
48+ 
2949and open another shell.
3050
3151## Check Nix XDG Location  
6080``` sh 
6181nix run home-manager/master -- init --switch
6282exit 
63- ssh xxx
6483#  nix-channel --add https://nixos.org/channels/nixpkgs-unstable unstable
6584#  nix-channel --update
6685#  nix-env -iA unstable.git
@@ -71,6 +90,7 @@ cd ~/.config/home-manager && nix build
7190rm ~ /.config/nix/nix.conf
7291~ /.config/home-manager/result/bin/home-manager switch --flake ~ /.config/home-manager --impure
7392home-manager switch --impure #  this will prevent current generations get clean up w/ gc`
93+ determinate-nixd version
7494``` 
7595
7696ref: https://github.com/ryantm/home-manager-template/blob/master/README.md 
@@ -79,10 +99,10 @@ ref: https://github.com/the-argus/spicetify-nix/blob/master/home-manager-install
7999
80100## Upgrade Nix  
81101
82- -  On nacOS :
102+ -  On macOS :
83103
84104``` sh 
85- sudo nix  upgrade-nix 
105+ sudo determinate-nixd  upgrade
86106``` 
87107
88108-  On Ubuntu:
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments