Sheol: use service impermanence definition
This commit is contained in:
parent
8826591295
commit
2eb5762de3
2 changed files with 1 additions and 41 deletions
|
@ -1,41 +0,0 @@
|
||||||
{ impermanence, ... }:
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
impermanence.nixosModules.impermanence
|
|
||||||
];
|
|
||||||
environment.persistence."/persist" = {
|
|
||||||
hideMounts = true;
|
|
||||||
directories = [
|
|
||||||
"/etc/nixos"
|
|
||||||
# Stores auto assigned user/group ids
|
|
||||||
"/var/lib/nixos"
|
|
||||||
"/var/log"
|
|
||||||
# User directories
|
|
||||||
"/home/derped/.config/home-manager"
|
|
||||||
];
|
|
||||||
files = [
|
|
||||||
"/etc/machine-id"
|
|
||||||
"/etc/ssh/ssh_host_ed25519_key"
|
|
||||||
"/etc/ssh/ssh_host_ed25519_key.pub"
|
|
||||||
"/etc/ssh/ssh_host_rsa_key"
|
|
||||||
"/etc/ssh/ssh_host_rsa_key.pub"
|
|
||||||
"/var/lib/sops-nix/key.txt"
|
|
||||||
];
|
|
||||||
users.derped = {
|
|
||||||
directories = [
|
|
||||||
".local/state"
|
|
||||||
{
|
|
||||||
directory = ".gnupg";
|
|
||||||
mode = "0700";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
directory = ".ssh";
|
|
||||||
mode = "0700";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
system.activationScripts.profile-init.text = ''
|
|
||||||
ln -sfn /home/derped/.local/state/nix/profiles/profile /home/derped/.nix-profile
|
|
||||||
'';
|
|
||||||
}
|
|
|
@ -27,6 +27,7 @@
|
||||||
services = [
|
services = [
|
||||||
"desktop"
|
"desktop"
|
||||||
"desktop::sway"
|
"desktop::sway"
|
||||||
|
"impermanence"
|
||||||
"mullvad"
|
"mullvad"
|
||||||
"openssh"
|
"openssh"
|
||||||
"pipewire"
|
"pipewire"
|
||||||
|
|
Loading…
Reference in a new issue