nix-dotfiles/flake.nix

44 lines
1.3 KiB
Nix
Raw Permalink 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 = 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
extraSpecialArgs = { inherit pkgs-unstable; };
2024-12-08 23:18:53 +00:00
};
};
}