nix-infra/hosts/common/default.nix

64 lines
1.6 KiB
Nix
Raw Normal View History

2024-03-24 18:02:45 +00:00
{ lib, pkgs, ... }: {
2024-03-24 18:03:41 +00:00
options.cherrykitten = {
hostname = lib.mkOption {
type = lib.types.str;
default = "";
description = "the hostname, this is already set for every host by the flake config";
};
2024-03-24 18:02:23 +00:00
test = lib.mkOption {
type = lib.types.str;
default = "nya";
example = "nyanya";
};
};
2024-03-24 18:02:28 +00:00
imports = [
./graphical.nix
./security.nix
2024-03-24 18:03:25 +00:00
./users.nix
2024-03-24 18:02:28 +00:00
./yubikey.nix
2024-03-24 18:02:32 +00:00
./virtualization.nix
2024-03-24 18:02:28 +00:00
];
2023-12-17 13:33:15 +00:00
2024-03-24 18:02:23 +00:00
config = {
2024-03-24 18:02:29 +00:00
nix.settings.experimental-features = [ "nix-command" "flakes" ];
2023-12-17 13:33:15 +00:00
2024-03-24 18:02:28 +00:00
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
2024-03-24 18:02:23 +00:00
time.timeZone = "Europe/Berlin";
2024-03-24 18:02:23 +00:00
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = lib.mkForce "de";
useXkbConfig = true; # use xkb.options in tty.
};
2024-03-24 18:02:23 +00:00
fonts = {
enableDefaultPackages = true;
packages = with pkgs; [
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
monaspace
nerdfonts
];
fontconfig = {
2024-03-24 18:02:29 +00:00
defaultFonts.emoji = [ "Noto Emoji" ];
defaultFonts.serif = [ "Monaspace Xenon" "FiraCode Nerd Font" "Hack Nerd Font" "NotoSans Nerd Font" ];
defaultFonts.sansSerif = [ "Monaspace Xenon" "FiraCode Nerd Font" "Hack Nerd Font" "NotoSerif Nerd Font" ];
defaultFonts.monospace = [ "Monaspace Xenon" "FiraCode Nerd Font" "Hack Nerd Font" ];
2024-03-24 18:02:23 +00:00
};
};
# Packages used on all systems
environment.systemPackages = with pkgs; [
git
openssl
rsync
pinentry
wget
];
};
2023-12-17 13:33:15 +00:00
}