nixos-config/system/rainbowdash/default.nix
Artemis Tosini e1177ce610
flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/2f072c127c041eec36621b8e38a531fe0fe07961' (2024-04-24)
  → 'github:nix-community/home-manager/c1609d584a6b5e9e6a02010f51bd368cb4782f8e' (2024-04-27)
• Updated input 'jovian':
    'github:jovian-experiments/jovian-nixos/c3255d642c945847c61a867be15de63b8f81d5dc' (2024-04-24)
  → 'github:jovian-experiments/jovian-nixos/03448a4e169d4590d21138f0ac65ab64bd1a2d85' (2024-04-27)
• Updated input 'lix':
    'git+ssh://git@lix.systems/lix-project/lix?ref=refs/heads/main&rev=8175e47ce5ddf3bde64eb0a0f589a307a317c2bb' (2024-04-24)
  → 'git+ssh://git@lix.systems/lix-project/lix?ref=refs/heads/main&rev=4b6ba05d54e3c1c44989a3775d4798b6583e821e' (2024-04-27)
• Updated input 'nixos-hardware':
    'github:nixos/nixos-hardware/797f8d8082c7cc3259cba7275c699d4991b09ecc' (2024-04-23)
  → 'github:nixos/nixos-hardware/53db5e1070d07e750030bf65f1b9963df8f0c678' (2024-04-27)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/572af610f6151fd41c212f897c71f7056e3fb518' (2024-04-23)
  → 'github:nixos/nixpkgs/7bb2ccd8cdc44c91edba16c48d2c8f331fb3d856' (2024-04-25)
• Updated input 'nixvim':
    'github:nix-community/nixvim/f2f97d844bb39559f3356e209b49c92900d860b8' (2024-04-24)
  → 'github:nix-community/nixvim/0fc190144f9acf72ae8705ea304577e90389da20' (2024-04-26)
• Updated input 'nixvim/pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/2ac4dcbf55ed43f3be0bae15e181f08a57af24a4' (2024-04-22)
  → 'github:cachix/pre-commit-hooks.nix/6fb82e44254d6a0ece014ec423cb62d92435336f' (2024-04-24)
2024-04-27 18:26:46 +00:00

101 lines
2.7 KiB
Nix

{
config,
pkgs,
inputs,
...
}:
{
imports = [
./boot-config.nix
./hardware-configuration.nix
../../sets/buildMachines.nix
../../sets/hacking.nix
../../sets/hardware.nix
../../sets/laptop.nix
../../sets/secureBoot.nix
../../sets/tpm.nix
../../sets/virtualization.nix
../../sets/workstation.nix
inputs.nixos-hardware.nixosModules.common-cpu-intel
inputs.nixos-hardware.nixosModules.common-pc-laptop
inputs.nixos-hardware.nixosModules.common-pc-laptop-acpi_call
inputs.nixos-hardware.nixosModules.common-pc-ssd
];
boot.supportedFilesystems = [ "nfs4" ];
# Home
home-manager.users.artemis = {
wayland.windowManager.sway.config = {
output."eDP-1" = {
mode = "3840x2400@59.994Hz";
scale = "2";
};
input."1386:18753:Wacom_HID_4941_Finger".map_to_output = "eDP-1";
input."1739:52710:DLL096D:01_06CB:CDE6_Touchpad" = {
middle_emulation = "enabled";
click_method = "clickfinger";
};
startup = [
{
command = "swayidle -w before-sleep 'light -O' after-resume 'light -I'";
always = true;
}
];
};
xdg.configFile."rustybar/config.toml".text = ''
[[tile]]
type = "load"
[[tile]]
type = "memory"
[[tile]]
type = "hostname"
[[tile]]
type = "battery"
[[tile]]
type = "internet_time"
[[tile]]
type = "local_time"
format = "%a %b %e %H:%M %Z"
geoip_path = "${config.artemist.geoip}"
fallback_zone = "America/New_York"
[[tile]]
type = "utc_time"
format = "%Y-%m-%d %H:%M:%S UTC"
'';
};
services.printing.drivers = with pkgs; [ cups-dymo ];
# Not in nixos-hardware for some reason
hardware.opengl.extraPackages = with pkgs; [ intel-compute-runtime ];
boot.blacklistedKernelModules = [ "psmouse" ];
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";
};
};
networking.domain = "manehattan.artem.ist";
networking.hostName = "rainbowdash";
nixpkgs.hostPlatform = "x86_64-linux";
system.stateVersion = "20.03";
}