nix-dotfiles/hosts/kasei/configuration.nix

72 lines
1.3 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, inputs, specialArgs, ... }:
2022-03-22 16:36:19 +01:00
{
imports = [
./hardware-configuration.nix
../../pluggables/tools/programming.nix
];
2022-03-22 16:36:19 +01:00
systemd.targets = {
sleep.enable = false;
suspend.enable = false;
hibernate.enable = false;
hybrid-sleep.enable = false;
};
# security.pam.services.login.unixAuth = true;
boot.loader = {
efi.canTouchEfiVariables = false;
2022-03-22 16:36:19 +01:00
grub = {
enable = true;
version = 2;
efiSupport = true;
fsIdentifier = "label";
device = "nodev";
efiInstallAsRemovable = true;
};
};
networking = {
hostName = "kasei";
networkmanager.enable = true;
interfaces.wlp5s0.useDHCP = true;
interfaces.wlp2s0f0u4.useDHCP = true;
firewall.enable = true;
2022-03-22 16:36:19 +01:00
};
i18n = {
inputMethod = {
enabled = "fcitx";
fcitx.engines = with pkgs.fcitx-engines; [ mozc ];
};
# inputMethod = {
# enabled = "fcitx5";
# fcitx5.addons = with pkgs; [
# fcitx5-mozc
# fcitx5-gtk
# ];
# };
};
services = {
openssh.enable = true;
2022-03-22 16:36:19 +01:00
printing.enable = true;
cron = {
enable = true;
systemCronJobs = [
# "*/5 * * * * root date >> /tmp/cron.log"
];
};
hardware.bluetooth.enable = true;
virtualisation = {
docker.enable = true;
libvirtd.enable = true;
};
}