Skip to content

Commit 71fe30b

Browse files
committed
updates
1 parent 459cdb5 commit 71fe30b

File tree

10 files changed

+30
-72
lines changed

10 files changed

+30
-72
lines changed

darwin-modules/homebrew-packages/default.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
{
44
nix-homebrew = {
55
enable = true;
6-
user = config.mainUser;
6+
user = config.system.primaryUser;
77
};
88
homebrew.enable = true;
99

1010
imports = [
1111
./common.nix
12-
./home.nix
13-
./work.nix
1412
];
1513
}

darwin-modules/homebrew-packages/home.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
{ lib, config, ... }:
2-
31
{
42
homebrew = {
5-
casks = lib.mkIf (config.context == "home") [
3+
casks = [
64
"plex-media-server"
75
"screens-connect"
86
"steam"

flake.nix

Lines changed: 17 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
};
7575

7676
outputs =
77-
inputs@{ self, flake-parts, ... }:
77+
inputs@{ flake-parts, ... }:
7878
flake-parts.lib.mkFlake { inherit inputs; } {
7979
imports = [
8080
inputs.dev.flakeModule
@@ -109,6 +109,9 @@
109109
{ pkgs, ... }:
110110
{
111111
nix.package = pkgs.nix; # Standalone home-manager requires an explicit nix package
112+
nixpkgs.config = {
113+
allowUnfree = true;
114+
};
112115
}
113116
)
114117
];
@@ -164,13 +167,23 @@
164167
./darwin-modules/tiling-wm.nix
165168
./darwin-modules/linux-builder.nix
166169
./darwin-modules/security.nix
167-
./darwin-modules/homebrew-packages/common.nix
170+
./darwin-modules/homebrew-packages
168171
./darwin-modules/user.nix
169172

170173
./overlays.nix
171174

172175
inputs.nix-homebrew.darwinModules.nix-homebrew
173176
];
177+
rpi = [
178+
./nixos-modules/context.nix
179+
./nixos-modules/nix.nix
180+
./nixos-modules/profiles
181+
182+
./overlays.nix
183+
184+
inputs.raspberry-pi-nix.nixosModules.raspberry-pi
185+
inputs.authentik-nix.nixosModules.default
186+
];
174187
}.${class};
175188
};
176189

@@ -218,7 +231,6 @@
218231
modules = [
219232
./nixos-configurations/adama.nix
220233
./nixos-modules/default.nix
221-
inputs.raspberry-pi-nix.nixosModules.raspberry-pi
222234
inputs.agenix.nixosModules.default
223235
inputs.agenix-rekey.nixosModules.default
224236
inputs.authentik-nix.nixosModules.default
@@ -253,56 +265,23 @@
253265
fsType = "vfat";
254266
};
255267
};
256-
257-
pyproject-nix-lib = inputs.pyproject-nix.lib;
258268
}
259-
inputs.home-manager-nixos-24-11.nixosModules.home-manager
260-
(
261-
{ config, ... }:
262-
{
263-
home-manager.users.${config.mainUser} = {
264-
imports = [
265-
./home-configurations/peteresselius.nix
266-
./home-modules/default.nix
267-
inputs.agenix.homeManagerModules.default
268-
inputs.krewfile.homeModules.krewfile
269-
inputs.nix-index-database.hmModules.nix-index
270-
inputs.nixvim.homeModules.nixvim
271-
{
272-
home.stateVersion = "24.05";
273-
}
274-
];
275-
};
276-
home-manager.extraSpecialArgs = { inherit inputs; };
277-
}
278-
)
279269
];
280270
specialArgs = { inherit inputs; };
281271
};
272+
282273
starbuck = {
283274
arch = "aarch64";
284275
class = "rpi";
285276
deployable = true;
286277
nixpkgs = inputs.nixpkgs-nixos-24-11;
287278
modules = [
288279
./nixos-configurations/starbuck.nix
289-
./nixos-modules/default.nix
290-
inputs.raspberry-pi-nix.nixosModules.raspberry-pi
291280
inputs.agenix.nixosModules.default
292281
inputs.agenix-rekey.nixosModules.default
293-
inputs.authentik-nix.nixosModules.default
294282
inputs.microvm.nixosModules.host
295283

296284
{
297-
microvm.vms.haos = {
298-
flake = self;
299-
updateFlake = "github:esselius/cfg";
300-
};
301-
}
302-
303-
{
304-
nixpkgs-path = inputs.nixpkgs-nixos-24-11;
305-
nixpkgs-unstable-path = inputs.nixpkgs-unstable;
306285
age.rekey = {
307286
hostPubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFi1DoYv7wvIkYvTrjUVEqZI00H6d5437IgprVdFMI1+";
308287
masterIdentities = [
@@ -329,26 +308,8 @@
329308
};
330309
};
331310
}
332-
inputs.home-manager-nixos-24-11.nixosModules.home-manager
333-
(
334-
{ config, ... }:
335-
{
336-
home-manager.users.${config.mainUser} = {
337-
imports = [
338-
./home-configurations/peteresselius.nix
339-
./home-modules/default.nix
340-
inputs.agenix.homeModules.default
341-
inputs.krewfile.homeModules.krewfile
342-
inputs.nix-index-database.homeModules.nix-index
343-
inputs.nixvim.homeModules.nixvim
344-
{
345-
home.stateVersion = "24.05";
346-
}
347-
];
348-
};
349-
}
350-
)
351311
];
312+
specialArgs = { inherit inputs; };
352313
};
353314
};
354315
};

