Compare commits

..

2 commits

7 changed files with 5 additions and 9 deletions

View file

@ -5,10 +5,10 @@ in
{
users.mutableUsers = false;
users.users.root = {
hashedPassword = secrets.shadow-hashed-password-root;
passwordFile = config.age.secrets."users/root-hashed-password".path;
};
users.users.alarsyo = {
hashedPassword = secrets.shadow-hashed-password-alarsyo;
passwordFile = config.age.secrets."users/alarsyo-hashed-password".path;
isNormalUser = true;
extraGroups = [
"media"

View file

@ -3,9 +3,6 @@
# and in the NixOS manual (accessible by running nixos-help).
{ config, lib, pkgs, ... }:
let
secrets = config.my.secrets;
in
{
imports =
[ # Include the results of the hardware scan.

View file

@ -13,4 +13,7 @@ in
{
"restic-backup/zephyrus-password.age".publicKeys = [ alarsyo zephyrus ];
"restic-backup/zephyrus-credentials.age".publicKeys = [ alarsyo zephyrus ];
"users/root-hashed-password.age".publicKeys = machines;
"users/alarsyo-hashed-password.age".publicKeys = machines ++ [ alarsyo ];
}

Binary file not shown.

Binary file not shown.

View file

@ -11,7 +11,6 @@ let
;
cfg = config.my.services.restic-backup;
secrets = config.my.secrets;
excludeArg = "--exclude-file=" + (pkgs.writeText "excludes.txt" (concatStringsSep "\n" cfg.exclude));
makePruneOpts = pruneOpts:
attrsets.mapAttrsToList (name: value: "--keep-${name} ${toString value}") pruneOpts;

View file

@ -10,9 +10,6 @@
# Service definitions
./services
# Configuration secrets
./secrets
# Host-specific config
./hosts/zephyrus
];