nixos/hosts/common/core/default.nix

48 lines
917 B
Nix
Raw Normal View History

2024-05-25 18:34:37 +01:00
{ pkgs, lib, inputs, config, outputs, ...}:
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-25 18:34:37 +01:00
inputs.impermanence.nixosModules.impermanence
2024-05-12 19:58:55 +01:00
];
2024-05-14 18:26:45 +01:00
2024-05-25 18:34:37 +01:00
nixpkgs = {
overlays = [
outputs.overlays.additions
outputs.overlays.modifications
outputs.overlays.unstable-packages
];
config = {
allowUnfree = true;
};
};
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
users = {
mutableUsers = true;
extraUsers = {
root = {
hashedPasswordFile = sopsHashedPasswordFile;
};
};
};
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-26 01:51:57 +01:00
pkgs.vim
2024-05-15 20:44:17 +01:00
];
2024-05-12 19:58:55 +01:00
}