diff options
| author | Mel <mel@rnrd.eu> | 2025-07-12 04:00:28 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2025-07-12 04:00:28 +0200 |
| commit | 4fd56f73360372665dd072adac2a78156d4caf2d (patch) | |
| tree | ce681316938f536ad2309e1711ba3eb40046c8d2 /modules | |
| parent | 90ae56d81617248ed6570dfc7fb67940db6f8450 (diff) | |
| download | minerals-4fd56f73360372665dd072adac2a78156d4caf2d.tar.zst minerals-4fd56f73360372665dd072adac2a78156d4caf2d.zip | |
Setup new M1 MacBook as 'Moissanite' with Asahi Linux
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/common.nix | 12 | ||||
| -rw-r--r-- | modules/nix.nix | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/modules/common.nix b/modules/common.nix index fb6479d..fcaf896 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -16,8 +16,6 @@ ./nix-ld.nix ]; - boot.kernelPackages = pkgs.linuxPackages_latest; - services.envfs.enable = true; virtualisation.libvirtd.enable = true; @@ -36,11 +34,13 @@ }; }; - networking.hostName = me; + networking.hostName = me.name; # use corsac dns server - networking.nameservers = let - corsacTailnet = "100.64.100.100"; - in [ corsacTailnet ]; + networking.nameservers = + let + corsacTailnet = "100.64.100.100"; + in + [ corsacTailnet ]; services.resolved.enable = true; diff --git a/modules/nix.nix b/modules/nix.nix index a96813b..0f4366a 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -38,7 +38,7 @@ in # yes nix, i know my flake is dirty!!! warn-dirty = false; } - (mkIf (me != "bismuth") bismuthCache) + (mkIf (me.name != "bismuth") bismuthCache) ]; distributedBuilds = true; @@ -57,7 +57,7 @@ in ]; }; in - lib.filter (m: m.hostName != me) [ + lib.filter (m: m.hostName != me.name) [ { hostName = tailnet "bismuth"; maxJobs = 32; |
