nixos/hosts/common/core/default.nix

29 lines
489 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 = false;
extraUsers = {
root = {
hashedPasswordFile = sopsHashedPasswordFile;
};
};
};
}