nixos/hosts/common/core/default.nix

29 lines
489 B
Nix
Raw Normal View History

{pkgs, lib, inputs, config, ...}:
let
sopsHashedPasswordFile = lib.optionalString (lib.hasAttr "sops-nix" inputs) config.sops.secrets."passwords/root".path;
in
{
2024-05-12 19:58:55 +01:00
imports = [
./sops.nix
2024-05-17 10:54:53 +01:00
./locale.nix
2024-05-12 19:58:55 +01:00
];
2024-05-14 18:26:45 +01:00
2024-05-15 20:44:17 +01:00
environment.systemPackages = [
pkgs.rsync
pkgs.curl
pkgs.just
2024-05-15 21:06:04 +01:00
pkgs.git
2024-05-17 20:17:53 +01:00
pkgs.neovim
2024-05-15 20:44:17 +01:00
];
users = {
2024-05-22 17:23:17 +01:00
mutableUsers = false;
extraUsers = {
root = {
hashedPasswordFile = sopsHashedPasswordFile;
};
};
};
2024-05-12 19:58:55 +01:00
}