-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
75 lines (66 loc) · 2.1 KB
/
flake.nix
File metadata and controls
75 lines (66 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
# https://nixos.wiki/wiki/Flakes
description = "My dotfiles managed as a nix flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
# nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
};
outputs =
inputs@{
self,
flake-parts,
home-manager,
nixpkgs,
...
}:
flake-parts.lib.mkFlake { inherit inputs; } {
flake = {
homeManagerModules = import ./modules/home-manager;
# work machine
homeConfigurations."bokleynen" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.aarch64-darwin;
# Pass additional argument to home.nix
extraSpecialArgs = {
inherit (self) inputs outputs;
};
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [
home/home.nix
./home/programs/atuin.nix
./home/programs/alacritty.nix
./home/programs/bat.nix
./home/programs/delta.nix
./home/programs/direnv.nix
./home/programs/eza.nix
./home/programs/fd.nix
./home/programs/gh.nix
./home/programs/ghostty.nix
./home/programs/git.nix
./home/programs/go.nix
./home/programs/jujutsu.nix
./home/programs/k9s.nix
./home/programs/neovim.nix
./home/programs/zellij.nix
./home/programs/zsh.nix
];
};
};
systems = [ "aarch64-darwin" ];
perSystem =
{ pkgs, self, ... }:
{
# shell for working on the home-manager config.
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
just
];
};
formatter = pkgs.nixfmt-rfc-style;
};
};
}