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 copyparty.url = "github:9001/copyparty";
21 };
22
23 outputs =
24 {
25 self,
26 nixpkgs,
27 home-manager,
28 catppuccin,
29 niri,
30 nixarr,
31 copyparty,
32 ...
33 }@inputs:
34 {
35 nixosConfigurations = {
36 # Replace "nixos" with your actual desired hostname if it's different
37 # This "nixos" must match the `networking.hostName` in your configuration.nix
38 mira = nixpkgs.lib.nixosSystem {
39 system = "x86_64-linux";
40 modules = [
41 # Your main configuration file
42 ./hosts/mira/configuration.nix
43 catppuccin.nixosModules.catppuccin
44
45 copyparty.nixosModules.default
46
47 ({
48 nixpkgs.overlays = [
49 niri.overlays.niri
50 copyparty.overlays.default
51 ];
52 })
53
54 # nixarr module
55 nixarr.nixosModules.default
56
57 # Home Manager module
58 home-manager.nixosModules.home-manager
59 {
60 home-manager.extraSpecialArgs = { inherit inputs; };
61 home-manager.users.sean = import ./hosts/mira/home.nix;
62 }
63 ];
64 specialArgs = { inherit inputs; };
65 };
66 framework16 = nixpkgs.lib.nixosSystem {
67 system = "x86_64-linux";
68 modules = [
69 # Your main configuration file
70 ./hosts/framework16/configuration.nix
71 catppuccin.nixosModules.catppuccin
72
73 ({
74 nixpkgs.overlays = [ niri.overlays.niri ];
75 })
76
77 # Home Manager module
78 home-manager.nixosModules.home-manager
79 {
80 home-manager.extraSpecialArgs = { inherit inputs; };
81 home-manager.users.sean = import ./hosts/framework16/home.nix;
82 }
83 ];
84 specialArgs = { inherit inputs; };
85 };
86 };
87 };
88}