|
3 | 3 |
|
4 | 4 | inputs = { |
5 | 5 | nixos-hardware.url = "github:NixOS/nixos-hardware"; |
6 | | - hyprland = { |
7 | | - type = "git"; |
8 | | - url = "https://github.com/hyprwm/Hyprland"; |
9 | | - submodules = true; |
10 | | - }; |
11 | | - hyprland-plugins = { |
12 | | - url = "github:hyprwm/hyprland-plugins"; |
13 | | - inputs.hyprland.follows = "hyprland"; |
14 | | - }; |
15 | 6 |
|
16 | 7 | nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland"; |
17 | 8 | nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions"; |
|
56 | 47 | inputs.nixpkgs.follows = "nixpkgs"; |
57 | 48 | }; |
58 | 49 |
|
59 | | - nixpkgs-vsCodeExtensionsPythonPinned = { |
60 | | - url = "github:NixOs/nixpkgs?rev=2d068ae5c6516b2d04562de50a58c682540de9bf"; |
61 | | - }; |
| 50 | + # nixpkgs-vsCodeExtensionsPythonPinned = { |
| 51 | + # url = "github:NixOs/nixpkgs?rev=2d068ae5c6516b2d04562de50a58c682540de9bf"; |
| 52 | + # }; |
62 | 53 |
|
63 | 54 | vicinae.url = "github:vicinaehq/vicinae"; |
64 | 55 | }; |
|
70 | 61 | pre-commit-hooks, |
71 | 62 | home-manager, |
72 | 63 | catppuccin, |
73 | | - hyprland, |
74 | | - hyprland-plugins, |
75 | 64 | stylix, |
76 | 65 | nixvim, |
77 | 66 | sops-nix, |
|
82 | 71 | } @ inputs: let |
83 | 72 | system = "x86_64-linux"; |
84 | 73 |
|
| 74 | + overlays = [ |
| 75 | + inputs.nixpkgs-wayland.overlay |
| 76 | + ]; |
| 77 | + |
85 | 78 | pkgs = import nixpkgs { |
86 | | - inherit system; |
87 | | - overlays = [ |
88 | | - inputs.nixpkgs-wayland.overlay |
89 | | - ]; |
| 79 | + inherit system overlays; |
90 | 80 | config = { |
91 | 81 | allowUnfree = true; |
92 | 82 | allowUnfreePredicate = _: true; |
93 | 83 | }; |
94 | 84 | }; |
95 | 85 |
|
96 | | - vsCodeExtensionsPythonPinnedPkgs = import inputs.nixpkgs-vsCodeExtensionsPythonPinned { |
97 | | - inherit system; |
98 | | - }; |
| 86 | + # vsCodeExtensionsPythonPinnedPkgs = import inputs.nixpkgs-vsCodeExtensionsPythonPinned { |
| 87 | + # inherit system; |
| 88 | + # }; |
99 | 89 |
|
100 | 90 | # zedNixPkgs = import inputs.nixpkgs-zed { |
101 | 91 | # inherit system; |
|
105 | 95 | dan = { |
106 | 96 | isNormalUser = true; |
107 | 97 | initialPassword = "pw123"; |
108 | | - extraGroups = ["wheel" "docker" "video" "networkmanager"]; |
| 98 | + extraGroups = [ |
| 99 | + "wheel" |
| 100 | + "docker" |
| 101 | + "video" |
| 102 | + "networkmanager" |
| 103 | + ]; |
109 | 104 | packages = [pkgs.home-manager]; |
110 | 105 | }; |
111 | 106 | underdel = { |
112 | 107 | isNormalUser = true; |
113 | 108 | initialPassword = "pw123"; |
114 | | - extraGroups = ["video" "networkmanager"]; |
| 109 | + extraGroups = [ |
| 110 | + "video" |
| 111 | + "networkmanager" |
| 112 | + ]; |
115 | 113 | packages = [pkgs.home-manager]; |
116 | 114 | }; |
117 | 115 | }; |
|
158 | 156 |
|
159 | 157 | host-users-map = { |
160 | 158 | DanPC = ["dan"]; |
161 | | - framnix = ["dan" "underdel"]; |
| 159 | + framnix = [ |
| 160 | + "dan" |
| 161 | + "underdel" |
| 162 | + ]; |
162 | 163 | }; |
163 | 164 |
|
164 | 165 | mkNixosConfiguration = { |
|
180 | 181 | modules = [ |
181 | 182 | ./modules/NixOS/shared |
182 | 183 | ./systems/x86_64-linux/${host} |
183 | | - # hyprland.nixosModules.default |
184 | 184 | catppuccin.nixosModules.catppuccin |
185 | 185 | stylix.nixosModules.stylix |
186 | 186 | {programs.hyprland.xwayland.enable = true;} |
|
198 | 198 | inherit pkgs; |
199 | 199 | extraSpecialArgs = { |
200 | 200 | # these args are passed to the other home-manager modules |
201 | | - inherit user inputs vsCodeExtensionsPythonPinnedPkgs; # zedNixpkgs |
| 201 | + inherit user inputs; # zedNixpkgs |
202 | 202 | host-settings = import ./modules/settings/${host}; |
203 | 203 | userConfig = user-configs.${user}; |
204 | 204 | }; |
|
207 | 207 | ./modules/home-manager/hosts/${host} |
208 | 208 | ./modules/home-manager/shared |
209 | 209 | catppuccin.homeModules.catppuccin |
210 | | - nixvim.homeManagerModules.nixvim |
| 210 | + nixvim.homeModules.nixvim |
211 | 211 | sops-nix.homeManagerModules.sops |
212 | 212 | vicinae.homeManagerModules.default |
| 213 | + stylix.homeModules.stylix |
213 | 214 | ]; |
214 | 215 | }; |
215 | 216 | in { |
|
234 | 235 | # NixOS configuration entrypoint |
235 | 236 | # Available through 'nixos-rebuild --flake .#<hostname>' (hosts are taken from the 'hosts' list above) |
236 | 237 | nixosConfigurations = |
237 | | - nixpkgs.lib.attrsets.mapAttrs (host: user-selection: mkNixosConfiguration {inherit host user-selection;}) |
| 238 | + nixpkgs.lib.attrsets.mapAttrs ( |
| 239 | + host: user-selection: mkNixosConfiguration {inherit host user-selection;} |
| 240 | + ) |
238 | 241 | host-users-map; |
239 | 242 |
|
240 | 243 | # Standalone home-manager configuration entrypoint |
|
243 | 246 | homeConfigurations = |
244 | 247 | pkgs.lib.concatMapAttrs ( |
245 | 248 | host: users: |
246 | | - pkgs.lib.listToAttrs (pkgs.lib.map (user: { |
| 249 | + pkgs.lib.listToAttrs ( |
| 250 | + pkgs.lib.map (user: { |
247 | 251 | name = "${user}@${host}"; |
248 | 252 | value = mkHomeConfiguration {inherit host user;}; |
249 | 253 | }) |
250 | | - users) |
| 254 | + users |
| 255 | + ) |
251 | 256 | ) |
252 | 257 | host-users-map; |
253 | 258 | }; |
|
0 commit comments