Compare commits
1 Commits
b25ce469b6
...
r0-persist
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab263e5184 |
@@ -4,6 +4,10 @@
|
|||||||
machine,
|
machine,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
imports = [
|
||||||
|
./impermanence.nix
|
||||||
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
|
];
|
||||||
# roundcube config
|
# roundcube config
|
||||||
services.roundcube = {
|
services.roundcube = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -46,8 +50,12 @@
|
|||||||
# system config
|
# system config
|
||||||
system.stateVersion = "25.11";
|
system.stateVersion = "25.11";
|
||||||
nix.settings.experimental-features = ["flakes" "nix-command"];
|
nix.settings.experimental-features = ["flakes" "nix-command"];
|
||||||
imports = [(modulesPath + "/profiles/qemu-guest.nix")];
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
|
device = "none";
|
||||||
|
fsType = "tmpfs";
|
||||||
|
options = ["defaults" "size=60%" "mode=755"];
|
||||||
|
};
|
||||||
|
fileSystems."/nix" = {
|
||||||
device = "/dev/sda1";
|
device = "/dev/sda1";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|||||||
30
machines/109-199-104-83/impermanence.nix
Normal file
30
machines/109-199-104-83/impermanence.nix
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
environment.persistence."/nix/persist" = {
|
||||||
|
enable = true;
|
||||||
|
hideMounts = true;
|
||||||
|
directories = [
|
||||||
|
# logs
|
||||||
|
"/var/log"
|
||||||
|
"/var/lib/systemd/coredump"
|
||||||
|
|
||||||
|
# users
|
||||||
|
"/var/lib/nixos"
|
||||||
|
|
||||||
|
# private ssh keys
|
||||||
|
"/etc/ssh"
|
||||||
|
|
||||||
|
# mailserver
|
||||||
|
"/var/vmail"
|
||||||
|
"/var/dkim"
|
||||||
|
"/var/lib/dovecot"
|
||||||
|
"/var/lib/postfix"
|
||||||
|
"/var/lib/postgresql"
|
||||||
|
"/var/lib/redis-rspamd"
|
||||||
|
"/var/lib/roundcube"
|
||||||
|
"/var/lib/secrets"
|
||||||
|
];
|
||||||
|
files = [
|
||||||
|
"/etc/machine-id"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user