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