Skip to content

Commit d4c65bd

Browse files
committed
feat: add nix configurations
1 parent ca092b6 commit d4c65bd

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
{
44
imports = [
5+
./nix.nix
56
./zsh
67
./fonts.nix
78
./git.nix

flake.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
[ youtube-dl zig pivy usbutils python-build reload ];
4545
in
4646
flake-utils.lib.eachDefaultSystem (system: rec {
47-
homeConfigurations.default = home-manager.lib.homeManagerConfiguration rec {
47+
homeConfigurations.default = home-manager.lib.homeManagerConfiguration {
4848
pkgs = import nixpkgs.outPath {
4949
inherit system;
5050
config = { allowUnfree = true; };
@@ -56,6 +56,7 @@
5656
}
5757
./default.nix
5858
];
59+
extraSpecialArgs.flakeInputs = inputs;
5960
};
6061

6162
packages.home-manager = home-manager.packages.${system}.default;

nix.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{ lib, flakeInputs, ... }:
2+
3+
{
4+
nix = {
5+
registry = {
6+
nixpkgs.flake = flakeInputs.nixpkgs;
7+
templates.to = {
8+
type = "github";
9+
repo = "flakes";
10+
owner = "aiotter";
11+
ref = "templates";
12+
};
13+
};
14+
};
15+
}

0 commit comments

Comments
 (0)