2022-03-07 16:01:52 +01:00
|
|
|
{ pkgs, config, ... }: let
|
|
|
|
# FIXME: lib should be imported directly as a module argument.
|
|
|
|
inherit (pkgs) lib;
|
|
|
|
|
|
|
|
# TODO: Split this file
|
|
|
|
in {
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
2022-06-21 01:47:36 +02:00
|
|
|
# TODO: See ../common.nix
|
2022-06-02 16:33:21 +02:00
|
|
|
services.xserver.enable = true;
|
2022-06-21 01:47:36 +02:00
|
|
|
services.xserver.displayManager.lightdm.enable = true;
|
|
|
|
|
|
|
|
machineVars = {
|
|
|
|
gaming = true;
|
|
|
|
creative = true;
|
|
|
|
development = true;
|
|
|
|
|
|
|
|
headless = false;
|
|
|
|
laptop = true;
|
|
|
|
|
|
|
|
screens = {
|
|
|
|
"eDP-1" = {
|
|
|
|
resolution = "1920x1080";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-03-07 16:01:52 +01:00
|
|
|
systemd.targets = {
|
|
|
|
sleep.enable = false;
|
|
|
|
suspend.enable = false;
|
|
|
|
hibernate.enable = false;
|
|
|
|
hybrid-sleep.enable = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
boot.loader = {
|
|
|
|
efi.canTouchEfiVariables = false;
|
|
|
|
grub = {
|
|
|
|
enable = true;
|
|
|
|
device = "/dev/sda";
|
|
|
|
version = 2;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "Eisei";
|
|
|
|
networkmanager.enable = true;
|
|
|
|
|
|
|
|
interfaces = {
|
|
|
|
eno1.useDHCP = true;
|
|
|
|
wlo1.useDHCP = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# firewall = {
|
|
|
|
# enable = false;
|
|
|
|
# allowedTCPPorts = [ ... ];
|
|
|
|
# allowedUDPPorts = [ ... ];
|
|
|
|
# };
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
openssh.enable = true;
|
|
|
|
printing.enable = true;
|
|
|
|
cron = {
|
|
|
|
enable = true;
|
|
|
|
systemCronJobs = [
|
|
|
|
# "*/5 * * * * root date >> /tmp/cron.log"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-06-02 16:33:21 +02:00
|
|
|
hardware.bluetooth.enable = false;
|
2022-03-07 16:01:52 +01:00
|
|
|
}
|
|
|
|
|