This repository has been archived on 2026-11-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dotfiles/flake.nix
T
2026-08-09 17:11:23 +02:00

32 lines
762 B
Nix

{
description = "Home Manager configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager, agenix, ... }:
let
mkHome = system: home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.${system};
modules = [
agenix.homeManagerModules.age
./home.nix
];
};
in {
homeConfigurations = {
mac = mkHome "aarch64-darwin";
linux = mkHome "x86_64-linux";
};
};
}