Fix impermanence vm
This commit is contained in:
parent
a1c5c3b291
commit
fb414ef491
9 changed files with 59 additions and 47 deletions
BIN
systems/persist/.common.nix.un~
Normal file
BIN
systems/persist/.common.nix.un~
Normal file
Binary file not shown.
19
systems/persist/common.nix
Normal file
19
systems/persist/common.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ impermanence, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
impermanence.nixosModules.impermanence
|
||||
];
|
||||
|
||||
environment.persistence."/nix/persist/common" = {
|
||||
directories = [
|
||||
"/etc/ssh"
|
||||
"/var/lib"
|
||||
];
|
||||
|
||||
files = [
|
||||
"/etc/machine-id"
|
||||
"/etc/shadow"
|
||||
];
|
||||
};
|
||||
}
|
7
systems/persist/qemu-vm.nix
Normal file
7
systems/persist/qemu-vm.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./common.nix
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue