me like nix
1{
2 description = "My NixOS Flake Configuration";
3
4 inputs = {
5 # Nixpkgs (stable or unstable)
6 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
7
8 # Home Manager
9 home-manager = {
10 url = "github:nix-community/home-manager/master";
11 inputs.nixpkgs.follows = "nixpkgs"; # Ensures Home Manager uses the same nixpkgs
12 };
13 catppuccin.url = "github:catppuccin/nix";
14 niri.url = "github:sodiboo/niri-flake";
15 nixarr.url = "github:rasmus-kirk/nixarr";
16 zen-browser = {
17 url = "github:0xc000022070/zen-browser-flake";
18 inputs.nixpkgs.follows = "nixpkgs";
19 };
20 };
21
22 outputs =
23 {
24 self,
25 nixpkgs,
26 home-manager,
27 catppuccin,
28 niri,
29 nixarr,
30 ...
31 }@inputs:
32 {
33 nixosConfigurations = {
34 # Replace "nixos" with your actual desired hostname if it's different
35 # This "nixos" must match the `networking.hostName` in your configuration.nix
36 mira = nixpkgs.lib.nixosSystem {
37 system = "x86_64-linux";
38 modules = [
39 # Your main configuration file
40 ./hosts/mira/configuration.nix
41 catppuccin.nixosModules.catppuccin
42
43 ({
44 nixpkgs.overlays = [ niri.overlays.niri ];
45 })
46
47 # nixarr module
48 nixarr.nixosModules.default
49
50 # Home Manager module
51 home-manager.nixosModules.home-manager
52 {
53 home-manager.extraSpecialArgs = { inherit inputs; };
54 home-manager.users.sean = import ./home.nix;
55 }
56 ];
57 specialArgs = { inherit inputs; };
58 };
59 framework16 = nixpkgs.lib.nixosSystem {
60 system = "x86_64-linux";
61 modules = [
62 # Your main configuration file
63 ./hosts/framework16/configuration.nix
64 catppuccin.nixosModules.catppuccin
65
66 ({
67 nixpkgs.overlays = [ niri.overlays.niri ];
68 })
69
70 # Home Manager module
71 home-manager.nixosModules.home-manager
72 {
73 home-manager.extraSpecialArgs = { inherit inputs; };
74 home-manager.users.sean = import ./home.nix;
75 }
76 ];
77 specialArgs = { inherit inputs; };
78 };
79 };
80 };
81}