nix-dotfiles/hosts/kasei/configuration.nix

80 lines
1.5 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, inputs, specialArgs, ... }:
2022-03-22 16:36:19 +01:00
{
imports = [
./hardware-configuration.nix
];
2022-03-22 16:36:19 +01:00
# TODO: See ../common.nix
services.xserver.enable = true;
services.xserver.displayManager.lightdm.enable = true;
2022-06-22 20:16:57 +02:00
machineVars = {
headless = false;
gaming = true;
development = true;
creative = true;
2022-06-02 16:33:21 +02:00
dataDrives = let
2022-06-22 20:16:57 +02:00
main = "/data";
in {
drives = { inherit main; };
default = main;
};
2022-08-16 03:24:06 +02:00
fixDisplayCommand = "xrandr --output DP-4 --mode 1920x1080 --pos 0x0 -r 144 --output DVI-D-1 --primary --mode 1920x1080 --pos 1920x0 -r 60";
# screens = {
# "DP-1" = {};
# "HDMI-1" = {};
# };
2022-06-22 20:16:57 +02:00
};
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;
2022-06-02 16:33:21 +02:00
interfaces.wlp2s0f0u7u3.useDHCP = true;
firewall.enable = true;
2022-03-22 16:36:19 +01:00
};
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"
];
};
2022-06-02 16:33:21 +02:00
};
2022-03-22 16:36:19 +01:00
hardware.bluetooth.enable = true;
virtualisation = {
docker.enable = true;
libvirtd.enable = true;
};
}