1
Fork 0
This commit is contained in:
caem 2025-01-20 00:55:30 +01:00
parent eec8246df8
commit 3fb105fa1c
Signed by: caem
GPG key ID: 69A830D03203405F
5 changed files with 18 additions and 20 deletions

3
.gitmodules vendored
View file

@ -1,3 +0,0 @@
[submodule "secrets"]
path = secrets
url = git@git.caem.dev:caem/secrets

View file

@ -56,7 +56,7 @@ EOF
```sh
mkpasswd | wl-copy
sops secrets.yaml
sops upasswd.yaml
```
Then edit the file to look like this
@ -70,7 +70,9 @@ upasswd: [The pasted password from mkpasswd]
cat <<EOF > flake.nix
{
outputs = { self, ... }: {
path = self + "/secrets.yaml";
paths = {
upasswd = self + "/upasswd.yaml";
};
};
}
EOF

View file

@ -1,8 +1,7 @@
{ inputs, lib, config, ... }:
{ lib, config, ... }:
{
imports = [
inputs.impermanence.homeManagerModules.impermanence
./packages.nix
];
@ -30,16 +29,4 @@
templates = "${config.xdg.dataHome}/xdg/templates";
};
};
home.persistence."/nix/persist/home/caem" = {
allowOther = true;
directories = [
"documents"
"download"
"music"
"images"
"videos"
"programming"
];
};
}

View file

@ -6,6 +6,19 @@
sopsFile = inputs.secrets.paths.upasswd;
};
environment.persistence."/nix/persist" = {
users.caem = {
directories = [
"documents"
"download"
"music"
"images"
"videos"
"programming"
];
};
};
users.users.caem = {
isNormalUser = true;
shell = pkgs.zsh;

@ -1 +0,0 @@
Subproject commit 73908914ee288a689dede75c9e4ff1531e41159c