dot

NixOS dotfiles
git clone https://git.echoz.io/dot.git
Log | Files | Refs

default.nix (510B)


      1 {
      2   lib,
      3   config,
      4 
      5   impermanence,
      6   ...
      7 }:
      8 {
      9   imports = [ impermanence.nixosModules.impermanence ];
     10 
     11   config = {
     12     fileSystems."/fix".neededForBoot = true;
     13 
     14     environment.persistence."/fix" = {
     15       hideMounts = true;
     16 
     17       files = [
     18         "/etc/machine-id"
     19         "/etc/ssh/ssh_host_ed25519_key"
     20         "/etc/ssh/ssh_host_ed25519_key.pub"
     21         "/etc/ssh/ssh_host_rsa_key"
     22         "/etc/ssh/ssh_host_rsa_key.pub"
     23       ];
     24 
     25       directories = [
     26         "/var/lib/nixos"
     27       ];
     28     };
     29   };
     30 }