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;
|
|
|
|
|
2022-11-20 17:12:27 +01:00
|
|
|
screens."eDP-1".primary = true;
|
2022-06-21 01:47:36 +02:00
|
|
|
};
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|