nix-dotfiles/flake.nix

39 lines
1.2 KiB
Nix
Raw Normal View History

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";
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";
};
};
outputs = { nixpkgs, nixpkgs-unstable, home-manager, agenix, ... }:
2024-12-08 23:18:53 +00:00
let
system = "aarch64-darwin";
pkgs = nixpkgs.legacyPackages.${system};
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
extraSpecialArgs = {
pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};
};
2024-12-08 23:18:53 +00:00
};
};
}