summaryrefslogtreecommitdiff
path: root/hosts/larissa.nix
blob: b400f5339341cfd0b2a2818e79858a28ffe38dda (plain) (blame)
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
58
59
60
61
62
63
64
65
66
67
# Edit this configuration file to define what should be installed on
# your system.  Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).

{ config, pkgs, lib, inputs, modulesPath,  ... }: {
  imports = [
    inputs.mixrank.nixosModules.dev-machine
    inputs.nixos-hardware.nixosModules.framework-13-7040-amd
    (modulesPath + "/installer/scan/not-detected.nix")
  ];

  santi-modules.desktop-environment.enable = true;
  # Bootloader.
  boot = {
    loader.systemd-boot.enable = true;
    loader.efi.canTouchEfiVariables = true;
    initrd = {
      luks.devices."luks-fc474bfb-2d0a-4a8a-99db-a55e15d8a836".device = "/dev/disk/by-uuid/fc474bfb-2d0a-4a8a-99db-a55e15d8a836";
      availableKernelModules = [
        "nvme"
        "xhci_pci"
        "thunderbolt"
        "usb_storage"
        "sd_mod"
      ];
    };
    kernelPackages = pkgs.linuxPackages_latest;
    kernelModules = [ "kvm-amd" ];
    kernelParams = lib.optionals (lib.versionOlder config.boot.kernelPackages.kernel.version "6.8") ["rtc_cmos.use_acpi_alarm=1"] ;
  };

  networking = {
    hostName = "larissa"; 
    networkmanager.enable = true;
    useDHCP = lib.mkDefault true;
  };
  # Custom services for laptop
  services = {
    power-profiles-daemon.enable = lib.mkDefault true;
    touchegg.enable = true;
    fwupd.enable = true;
    xserver.videoDrivers = [ "amdgpu" ];
    libinput = {
      enable = true;
      touchpad = {
        tapping = true;
        scrollMethod = "twofinger";
        clickMethod = "clickfinger";
        tappingButtonMap = "lrm";
      };
    };
  };
  fileSystems = {
    "/" = {
      device = "/dev/disk/by-uuid/bd4da861-db3f-4efd-82e1-ca925f8ef873";
      fsType = "ext4";
    };
    "/boot" = {
      device = "/dev/disk/by-uuid/D40E-FE35";
      fsType = "vfat";
      options = [ "fmask=0022" "dmask=0022" ];
    };
  };
  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
  hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
  system.stateVersion = "23.11"; 
}