Compare commits
	
		
			2 Commits
		
	
	
		
			b0a8874a93
			...
			81c37abadd
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 81c37abadd | ||
|   | 85c962fd6d | 
| @ -2,6 +2,10 @@ | ||||
| 
 | ||||
| My NixOS configuration. | ||||
| 
 | ||||
| ## Usage | ||||
| ## Installation | ||||
| 
 | ||||
| Clone the repository to some directory. And build with `sudo nixos-rebuild switch --flake /directory/containing/flake.nix/`. | ||||
| For disk configuration we use disko, this means that installing the system from the configuration is just a single command: | ||||
| 
 | ||||
| ``` | ||||
| sudo nix --experimental-features "nix-command flakes" run "github:nix-community/disko/latest#disko-install" -- --flake git+https://git.bulthuis.dev/Jan/dotfiles#<hostname> --disk main /dev/sda | ||||
| ``` | ||||
| @ -24,9 +24,10 @@ in | ||||
|   }; | ||||
| 
 | ||||
|   config = mkIf cfg.enable { | ||||
|     home.persistence."/persist/home" = { | ||||
|     home.persistence."/persist/home/${config.home.username}" = { | ||||
|       enable = true; | ||||
|       hideMounts = true; | ||||
|       allowOther = true; | ||||
|       directories = cfg.directories; | ||||
|       files = cfg.files; | ||||
|     }; | ||||
|  | ||||
| @ -30,8 +30,12 @@ in | ||||
|   }; | ||||
| 
 | ||||
|   config = mkIf cfg.enable { | ||||
|     fileSystems."/persist".neededForBoot = true; | ||||
|     boot.initrd.postResumeCommands = mkAfter cfg.resetScript; | ||||
| 
 | ||||
|     # For home-manager persistence | ||||
|     programs.fuse.userAllowOther = true; | ||||
| 
 | ||||
|     environment.persistence."/persist/system" = { | ||||
|       enable = true; | ||||
|       hideMounts = true; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user