Compare commits

...

2 Commits

Author SHA1 Message Date
Jan-Bulthuis
81c37abadd Fixed impermanence not mounting persist 2025-05-29 17:05:15 +02:00
Jan-Bulthuis
85c962fd6d Updated REAME.md 2025-05-29 17:04:58 +02:00
3 changed files with 12 additions and 3 deletions

View File

@ -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
```

View File

@ -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;
};

View File

@ -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;