nixos/hosts/common/core/default.nix

30 lines
522 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 20:34:18 +01:00
mutableUsers = true;
extraUsers = {
root = {
2024-05-22 20:34:18 +01:00
initialPassword = "1234";
hashedPasswordFile = sopsHashedPasswordFile;
};
};
};
2024-05-12 19:58:55 +01:00
}