feat(nix-darwin): add config for apavel-a01

This commit is contained in:
reo101 2022-11-22 23:36:10 +02:00
parent 9032738351
commit 850280f483
3 changed files with 175 additions and 1 deletions

View file

@ -16,6 +16,12 @@
inputs.home-manager.follows = "home-manager";
};
# Nix Darwin
nix-darwin = {
url = "github:lnl7/nix-darwin/master";
inputs.nixpkgs.follows = "nixpkgs";
};
# Home Manager
home-manager = {
url = "github:nix-community/home-manager/release-22.05";
@ -49,6 +55,7 @@
outputs = { self
, nixpkgs
, nix-on-droid
, nix-darwin
, home-manager
# , hardware
# , nix-colors
@ -121,6 +128,18 @@
default = cheetah;
};
darwinConfigurations =
let mkHost = system: hostname: nix-darwin.lib.darwinSystem {
inherit system;
modules = [
./nix-darwin/${hostname}/configuration.nix
] ++ (builtins.attrValues nixDarwinModules);
inputs = { inherit inputs outputs darwin nixpkgs; };
};
in rec {
apavel-a01 = mkHost "x86_64-darwin" "apavel-a01";
};
homeConfigurations = {
# "nix-on-droid@cheetah" = home-manager.lib.homeManagerConfiguration {
# pkgs = nixpkgs.legacyPackages.x86_64-linux;