Compare commits

..

No commits in common. "81c37abadd8835853e8ef89eb810c4c082658187" and "b0a8874a93d73e0719e8376bd280278cfe2757e4" have entirely different histories.

3 changed files with 3 additions and 12 deletions

View File

@ -2,10 +2,6 @@
My NixOS configuration.
## Installation
## Usage
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
```
Clone the repository to some directory. And build with `sudo nixos-rebuild switch --flake /directory/containing/flake.nix/`.

View File

@ -24,10 +24,9 @@ in
};
config = mkIf cfg.enable {
home.persistence."/persist/home/${config.home.username}" = {
home.persistence."/persist/home" = {
enable = true;
hideMounts = true;
allowOther = true;
directories = cfg.directories;
files = cfg.files;
};

View File

@ -30,12 +30,8 @@ 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;