nixos/hosts/common/core/default.nix

57 lines
1.1 KiB
Nix
Raw Normal View History

{ pkgs, lib, inputs, config, outputs, ... }:
2024-05-25 18:34:37 +01:00
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 = [
inputs.impermanence.nixosModules.impermanence
2024-05-12 19:58:55 +01:00
./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-25 18:34:37 +01:00
nixpkgs = {
overlays = [
outputs.overlays.additions
outputs.overlays.modifications
outputs.overlays.unstable-packages
inputs.nur.overlay
];
config = {
allowUnfree = true;
2024-05-25 18:34:37 +01:00
};
};
2024-05-25 18:34:37 +01:00
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
users = {
mutableUsers = true;
extraUsers = {
root = {
hashedPasswordFile = sopsHashedPasswordFile;
};
};
2024-05-25 18:34:37 +01:00
};
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
2024-05-15 20:44:17 +01:00
environment.systemPackages = [
pkgs.rsync
pkgs.curl
pkgs.just
pkgs.git
pkgs.vim
pkgs.linuxKernel.packages.linux_zen.cpupower
];
2024-05-15 20:44:17 +01:00
system.stateVersion = "24.05";
2024-05-12 19:58:55 +01:00
}