me like nix
1# Do not modify this file! It was generated by 'nixos-generate-config'
2# and may be overwritten by future invocations. Please make changes
3# to /etc/nixos/configuration.nix instead.
4{
5 config,
6 lib,
7 modulesPath,
8 ...
9}:
10
11{
12 imports = [
13 (modulesPath + "/installer/scan/not-detected.nix")
14 ];
15
16 boot.initrd.availableKernelModules = [
17 "xhci_pci"
18 "ahci"
19 "nvme"
20 "usbhid"
21 "usb_storage"
22 "sd_mod"
23 ];
24 boot.kernelModules = [ "kvm-intel" ];
25 boot.extraModulePackages = [ ];
26 fileSystems."/" = {
27 device = "/dev/disk/by-uuid/e51cb271-90b6-49ae-89aa-491b17e59d97";
28 fsType = "ext4";
29 };
30
31 fileSystems."/boot" = {
32 device = "/dev/disk/by-uuid/0089-74FA";
33 fsType = "vfat";
34 options = [
35 "fmask=0077"
36 "dmask=0077"
37 ];
38 };
39 fileSystems."/mnt/storage1" = {
40 device = "/dev/disk/by-uuid/3bb5c3d3-f3ce-4c54-a86c-589b477eda20";
41 fsType = "ext4";
42 options = [ "noatime" ];
43 };
44 fileSystems."/mnt/storage2" = {
45 device = "/dev/disk/by-uuid/40b9cab0-9f25-4b36-9f22-6ebea1fe6e7a";
46 fsType = "ext4";
47 options = [ "noatime" ];
48 };
49 fileSystems."/mnt/ssd" = {
50 device = "/dev/disk/by-uuid/f71b3774-2192-498e-b67f-f6b575accdda";
51 fsType = "ext4";
52 options = [ "noatime" ];
53 };
54
55 fileSystems."/var/lib/frigate/recordings" = {
56 device = "/mnt/storage2/frigate/recordings";
57 fsType = "none";
58 options = [ "bind" ];
59 depends = [ "/mnt/storage2" ];
60 };
61 fileSystems."/var/lib/frigate/clips" = {
62 device = "/mnt/storage2/frigate/clips";
63 fsType = "none";
64 options = [ "bind" ];
65 depends = [ "/mnt/storage2" ];
66 };
67
68 systemd.tmpfiles.rules = [
69 "d /mnt/storage1 0755 sean users -"
70 "d /mnt/storage2 0755 sean users -"
71 "d /mnt/ssd 0755 sean users -"
72 "z /mnt/ssd 0755 sean users -"
73 ];
74
75 swapDevices = [
76 {
77 device = "/var/lib/swapfile";
78 size = 8 * 1024; # 8GB
79 }
80 ];
81
82 networking.useDHCP = lib.mkDefault true;
83
84 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
85 hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
86}