Files
nixfotfiles_1/flake.nix
2023-02-18 15:19:04 -05:00

41 lines
1.1 KiB
Nix

{
description = "Home Manager configuration of Stu";
inputs = {
# Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix.url = "github:ryantm/agenix";
};
outputs = { nixpkgs, home-manager, agenix,... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt;
in {
homeConfigurations."sstent" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [
./home.nix
# Add agenix for secret management.
# agenix.nixosModules.age
# {
# environment.systemPackages = [agenix.defaultPackage.${system}];
# }
];
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
};
};
}