Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
124 lines (115 loc) · 3.06 KB
/
Copy pathflake.nix
File metadata and controls
124 lines (115 loc) · 3.06 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
description = "Home Manager configuration of kevin";
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";
};
nixgl.url = "github:nix-community/nixGL";
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix.url = "github:ryantm/agenix";
stylix = {
url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs";
};
pipewire-screenaudio = {
url = "github:IceDBorn/pipewire-screenaudio";
inputs.nixpkgs.follows = "nixpkgs";
};
noctalia = {
url = "github:noctalia-dev/noctalia/legacy-v4";
inputs.nixpkgs.follows = "nixpkgs";
};
niveK77pur-nixos.url = "github:niveK77pur/nixos";
};
outputs = inputs @ {
nixpkgs,
home-manager,
nix-index-database,
agenix,
...
}: let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
};
inherit (pkgs) lib;
git = {
userEmail = "kevinbiewesch@yahoo.fr";
userName = "Kevin Laurent Biewesch";
};
stylix-base16Scheme = "${pkgs.base16-schemes}/share/themes/everforest.yaml";
# {{{
makeUser = user: modulePath: {
"${user}" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [
nix-index-database.homeModules.nix-index
agenix.homeManagerModules.default
{home.packages = [agenix.packages.${system}.default];}
./nix/home.nix
./nix/categories.nix
modulePath
];
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
extraSpecialArgs = let
helper = {
# Create a cleaner alias for fish using a function
makeFishAliasFunction = args:
args
// {
wraps = args.body;
description =
"alias: "
+ (args.description or args.body);
};
};
in {
inherit
system
inputs
helper
git
stylix-base16Scheme
;
username = user;
};
};
}; # }}}
in {
homeConfigurations =
lib.mergeAttrsList
(map
(f:
makeUser (lib.removeSuffix ".nix" (baseNameOf f)) f)
(lib.fileset.toList ./homeConfigurations));
devShells.${system}.default = pkgs.mkShell {
name = "home-manager";
packages = [
# python
pkgs.ruff
pkgs.isort
pkgs.basedpyright
# nix
pkgs.nixd
pkgs.nil
pkgs.alejandra
pkgs.statix
# lua
pkgs.lua-language-server
pkgs.stylua
pkgs.selene
pkgs.fish-lsp
];
};
};
}
# vim: fdm=marker