-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
49 lines (43 loc) · 1.22 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
{
description = "Home Manager configuration of directxman12";
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";
};
alacritty-apply = {
url = "github:directxman12/alacritty-apply";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, home-manager, ... }@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
homeConfigurations."directxman12" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
alacritty-apply = inputs.alacritty-apply;
};
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [
({config, pkgs, ...}: {
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (pkgs.lib.getName pkg) [
"google-chrome-dev"
"obsidian"
];
nixpkgs.config.permittedInsecurePackages = [
"electron-25.9.0" # for obsidian, for a bit
];
})
./home.nix
];
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
};
};
}