security: start setting permissions on secrets properly
This commit is contained in:
parent
01fb6d8ec9
commit
ad9862019c
11 changed files with 126 additions and 53 deletions
|
|
@ -1,18 +1,15 @@
|
|||
{
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
topLevel: {
|
||||
flake = {
|
||||
modules.nixos.root =
|
||||
{ pkgs, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
programs.fish.enable = true;
|
||||
sops.secrets.passwordHash.neededForUsers = true;
|
||||
|
||||
users.users.root = {
|
||||
shell = pkgs.fish;
|
||||
openssh.authorizedKeys.keys = config.flake.meta.users.cholli.authorizedKeys;
|
||||
initialPassword = "asdf1234";
|
||||
openssh.authorizedKeys.keys = topLevel.config.flake.meta.users.cholli.authorizedKeys;
|
||||
hashedPasswordFile = config.sops.secrets.passwordHash.path;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue