2024-12-08 23:18:53 +00:00
|
|
|
{
|
|
|
|
description = "Home Manager configuration of millironx";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
# Specify the source of Home Manager and Nixpkgs.
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
2024-12-09 17:04:14 +00:00
|
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
2024-12-08 23:18:53 +00:00
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager/release-24.11";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
agenix = {
|
|
|
|
url = "github:ryantm/agenix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-12-09 17:04:14 +00:00
|
|
|
outputs = { nixpkgs, nixpkgs-unstable, home-manager, agenix, ... }:
|
2024-12-08 23:18:53 +00:00
|
|
|
let
|
|
|
|
system = "aarch64-darwin";
|
2024-12-09 21:56:52 +00:00
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
|
|
|
pkgs-unstable = import nixpkgs-unstable {
|
|
|
|
inherit system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
2024-12-08 23:18:53 +00:00
|
|
|
in {
|
|
|
|
homeConfigurations."millironx" =
|
|
|
|
home-manager.lib.homeManagerConfiguration {
|
|
|
|
inherit pkgs;
|
|
|
|
|
|
|
|
# Specify your home configuration modules here, for example,
|
|
|
|
# the path to your home.nix.
|
|
|
|
modules = [ ./home.nix agenix.homeManagerModules.default ];
|
|
|
|
|
|
|
|
# Optionally use extraSpecialArgs
|
|
|
|
# to pass through arguments to home.nix
|
2024-12-09 21:56:52 +00:00
|
|
|
extraSpecialArgs = { inherit pkgs-unstable; };
|
2024-12-08 23:18:53 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|