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 dnsmasq = {
49 enable = true;
50 longCaches = false;
51 };
52 flatpak.enable = true;
53 tailscale = {
54 enable = true;
55 enableCaddy = false;
56 operator = "ayla";
57 };
58 aria2.enable = true;
59 syncthing = {
60 enable = true;
61 certFile = config.age.secrets.syncthingCert.path;
62 keyFile = config.age.secrets.syncthingKey.path;
63 user = "ayla";
64 };
65 };
66 };
67
68 myUsers = {
69 ayla = {
70 enable = true;
71 passwordFile = config.age.secrets.aylaPassword.path;
72 };
73 };
74
75 boot.initrd = {
76 availableKernelModules = [
77 "xhci_pci"
78 "ahci"
79 "usb_storage"
80 "sd_mod"
81 "rtsx_pci_sdmmc"
82 ];
83
84 luks.devices = {
85 crypted1.device = "/dev/disk/by-uuid/796c4c65-22b9-40e2-a928-66d20d528330";
86 crypted2.device = "/dev/disk/by-uuid/7665834d-1f38-4c1e-9b44-449ea8fc055c";
87 };
88 };
89
90 fileSystems = {
91 "/" = {
92 device = "/dev/disk/by-uuid/e88969b5-98a0-4d46-a059-8e07ebf2689e";
93 fsType = "btrfs";
94 options = ["subvol=@" "compress=zstd" "noatime"];
95 };
96
97 "/home" = {
98 device = "/dev/disk/by-uuid/e88969b5-98a0-4d46-a059-8e07ebf2689e";
99 fsType = "btrfs";
100 options = ["subvol=@home" "compress=zstd" "noatime"];
101 };
102
103 "/home/.snapshots" = {
104 device = "/dev/disk/by-uuid/e88969b5-98a0-4d46-a059-8e07ebf2689e";
105 fsType = "btrfs";
106 options = ["subvol=.snapshots" "compress=zstd" "noatime"];
107 };
108
109 "/nix" = {
110 device = "/dev/disk/by-uuid/e88969b5-98a0-4d46-a059-8e07ebf2689e";
111 fsType = "btrfs";
112 options = ["subvol=@nix" "compress=zstd" "noatime"];
113 };
114
115 "/boot" = {
116 device = "/dev/disk/by-uuid/0CC3-3395";
117 fsType = "vfat";
118 options = ["fmask=0077" "dmask=0077"];
119 };
120
121 "/data" = {
122 device = "/dev/disk/by-uuid/e5cf35fa-55bc-499f-a39b-e844a442e0f0";
123 fsType = "btrfs";
124 options = ["subvol=@data" "compress=zstd" "noatime"];
125 };
126 };
127}