-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
60 lines (55 loc) · 1.83 KB
/
flake.nix
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
{
description = "Home Manager configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
lfcd-sh = {
url = "https://raw.githubusercontent.com/gokcehan/lf/8bfa3a6d347cad3940d224d14181f58bbf39811e/etc/lfcd.sh";
flake = false;
};
fzf-git-sh = {
url = "https://raw.githubusercontent.com/junegunn/fzf-git.sh/28b544a7b6d284b8e46e227b36000089b45e9e00/fzf-git.sh";
flake = false;
};
};
outputs = { nixpkgs, home-manager, fzf-git-sh, lfcd-sh, ... }:
let
system = "aarch64-darwin";
pkgs = import nixpkgs { inherit system; };
fzf-git-sh-package = pkgs.writeShellScriptBin "fzf-git.sh" (builtins.readFile fzf-git-sh);
lfcd-sh-package = pkgs.writeShellScriptBin "lfcd.sh" (builtins.readFile lfcd-sh);
in
{
homeConfigurations.vaporif =
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
{
home = {
username = "vaporif";
homeDirectory = "/Users/vaporif";
stateVersion = "24.05";
};
}
./home.nix
# I don't want to use nix-darwin as support is brittle
# easier to install alacritty + karabiner via brew & hook up configs
{
home.file = {
".config/alacritty".source = ./alacritty;
".config/karabiner".source = ./karabiner;
};
}
{
xdg.configFile."zellij/config.kdl".text = "${builtins.readFile ./zellij/config.kdl}";
}
];
extraSpecialArgs = {
inherit fzf-git-sh-package lfcd-sh-package;
};
};
};
}