-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
56 lines (53 loc) · 1.58 KB
/
Copy pathflake.nix
File metadata and controls
56 lines (53 loc) · 1.58 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
{
description = "Description for the project";
inputs = {
devshell.url = "github:numtide/devshell";
flake-parts.url = "github:hercules-ci/flake-parts";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager/release-25.11";
nixgl.url = "github:nix-community/nixGL";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
stylix.inputs.nixpkgs.follows = "nixpkgs";
stylix.url = "github:nix-community/stylix/release-25.11";
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
treefmt-nix.url = "github:numtide/treefmt-nix";
};
outputs =
inputs@{ flake-parts, ... }:
let
meta = rec {
system = "x86_64-linux";
pkgs = import inputs.nixpkgs {
inherit system;
config = {
allowUnfree = true;
permittedInsecurePackages = [
"electron-24.8.6" # for bitwarden
"electron-28.3.3" # for logseq
];
};
overlays = [ inputs.nixgl.overlay ];
};
};
in
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
./nix/formatter.nix
./nix/devshells.nix
];
systems = [ "x86_64-linux" ];
flake = {
homeConfigurations.example = inputs.home-manager.lib.homeManagerConfiguration {
inherit (meta) pkgs;
extraSpecialArgs = {
assets = ./assets;
inherit inputs;
};
modules = [
inputs.stylix.homeModules.stylix
./homes/example
];
};
};
};
}