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.ideapad5 = inputs.nixpkgs.lib.nixosSystem {
9 system = "x86_64-linux";
10 modules = [
11 # Hardware
12 ../../hosts/ideapad5/hardware-configuration.nix
13
14 # External NixOS modules
15 inputs.home-manager.nixosModules.home-manager
16 { nixpkgs.overlays = [ inputs.niri.overlays.niri ]; }
17
18 # Common aspects
19 nm.nix-settings
20 nm.base
21 nm.security
22 nm.sean
23 nm.desktop
24 nm.fonts
25
26 # Lenovo IdeaPad-specific aspects
27 nm.lenovo-ideapad5
28
29 # Home Manager
30 {
31 home-manager.users.sean = {
32 imports = [
33 inputs.niri.homeModules.niri
34 inputs.noctalia.homeModules.default
35 inputs.zen-browser.homeModules.beta
36 inputs.agenix.homeManagerModules.default
37 hm.sean
38 hm.desktop
39 hm.fonts
40 hm.shell
41 hm.editor
42 hm.apps
43 ];
44 };
45 }
46 ];
47 };
48}