2022-04-03 18:03:55 +02:00
|
|
|
{ config, lib, pkgs, inputs, specialArgs, ... }:
|
2022-03-22 16:36:19 +01:00
|
|
|
{
|
2022-04-03 18:03:55 +02: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 = {
|
2022-04-03 18:03:55 +02:00
|
|
|
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;
|
2022-06-12 00:07:40 +02:00
|
|
|
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 = {
|
2022-06-12 00:07:40 +02:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|