home-modules/neovim.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@
1414
shiftwidth = 2;
1515
undofile = true;
1616
};
17+
nixpkgs.pkgs = pkgs;
1718

1819

1920
editorconfig.enable = true;
2021

2122
plugins = {
23+
avante.enable = true;
24+
copilot-vim.enable = true;
2225
clangd-extensions.enable = true;
2326
web-devicons.enable = true;
2427

home-modules/nix.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
nix = {
3-
# package = pkgs.nixVersions.nix_2_23;
43
settings = {
54
substituters = [
65
"https://cache.nixos.org"

home-modules/profiles/tools/common.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@
4242
unzip
4343
arion
4444
docker-client
45+
nixfmt-rfc-style
4546
];
4647
}

nixos-modules/default.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{ ... }:
2-
31
{
42
imports = [
53
./context.nix

nixos-modules/nix.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ config, ... }:
1+
{ inputs, ... }:
22

33
{
44
nix = {
@@ -14,8 +14,8 @@
1414
};
1515

1616
nixPath = [
17-
"nixpkgs=${config.nixpkgs-path}"
18-
"nixpkgs-unstable=${config.nixpkgs-unstable-path}"
17+
"nixpkgs=${inputs.nixpkgs}"
18+
"nixpkgs-unstable=${inputs.nixpkgs-unstable}"
1919
];
2020
};
2121
}

overlays.nix

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{ inputs
22
, pkgs
3-
, config
43
, ...
54
}:
65
let
76
unstable-pkgs = import inputs.nixpkgs-unstable { inherit (pkgs.stdenv) system; };
7+
pyproject-nix-lib = inputs.pyproject-nix.lib;
88
in
99
{
1010
nixpkgs.overlays = [
@@ -13,9 +13,7 @@ in
1313
passport-openidconnect = (prev.callPackage ./pkgs/passport-openidconnect { }).package;
1414
};
1515
audi_connect_ha = prev.callPackage ./pkgs/audi_connect_ha.nix { };
16-
easee_hass = unstable-pkgs.callPackage ./pkgs/easee_hass.nix {
17-
inherit (config) pyproject-nix-lib;
18-
};
16+
easee_hass = unstable-pkgs.callPackage ./pkgs/easee_hass.nix { inherit pyproject-nix-lib; };
1917

2018
darwin = prev.darwin.overrideScope (
2119
_: _: {

pkgs/pyeasee.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ buildPythonPackage rec {
88
inherit pname version;
99
hash = "sha256-+g3g8yGBVJdABHqt/w7Wq1gh+nqMF3a+2G3MW4yWeGg=";
1010
};
11+
12+
format = "setuptools";
1113
}

0 commit comments

Comments
 (0)