@@ -1,7 +1,11 @@
|
||||
{ ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
services.btrfs.autoScrub = {
|
||||
enable = true;
|
||||
interval = "weekly";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
compsize
|
||||
];
|
||||
}
|
||||
|
@@ -49,7 +49,7 @@ check_key() {
|
||||
}
|
||||
|
||||
set_password_file() {
|
||||
SOPS_AGE_KEY_FILE="$(realpath "$flake/secrets/$key/key.txt")"
|
||||
SOPS_AGE_KEY_FILE="$flake/secrets/$key/key.txt"
|
||||
export SOPS_AGE_KEY_FILE
|
||||
sops --decrypt --extract "['luks']" "$flake/hosts/$host/secrets/secrets.yaml" > /tmp/installer.key
|
||||
unset SOPS_AGE_KEY_FILE
|
||||
@@ -79,7 +79,11 @@ copy_keys() {
|
||||
}
|
||||
|
||||
set_permissions() {
|
||||
chown -R "$(cat "$flake/hosts/$host/users/$user/uid"):100" "$root/persist/home/$user"
|
||||
for path in "$flake/hosts/$host/users"/*; do
|
||||
local user
|
||||
user=$(basename "$path")
|
||||
chown -R "$(cat "$flake/hosts/$host/users/$user/uid"):100" "$root/persist/home/$user"
|
||||
done
|
||||
}
|
||||
|
||||
install() {
|
||||
|
@@ -1,17 +0,0 @@
|
||||
{
|
||||
user ? throw "user argument is required",
|
||||
home ? throw "home argument is required",
|
||||
}:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home-manager.users.${user} = {
|
||||
imports = lib.lists.optional (
|
||||
!config.home-manager.useGlobalPkgs
|
||||
) inputs.nur.modules.homeManager.default;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user