KaitoianOS/modules/core/default.nix

88 lines
2.2 KiB
Nix
Raw Normal View History

2024-12-27 20:52:26 +08:00
{
pkgs,
inputs,
options,
...
}:
{
# Enable the X11 windowing system.
# You can disable this if you're only using the Wayland session.
services.xserver.enable = false;
2024-12-27 20:52:26 +08:00
#services.ntp.enable = true;
# Configure keymap in X11
services.xserver.xkb = {
layout = "us";
variant = "";
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
nix = {
settings.experimental-features = [
"nix-command"
"flakes"
];
optimise.automatic = true;
# Free up to 1GiB when there is less than 100MiB left
extraOptions = ''
min-free = ${toString (100 * 1024 * 1024)}
max-free = ${toString (1024 * 1024 * 1024)}
'';
};
hardware.bluetooth.enable = true; # enables support for Bluetooth
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
fonts = {
enableDefaultPackages = true;
fontconfig = {
defaultFonts = {
serif = [ "Noto Serif" ];
sansSerif = [ "Noto Sans" ];
};
};
packages = with pkgs; [
noto-fonts
2024-11-28 00:48:21 -08:00
noto-fonts-cjk-sans
noto-fonts-emoji
2024-12-12 21:53:21 -08:00
nerd-fonts.caskaydia-cove
2024-12-15 17:50:53 -08:00
nerd-fonts.mononoki
2024-12-12 20:35:41 -08:00
#(nerdfonts.override { fonts = [ nerd-fonts.CascadiaCode ]; })
];
};
2024-12-21 00:31:46 -08:00
environment.sessionVariables = {
NIXOS_OZONE_WL = "1";
};
environment.systemPackages = [
inputs.nixvim.packages.${pkgs.system}.default
];
2024-12-27 20:52:26 +08:00
#services.automatic-timezoned.enable = true;
#networking.timeServers = options.networking.timeServers.default ++ [ "time-macos.apple.com" ];
# Define a user account. Don't forget to set a password with passwd.
users.users.kaitotlex = {
isNormalUser = true;
description = "KaitoTLex";
extraGroups = [
"networkmanager"
"wheel"
];
};
2024-11-28 00:48:21 -08:00
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep 3 --keep-since 4d";
flake = "/home/kaitotlex/nixos";
};
programs.fish.enable = true;
users.users.kaitotlex.shell = pkgs.fish;
}