nix-infra/hosts/common/default.nix
2024-03-24 19:40:36 +01:00

53 lines
1.1 KiB
Nix

{ lib, pkgs, ... }: {
options.cherrykitten = {
hostname = lib.mkOption {
type = lib.types.str;
default = "";
description = "the hostname, this is already set for every host by the flake config";
};
test = lib.mkOption {
type = lib.types.str;
default = "nya";
example = "nyanya";
};
};
imports = [
./graphical.nix
./security.nix
./users.nix
./yubikey.nix
./virtualization.nix
];
config = {
nix.settings.experimental-features = [ "nix-command" "flakes" ];
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
time.timeZone = "Europe/Berlin";
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = lib.mkForce "de";
useXkbConfig = true; # use xkb.options in tty.
};
fonts = {
enableDefaultPackages = true;
packages = with pkgs; [
noto-fonts-emoji
];
};
# Packages used on all systems
environment.systemPackages = with pkgs; [
git
openssl
rsync
pinentry
wget
];
};
}