blob: cd71bbf08fa4779056c7ffe070923b83ec86d01c [file] [log] [blame]
Skyler Greyf08a6192024-06-01 23:55:20 +00001# SPDX-FileCopyrightText: 2024 Auxolotl Infrastructure Contributors
2# SPDX-FileCopyrightText: 2024 Clicks Codes
3#
4# SPDX-License-Identifier: GPL-3.0-only
5
6{ pkgs, modulesPath, ... }:
7{
8 boot.loader.systemd-boot.enable = true;
9 boot.loader.efi.canTouchEfiVariables = true;
10
11 time.timeZone = "Etc/UTC";
12
13 environment.systemPackages = with pkgs; [ neovim ];
14
15 clicks = {
16 nix.enable = true;
17
18 security = {
19 doas.enable = true;
20
21 acme = {
22 enable = true;
23 email = "minion@clicks.codes";
24 };
25 };
26
27 services = {
28 ssh.enable = true;
29 };
Skyler Grey40ae7a02024-06-06 21:22:25 +000030
31 storage = {
Skyler Greyf4d05f02024-06-06 21:25:39 +000032 raid.enable = true;
Skyler Grey40ae7a02024-06-06 21:22:25 +000033 impermanence = {
34 enable = true;
Skyler Greyd3377402024-06-06 22:01:26 +000035 devices = {
36 root = "/dev/disk/by-uuid/ab5c2f52-a737-4b29-a505-e3d0b9d0714c";
37 persist = "/dev/md/a1d1:persist";
38 };
Skyler Grey40ae7a02024-06-06 21:22:25 +000039 };
40 };
Skyler Greyf08a6192024-06-01 23:55:20 +000041 };
42
43 boot.initrd.availableKernelModules = [
44 "nvme"
45 "xhci_pci"
46 "ahci"
47 "usbhid"
48 "uas"
49 "usb_storage"
50 "sd_mod"
51 ];
52 boot.initrd.kernelModules = [ ];
53 boot.kernelModules = [ "kvm-amd" ];
54 boot.extraModulePackages = [ ];
55
Skyler Grey40ae7a02024-06-06 21:22:25 +000056 fileSystems."/nix" = {
Skyler Greyf08a6192024-06-01 23:55:20 +000057 device = "/dev/disk/by-uuid/ab5c2f52-a737-4b29-a505-e3d0b9d0714c";
58 fsType = "btrfs";
Skyler Grey40ae7a02024-06-06 21:22:25 +000059 options = [ "subvol=@nix" ];
Skyler Greyf08a6192024-06-01 23:55:20 +000060 };
61
62 fileSystems."/boot" = {
63 device = "/dev/disk/by-uuid/880D-BBAB";
64 fsType = "vfat";
65 options = [
66 "fmask=0022"
67 "dmask=0022"
68 ];
69 };
70
71 swapDevices = [ ];
72
73 networking.useDHCP = true;
74
75 system.stateVersion = "24.05";
76}