diff options
| author | Mike Vink <mike@pionative.com> | 2024-10-08 08:31:00 +0200 |
|---|---|---|
| committer | Mike Vink <mike@pionative.com> | 2024-10-08 08:31:00 +0200 |
| commit | 7134976e1bd1ab8f6f0a85e9efe23b85f0d54250 (patch) | |
| tree | b4ef794c708e47ec84ee940e891f32cd0d6116d9 /flake.nix | |
| parent | 80e35cbd9bb40390980647497affa7b093bf3d48 (diff) | |
fix nix config for darwin
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 36 |
1 files changed, 20 insertions, 16 deletions
@@ -17,7 +17,6 @@ neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay"; nix-darwin = { url = "path:/Users/ivi/nix-darwin"; - inputs.nixpkgs.follows = "nixpkgs"; }; }; @@ -27,12 +26,14 @@ home-manager, sops-nix, deploy-rs, + nix-darwin, ... }: let lib = - (nixpkgs.lib.extend + ((nixpkgs.lib.extend (_: _: home-manager.lib)).extend - (import ./lib inputs); + (_: _: nix-darwin.lib)).extend + (import ./lib inputs); in with lib; rec { inherit lib; @@ -101,35 +102,38 @@ }; }; - work = { - system = "aarch64-darwin"; + vm-aarch64 = { + system = "aarch64-linux"; modules = [ - ./machines/work.nix + ./machines/vm-aarch64.nix ] - ++ modulesIn ./profiles/core; + ++ modulesIn ./profiles/core + ++ modulesIn ./profiles/graphical; opts = { - isDarwin = true; + isStation = true; syncthing = { enable = true; - id = "GR5MHK2-HDCFX4I-Y7JYKDN-EFTQFG6-24CXSHB-M5C6R3G-2GWX5ED-VEPAQA7"; + id = "LDZVZ6H-KO3BKC6-FMLZOND-MKXI4DF-SNT27OT-Q5KMN2M-A2DYFNQ-3BWUYA6"; }; }; }; + }; - vm-aarch64 = { - system = "aarch64-linux"; + darwinConfigurations = mkSystems { + work = { + system = "aarch64-darwin"; modules = [ - ./machines/vm-aarch64.nix + ./machines/work.nix ] - ++ modulesIn ./profiles/core - ++ modulesIn ./profiles/graphical; + ++ modulesIn ./profiles/core; opts = { - isStation = true; + isDarwin = true; + configPath = "/Users/${my.username}/nix-config"; syncthing = { enable = true; - id = "LDZVZ6H-KO3BKC6-FMLZOND-MKXI4DF-SNT27OT-Q5KMN2M-A2DYFNQ-3BWUYA6"; + id = "GR5MHK2-HDCFX4I-Y7JYKDN-EFTQFG6-24CXSHB-M5C6R3G-2GWX5ED-VEPAQA7"; }; }; }; |
