summaryrefslogtreecommitdiff
path: root/machines/x/configuration.nix
blob: b2d9365a7c01d4fa38451bc8b2e7c0f11d1b0a27 (plain)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{ lib, inputs, pkgs, ... }:

let
  drive = "/dev/nvme0n1";
in {
  imports = [
    ./hardware-configuration.nix
    inputs.home-manager.nixosModules.default

    (import ../../disko.nix { device = drive; })

  ] ++ (map (path: ../../modules/${path}) [
    "core/global.nix"
    "core/impermanence.nix"

    "nvidia.nix"
    "amdgpu.nix"
    "amd.nix"
    "laptop.nix"

    "core/audio.nix"
    "core/bluetooth.nix"
    "core/fonts.nix"

    "compromyse.nix"

    "virtualization.nix"
    "remapcapslock.nix"

    "login.nix"
    # "plasma.nix"
    # "mate.nix"
    # "xfce.nix"
    "wm_utils.nix"
    "polkit.nix"

    # "sshfs-owo.nix"
  ]);

  boot.loader = {
    efi = {
      canTouchEfiVariables = true;
    };
    grub = {
      enable = true;
      efiSupport = true;
      device = drive;
    };
    grub2-theme = {
      enable = true;
      theme = "vimix";
      footer = true;
      customResolution = "1920x1080";
    };
  };

  boot.extraModprobeConfig = "options kvm_amd nested=1";

  services.fstrim.enable = true;

  networking.hostName = "x";

  programs.fuse.userAllowOther = true;
  home-manager = {
    extraSpecialArgs = { inherit inputs; };
    useGlobalPkgs = true;
    useUserPackages = true;
    sharedModules = [ inputs.plasma-manager.homeModules.plasma-manager ];
    users = {
      "compromyse" = import ./home.nix;
    };
  };

  programs.adb.enable = true;

  services.printing.enable = true;
  services.printing.drivers = [
    pkgs.brlaser
  ];

  networking.extraHosts = ''
    owo.compromyse.xyz owo
    oxo.compromyse.xyz oxo
    192.168.122.100 android
    192.168.122.101 dev
  '';
}