refactor(nixos): use new persistDirs option and remove environment.persistence where possible
This commit is contained in:
parent
16b7f375bd
commit
77d8ed7a13
9 changed files with 98 additions and 36 deletions
|
@ -84,12 +84,9 @@ in
|
|||
'';
|
||||
programs.fuse.userAllowOther = true;
|
||||
fileSystems."/persist".neededForBoot = true;
|
||||
#FIXME: below should be in module or something
|
||||
environment.persistence."/persist" = {
|
||||
hideMounts = true;
|
||||
directories = [
|
||||
"/var/lib/systemd"
|
||||
"/var/lib/nixos"
|
||||
];
|
||||
files = [
|
||||
"/etc/ssh/ssh_host_ed25519_key"
|
||||
"/etc/ssh/ssh_host_ed25519_key.pub"
|
||||
|
|
|
@ -52,7 +52,7 @@ in
|
|||
];
|
||||
};
|
||||
services.fwupd.enable = true;
|
||||
environment.persistence."/persist".directories = lib.singleton "/var/lib/bluetooth";
|
||||
persistDirs = singleton "/var/lib/bluetooth";
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
settings.General.Experimental = true;
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
inherit (lib) singleton;
|
||||
in
|
||||
{
|
||||
config = {
|
||||
networking = {
|
||||
|
@ -19,6 +22,6 @@
|
|||
enable = true;
|
||||
authKeyFile = config.sops.secrets."keys/tailscale".path;
|
||||
};
|
||||
environment.persistence."/persist".directories = [ "/var/lib/tailscale" ];
|
||||
persistDirs = singleton "/var/lib/tailscale";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue