Skip to content

Commit 079c792

Browse files
committed
redo Fox darwin config
1 parent 380fbbc commit 079c792

File tree

9 files changed

+52
-88
lines changed

9 files changed

+52
-88
lines changed

darwin-configurations/Fox.nix

Lines changed: 0 additions & 19 deletions
This file was deleted.

darwin-modules/default.nix

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
{ ezModules, ... }:
2-
31
{
42
imports = [
5-
ezModules.context
6-
ezModules.nix
7-
ezModules.security
8-
ezModules.user
3+
./context.nix
4+
./nix.nix
5+
./security.nix
6+
./user.nix
97
../overlays.nix
108
];
119
}

flake.lock

Lines changed: 20 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
dev.url = "github:esselius/dev";
99
dev.inputs.nixpkgs.follows = "nixpkgs-unstable";
1010

11-
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
11+
nixpkgs.follows = "nixpkgs-unstable";
1212
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
1313
nixpkgs-darwin.follows = "nixpkgs-unstable";
14+
nixpkgs-nixos.url = "github:NixOS/nixpkgs/nixos-24.11";
1415

15-
# cfg-work.url = "github:esselius/cfg-work";
1616
raspberry-pi-nix.url = "github:tstat/raspberry-pi-nix/v0.4.1";
1717
raspberry-pi-nix.inputs.nixpkgs.follows = "nixpkgs";
1818
authentik-nix = {
@@ -34,11 +34,6 @@
3434
krewfile.inputs.nixpkgs.follows = "nixpkgs";
3535

3636
flake-parts.url = "github:hercules-ci/flake-parts";
37-
ez-configs = {
38-
url = "github:ehllie/ez-configs";
39-
inputs.nixpkgs.follows = "nixpkgs";
40-
inputs.flake-parts.follows = "flake-parts";
41-
};
4237

4338
agenix = {
4439
url = "github:ryantm/agenix";
@@ -59,24 +54,31 @@
5954
flake-parts.lib.mkFlake { inherit inputs; } {
6055
imports = [
6156
inputs.dev.flakeModule
62-
inputs.ez-configs.flakeModule
6357
];
6458

6559
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
6660

67-
ezConfigs = {
68-
root = ./.;
69-
globalArgs = { inherit inputs; };
61+
flake.darwinConfigurations.Fox = inputs.nix-darwin.lib.darwinSystem {
62+
modules = [
63+
./darwin-modules/default.nix
64+
./darwin-modules/tiling-wm.nix
65+
./darwin-modules/homebrew-packages
66+
./darwin-modules/linux-builder.nix
67+
inputs.nix-homebrew.darwinModules.nix-homebrew
68+
{
69+
nixpkgs.hostPlatform = "aarch64-darwin";
7070

71-
darwin.hosts = {
72-
Fox.userHomeModules = [ "peteresselius" ];
73-
};
74-
nixos.hosts = {
75-
adama.userHomeModules = [ "peteresselius" ];
76-
vm.userHomeModules = [ "peteresselius" ];
77-
starbuck.userHomeModules = [ "peteresselius" ];
78-
};
71+
context = "home";
72+
formfactor = "desktop";
73+
mainUser = "peteresselius";
74+
75+
system.stateVersion = 4;
76+
nixpkgs-path = inputs.nixpkgs;
77+
}
78+
];
79+
specialArgs = { inherit inputs; };
7980
};
81+
8082
dev.enable = true;
8183
};
8284
}

home-modules/default.nix

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

33
{
44
inherit (osConfig) context formfactor mainUser;
55

66
home = {
77
stateVersion = "24.05";
8-
homeDirectory = (if pkgs.stdenv.isDarwin then "/Users/" else "/home/") + osConfig.mainUser;
9-
username = osConfig.mainUser;
8+
homeDirectory = (if pkgs.stdenv.isDarwin then "/Users/" else "/home/") + config.mainUser;
9+
username = config.mainUser;
1010
};
1111
}

nixos-configurations/adama.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
context = "home";
2121
formfactor = "server";
22+
mainUser = "peteresselius";
2223

2324
hardware-rpi5 = {
2425
enable = true;

nixos-configurations/cain.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
context = "home";
1515
formfactor = "laptop";
16+
mainUser = "peteresselius";
1617

1718
time.timeZone = "Europe/Stockholm";
1819

nixos-configurations/starbuck.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
context = "home";
1616
formfactor = "server";
17+
mainUser = "peteresselius";
1718

1819
profiles.telemetry.enable = true;
1920

nixos-configurations/vm.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
context = "work";
99
formfactor = "vm";
10+
mainUser = "peteresselius";
1011

1112
imports = [
1213
ezModules.hardware-vm

0 commit comments

Comments
 (0)