nix-dotfiles/hosts/kasei/configuration.nix

91 lines
1.7 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
2022-08-19 12:55:26 +02:00
services.xserver.enable = true;
services.xserver.videoDrivers = ["nvidia"];
# TODO: See ../common.nix
services.xserver.displayManager.lightdm.enable = true;
2022-06-22 20:16:57 +02:00
machineVars = {
headless = false;
gaming = true;
development = true;
creative = true;
wlanInterface = "wlp2s0f0u7u3";
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;
};
screens = {
DP-4 = {
primary = true;
frequency = 144;
};
HDMI-0 = {
position = "1920x0";
};
};
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;
2022-08-19 12:55:26 +02:00
boot = {
blacklistedKernelModules = ["nouveau"];
kernelParams = ["nomodeset"];
loader = {
efi.canTouchEfiVariables = false;
grub = {
enable = true;
version = 2;
efiSupport = true;
fsIdentifier = "label";
device = "nodev";
efiInstallAsRemovable = true;
};
2022-03-22 16:36:19 +01:00
};
};
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;
};
}