2024-03-02 03:13:17 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}:
|
2020-08-15 03:06:11 +00:00
|
|
|
|
|
|
|
{
|
2020-11-16 22:47:50 +00:00
|
|
|
imports = [
|
|
|
|
./boot-config.nix
|
|
|
|
./hardware-configuration.nix
|
2020-12-18 06:10:48 +00:00
|
|
|
../../sets/buildMachines.nix
|
2020-11-17 01:51:13 +00:00
|
|
|
../../sets/hacking.nix
|
2023-08-26 22:45:32 +00:00
|
|
|
../../sets/hardware.nix
|
|
|
|
../../sets/laptop.nix
|
|
|
|
../../sets/secureBoot.nix
|
2023-11-22 20:51:14 +00:00
|
|
|
../../sets/tpm.nix
|
2022-11-04 01:13:11 +00:00
|
|
|
../../sets/virtualization.nix
|
2021-01-10 06:27:22 +00:00
|
|
|
../../sets/workstation.nix
|
2022-09-11 20:42:45 +00:00
|
|
|
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
|
|
|
inputs.nixos-hardware.nixosModules.common-pc-laptop
|
|
|
|
inputs.nixos-hardware.nixosModules.common-pc-laptop-acpi_call
|
2023-11-22 18:31:51 +00:00
|
|
|
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
2020-08-15 03:27:08 +00:00
|
|
|
];
|
|
|
|
|
2021-08-01 19:47:11 +00:00
|
|
|
boot.supportedFilesystems = [ "nfs4" ];
|
|
|
|
|
2021-08-26 22:17:13 +00:00
|
|
|
# Home
|
|
|
|
home-manager.users.artemis = {
|
|
|
|
wayland.windowManager.sway.config = {
|
2023-08-26 23:00:18 +00:00
|
|
|
output."eDP-1" = {
|
|
|
|
mode = "3840x2400@59.994Hz";
|
|
|
|
scale = "2";
|
|
|
|
};
|
2021-08-26 22:17:13 +00:00
|
|
|
input."1386:18753:Wacom_HID_4941_Finger".map_to_output = "eDP-1";
|
2023-08-26 23:00:18 +00:00
|
|
|
input."1739:52710:DLL096D:01_06CB:CDE6_Touchpad" = {
|
|
|
|
middle_emulation = "enabled";
|
|
|
|
click_method = "clickfinger";
|
|
|
|
};
|
2024-03-02 03:13:17 +00:00
|
|
|
startup = [
|
|
|
|
{
|
|
|
|
command = "swayidle -w before-sleep 'light -O' after-resume 'light -I'";
|
|
|
|
always = true;
|
|
|
|
}
|
|
|
|
];
|
2021-08-26 22:17:13 +00:00
|
|
|
};
|
|
|
|
xdg.configFile."rustybar/config.toml".text = ''
|
|
|
|
[[tile]]
|
|
|
|
type = "load"
|
|
|
|
[[tile]]
|
|
|
|
type = "memory"
|
|
|
|
[[tile]]
|
|
|
|
type = "hostname"
|
|
|
|
[[tile]]
|
|
|
|
type = "battery"
|
|
|
|
[[tile]]
|
2023-12-13 02:11:01 +00:00
|
|
|
type = "internet_time"
|
2023-12-13 02:03:33 +00:00
|
|
|
[[tile]]
|
2023-12-11 06:29:24 +00:00
|
|
|
type = "local_time"
|
2023-12-13 02:13:40 +00:00
|
|
|
format = "%a %b %e %H:%M %Z"
|
2023-12-11 06:29:24 +00:00
|
|
|
geoip_path = "${config.artemist.geoip}"
|
2024-01-12 13:08:43 +00:00
|
|
|
fallback_zone = "America/New_York"
|
2023-12-11 06:29:24 +00:00
|
|
|
[[tile]]
|
|
|
|
type = "utc_time"
|
|
|
|
format = "%Y-%m-%d %H:%M:%S UTC"
|
2021-08-26 22:17:13 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2023-08-26 23:00:18 +00:00
|
|
|
services.printing.drivers = with pkgs; [ cups-dymo ];
|
2023-08-26 22:18:06 +00:00
|
|
|
|
2022-10-15 20:09:27 +00:00
|
|
|
# Not in nixos-hardware for some reason
|
2023-08-26 23:00:18 +00:00
|
|
|
hardware.opengl.extraPackages = with pkgs; [ intel-compute-runtime ];
|
2022-10-15 20:09:27 +00:00
|
|
|
|
2022-09-11 20:42:45 +00:00
|
|
|
boot.blacklistedKernelModules = [ "psmouse" ];
|
2023-11-22 18:31:51 +00:00
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
services = {
|
|
|
|
fwupd.enable = true;
|
|
|
|
thermald.enable = true;
|
|
|
|
tlp.enable = true;
|
|
|
|
tlp.settings = {
|
|
|
|
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
|
|
|
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
|
|
|
PLATFORM_PROFILE_ON_AC = "performance";
|
|
|
|
PLATFORM_PROFILE_ON_BAT = "low-power";
|
|
|
|
CPU_BOOST_ON_AC = 1;
|
|
|
|
CPU_BOOST_ON_BAT = 0;
|
|
|
|
RUNTIME_ASPM_ON_AC = "default";
|
|
|
|
RUNTIME_ASPM_ON_BAT = "powersave";
|
|
|
|
CPU_DRIVER_OPMODE_ON_AC = "passive";
|
|
|
|
CPU_DRIVER_OPMODE_ON_BAT = "passive";
|
|
|
|
CPU_SCALING_GOVERNOR_ON_AC = "schedutil";
|
|
|
|
CPU_SCALING_GOVERNOR_ON_BAT = "schedutil";
|
|
|
|
};
|
|
|
|
};
|
2022-02-22 19:16:02 +00:00
|
|
|
|
2021-08-01 19:47:11 +00:00
|
|
|
networking.domain = "manehattan.artem.ist";
|
2020-11-16 22:47:50 +00:00
|
|
|
networking.hostName = "rainbowdash";
|
2023-12-25 04:33:08 +00:00
|
|
|
nixpkgs.hostPlatform = "x86_64-linux";
|
2020-08-15 03:27:08 +00:00
|
|
|
system.stateVersion = "20.03";
|
2020-08-15 03:06:11 +00:00
|
|
|
}
|