me like nix
1{ inputs, config, ... }:
2
3let
4 nm = config.flake.modules.nixos;
5 hm = config.flake.modules.homeManager;
6in
7{
8 flake.nixosConfigurations.mira = inputs.nixpkgs.lib.nixosSystem {
9 system = "x86_64-linux";
10 modules = [
11 # Hardware
12 ../../hosts/mira/hardware-configuration.nix
13
14 # External NixOS modules
15 inputs.agenix.nixosModules.default
16 inputs.nixarr.nixosModules.default
17 inputs.home-manager.nixosModules.home-manager
18 {
19 nixpkgs.overlays = [
20 inputs.niri.overlays.niri
21 inputs.copyparty.overlays.default
22 ];
23 }
24
25 # Common aspects
26 nm.nix-settings
27 nm.base
28 nm.security
29 nm.sean
30 nm.desktop
31 nm.fonts
32 nm.apps
33
34 # Mira-specific aspects
35 nm.nvidia
36 nm.ollama
37 nm.media-server
38 nm.home-automation
39 nm.gaming
40 nm.mira-extras
41
42 # Home Manager
43 {
44 home-manager.users.sean = {
45 imports = [
46 inputs.niri.homeModules.niri
47 inputs.zen-browser.homeModules.beta
48 inputs.agenix.homeManagerModules.default
49 hm.sean
50 hm.desktop
51 hm.noctalia
52 hm.fonts
53 hm.shell
54 hm.editor
55 hm.apps
56 ];
57 };
58 }
59 ];
60 };
61}