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
|
|
|
|
];
|
2022-03-22 16:36:19 +01:00
|
|
|
|
2022-08-19 12:55:26 +02:00
|
|
|
services.xserver.enable = true;
|
|
|
|
services.xserver.videoDrivers = ["nvidia"];
|
|
|
|
|
2022-06-21 01:47:36 +02:00
|
|
|
# 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;
|
|
|
|
|
2022-08-19 03:49:21 +02:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2022-11-20 17:12:27 +01:00
|
|
|
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;
|
2022-06-12 00:07:40 +02:00
|
|
|
firewall.enable = true;
|
2022-03-22 16:36:19 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
};
|
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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|