30 lines
522 B
Nix
30 lines
522 B
Nix
{pkgs, lib, inputs, config, ...}:
|
|
let
|
|
sopsHashedPasswordFile = lib.optionalString (lib.hasAttr "sops-nix" inputs) config.sops.secrets."passwords/root".path;
|
|
in
|
|
{
|
|
imports = [
|
|
./sops.nix
|
|
./locale.nix
|
|
];
|
|
|
|
environment.systemPackages = [
|
|
pkgs.rsync
|
|
pkgs.curl
|
|
pkgs.just
|
|
pkgs.git
|
|
pkgs.neovim
|
|
];
|
|
|
|
users = {
|
|
mutableUsers = true;
|
|
extraUsers = {
|
|
root = {
|
|
initialPassword = "1234";
|
|
hashedPasswordFile = sopsHashedPasswordFile;
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|