diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-02-17 22:51:13 +0100 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-02-17 22:51:13 +0100 |
commit | e2cb67573509e4bde23c2ca5aa093794ddfb69b1 (patch) | |
tree | a16f16c82e4c22bcc7c51f70105546b7347fbfb1 /flake.nix | |
parent | Dotfiles: Emacs: Open file in same window on left click (diff) | |
download | nixos-config-e2cb67573509e4bde23c2ca5aa093794ddfb69b1.tar.gz nixos-config-e2cb67573509e4bde23c2ca5aa093794ddfb69b1.tar.bz2 nixos-config-e2cb67573509e4bde23c2ca5aa093794ddfb69b1.zip |
Nix: Initial darwin setup
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix index 1f474c1..d51c66d 100644 --- a/flake.nix +++ b/flake.nix @@ -9,6 +9,11 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + nix-darwin = { + url = "github:LnL7/nix-darwin"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + hardware.url = "github:NixOS/nixos-hardware"; impermanence.url = "github:nix-community/impermanence"; @@ -40,7 +45,7 @@ }; }; - outputs = inputs @ { self, nixpkgs, home-manager, ... }: + outputs = inputs @ { self, nixpkgs, home-manager, nix-darwin, ... }: let user = "baitinq"; @@ -71,25 +76,35 @@ commonInherits = { inherit (nixpkgs) lib; - inherit inputs nixpkgs home-manager; + inherit inputs nixpkgs home-manager nix-darwin; inherit user secrets dotfiles hosts hardwares systems; }; in { nixosConfigurations = import ./hosts (commonInherits // { isNixOS = true; + isMacOS = false; + isIso = false; + isHardware = true; + }); + + darwinConfigurations = import ./hosts (commonInherits // { + isNixOS = false; + isMacOS = true; isIso = false; isHardware = true; }); homeConfigurations = import ./hosts (commonInherits // { isNixOS = false; + isMacOS = false; isIso = false; isHardware = false; }); isoConfigurations = import ./hosts (commonInherits // { isNixOS = true; + isMacOS = false; isIso = true; isHardware = false; user = "nixos"; @@ -97,6 +112,7 @@ nixosNoHardwareConfigurations = import ./hosts (commonInherits // { isNixOS = true; + isMacOS = false; isIso = false; isHardware = false; }); |