1{
2 self,
3 config,
4 ...
5}: {
6 imports = [
7 ./home.nix
8 ./secrets.nix
9 self.nixosModules.locale-en-gb
10 ];
11
12 networking.hostName = "morgana";
13 system.stateVersion = "25.05";
14 time.timeZone = "America/Sao_Paulo";
15 myHardware.acer.aspire.A515-52G.enable = true;
16
17 myNixOS = {
18 programs = {
19 lanzaboote.enable = true;
20 nix.enable = true;
21 nix-ld.enable = true;
22 steam.enable = true;
23 };
24 profiles = {
25 base.enable = true;
26 workstation.enable = true;
27
28 btrfs = {
29 enable = true;
30 deduplicate = true;
31 snapshots = true;
32 };
33 tmpOnTmpfs.enable = true;
34 swap = {
35 enable = true;
36 size = 8192;
37 location = "/data/.swap";
38 };
39
40 autoUpgrade = {
41 enable = true;
42 allowReboot = false;
43 operation = "switch";
44 };
45 };
46 desktop.gnome.enable = true;
47 services = {
48 caddy.enable = true;
49 dnsmasq = {
50 enable = true;
51 longCaches = false;
52 };
53 flatpak.enable = true;
54 tailscale = {
55 enable = true;
56 enableCaddy = true;
57 operator = "ayla";
58 };
59 aria2.enable = true;
60 syncthing = {
61 enable = true;
62 certFile = config.age.secrets.syncthingCert.path;
63 keyFile = config.age.secrets.syncthingKey.path;
64 user = "ayla";
65 };
66 };
67 };
68
69 myUsers = {
70 ayla = {
71 enable = true;
72 password = "REDACTED";
73 };
74 };
75
76 boot.initrd = {
77 availableKernelModules = [
78 "xhci_pci"
79 "ahci"
80 "usb_storage"
81 "sd_mod"
82 "rtsx_pci_sdmmc"
83 ];
84
85 luks.devices = {
86 crypted1.device = "/dev/disk/by-uuid/796c4c65-22b9-40e2-a928-66d20d528330";
87 crypted2.device = "/dev/disk/by-uuid/7665834d-1f38-4c1e-9b44-449ea8fc055c";
88 };
89 };
90
91 fileSystems = {
92 "/" = {
93 device = "/dev/disk/by-uuid/e88969b5-98a0-4d46-a059-8e07ebf2689e";
94 fsType = "btrfs";
95 options = ["subvol=@" "compress=zstd" "noatime"];
96 };
97
98 "/home" = {
99 device = "/dev/disk/by-uuid/e88969b5-98a0-4d46-a059-8e07ebf2689e";
100 fsType = "btrfs";
101 options = ["subvol=@home" "compress=zstd" "noatime"];
102 };
103
104 "/home/.snapshots" = {
105 device = "/dev/disk/by-uuid/e88969b5-98a0-4d46-a059-8e07ebf2689e";
106 fsType = "btrfs";
107 options = ["subvol=.snapshots" "compress=zstd" "noatime"];
108 };
109
110 "/nix" = {
111 device = "/dev/disk/by-uuid/e88969b5-98a0-4d46-a059-8e07ebf2689e";
112 fsType = "btrfs";
113 options = ["subvol=@nix" "compress=zstd" "noatime"];
114 };
115
116 "/boot" = {
117 device = "/dev/disk/by-uuid/0CC3-3395";
118 fsType = "vfat";
119 options = ["fmask=0077" "dmask=0077"];
120 };
121
122 "/data" = {
123 device = "/dev/disk/by-uuid/e5cf35fa-55bc-499f-a39b-e844a442e0f0";
124 fsType = "btrfs";
125 options = ["subvol=@data" "compress=zstd" "noatime"];
126 };
127 };
128}