~cyplo/dotfiles

ref: master dotfiles/nixos/boxes/foureighty/default.nix -rw-r--r-- 1.3 KiB
3d192b7b — Cyryl Płotnicki do not do flake check as it explodes on sourcehut 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{ config, pkgs, inputs, lib, nixpkgs-nixos-unstable-and-unfree, ... }:
{
  networking.hostName = "foureighty";

  imports = [
    inputs.nixos-hardware.nixosModules.lenovo-thinkpad-t480
    ./hardware-configuration.nix
    ./tailscale-foureighty.nix
    ../../backups.nix
    ../../boot.nix
    ../../common.nix
    ../../distributed-builds.nix
    ../../git
    ../../gui
    ../../i3
    ../../libvirt.nix
    ../../mercurial
    ../../tailscale.nix
  ];

  fileSystems."/" = {
    options = [ "compress=zstd" ];
  };

  boot.kernelPackages = pkgs.linuxPackages_latest;
  boot.binfmt.emulatedSystems = [ "aarch64-linux" ];

  zramSwap = {
    enable = true;
    algorithm = "zstd";
    memoryPercent = 75;
  };

  time.timeZone = "Europe/London";

  virtualisation.kvmgt = {
    enable = true;
    device = "0000:00:02.0";
  };
  hardware.trackpoint.enable = true;
  services.hardware.bolt.enable = true;
  powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
  hardware.video.hidpi.enable = lib.mkDefault true;

  services.fprintd = {
    enable = true;
  };

  home-manager.users.cyryl = { ... }: {
    imports = [
      ../../home-manager/programs/kitty.nix
    ];
    home.packages = [
      inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".bisq-desktop
    ];
  };
}