Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
91 lines (78 loc) · 2.27 KB
/
Copy pathflake.nix
File metadata and controls
91 lines (78 loc) · 2.27 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
{
description = "Declarative configuration of osu!";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
denix.url = "github:yunfachi/denix/rewrite";
denix.inputs.nixpkgs.follows = "nixpkgs";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
systems.url = "github:nix-systems/default";
nuschtos-search.url = "github:NuschtOS/search";
nuschtos-search.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
inputs@{
flake-parts,
denix,
systems,
nuschtos-search,
self,
...
}:
flake-parts.lib.mkFlake
{
inherit inputs;
specialArgs.delib = inputs.denix.lib.recursivelyExtend (_: _: { nix-osu = self.lib; });
}
(
{
lib,
delib,
config,
modulesPath,
...
}:
{
systems = import systems;
imports = [ denix.flakeModule ] ++ denix.lib.umport { path = ./modules; };
denix = {
myconfigPrefix = null;
imports = [
denix.denixModules.homeManager
];
};
denixSettings = {
generateSystems = false;
generateModules = false;
};
flake = {
lib = import ./lib {
inherit delib lib;
};
homeModules.default = config.denixConfiguration.genModule {
moduleSystem = "home";
};
};
perSystem =
{ pkgs, system, ... }:
{
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
};
packages = {
osu-lazer-bin = pkgs.callPackage ./pkgs/osu-lazer-bin { };
documentation = nuschtos-search.packages.${system}.mkSearch {
modules = [
self.homeModules.default
{ _module.args.pkgs = pkgs; }
];
urlPrefix = "https://github.com/yunfachi/nix-osu/blob/master/";
baseHref = "/";
title = "Nix-Osu Search";
};
};
};
}
);
}