refactor(nix): Use home-manager

Looks like nix-darwin is planning to drop per-user launchd (or perhaps
per-user feature entirely).
This commit is contained in:
Ahmad Ansori Palembani 2024-07-13 09:09:20 +07:00
parent dff532c060
commit 2ef4e6f407
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
4 changed files with 75 additions and 23 deletions

View file

@ -3,11 +3,17 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-24.05-darwin";
nix-darwin.url = "github:LnL7/nix-darwin";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs@{ self, nix-darwin, nixpkgs }:
outputs = inputs@{ self, nix-darwin, nixpkgs, home-manager }:
let
vars = {
rev = self.rev or self.dirtyRev or null;
@ -17,7 +23,7 @@
darwinConfigurations = (
import ./darwin {
inherit (nixpkgs) lib;
inherit inputs nixpkgs nix-darwin vars;
inherit inputs nixpkgs nix-darwin home-manager vars;
}
);
};