summaryrefslogtreecommitdiff
path: root/hosts/kunagisa.nix
blob: 60d7d650e4bb616b313f4d97390dc4b8ef4e64b7 (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
# 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, modulesPath, inputs, ... }: {
  imports = [
    inputs.mixrank.nixosModules.dev-machine
    (modulesPath + "/installer/scan/not-detected.nix")
  ];
  santi-modules.desktop-environment.enable = true;
  # Bootloader.
  boot = {
    loader = {
      systemd-boot.enable = true;
      efi.canTouchEfiVariables = true;
    };
    initrd = {
      availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" ];
      kernelModules = [ "amdgpu" ];
    };
    binfmt.emulatedSystems = [ "aarch64-linux" ];
    kernelModules = [ "kvm-amd" ];
    kernelPackages = pkgs.linuxPackages_latest;
    extraModulePackages = [ ];
  };
 
  networking = {
    hostName = "kunagisa"; # Define your hostname.
    networkmanager.enable = true;
    firewall.enable = false;
    useDHCP = lib.mkDefault true;
  };

  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
  
  fileSystems = {
    "/" = {
      device = "/dev/disk/by-uuid/96c114a2-ffd7-476d-80fa-51e670c27e4b";
      fsType = "ext4";
    };
    "/boot" = {
      device = "/dev/disk/by-uuid/AA22-4A81";
      fsType = "vfat";
    };
  };

  swapDevices = [
    { device = "/dev/disk/by-uuid/1a204e5c-05cb-4e7f-b859-927fb024fb12"; }
  ];
  hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
  system.stateVersion = "23.05";
}