tangled
alpha
login
or
join now
quilling.dev
/
nixos-config
2
fork
atom
My personal nix config files. Feel free to import flake.
2
fork
atom
overview
issues
pulls
pipelines
add /overlays
quilling.dev
1 year ago
318d28df
347650f3
+27
-31
3 changed files
expand all
collapse all
unified
split
modules
home-manager
nixcfg.nix
nixos
nixcfg.nix
overlays
default.nix
+15
modules/home-manager/nixcfg.nix
···
3
lib,
4
config,
5
osConfig,
0
6
...
7
}:
8
with lib; let
···
56
config = {
57
allowUnfree = true;
58
};
0
0
0
0
0
0
0
0
0
0
0
0
0
0
59
};
60
nix = {
61
registry = osConfig.nix.registry;
···
3
lib,
4
config,
5
osConfig,
6
+
outputs,
7
...
8
}:
9
with lib; let
···
57
config = {
58
allowUnfree = true;
59
};
60
+
overlays = [
61
+
# Add overlays your own flake exports (from overlays and pkgs dir):
62
+
# outputs.overlays.additions
63
+
outputs.overlays.modifications
64
+
65
+
# You can also add overlays exported from other flakes:
66
+
# neovim-nightly-overlay.overlays.default
67
+
# inputs.nixpkgs-wayland.overlay # We only want to use these overlays in Wayland
68
+
69
+
# Or define it inline, for example:
70
+
# (final: prev: {
71
+
# hi = final.hello.overrideAttrs (oldAttrs: {
72
+
# patches = [ ./change-hello-to-hi.patch ];
73
+
];
74
};
75
nix = {
76
registry = osConfig.nix.registry;
+2
-1
modules/nixos/nixcfg.nix
···
2
inputs,
3
lib,
4
config,
0
5
...
6
}:
7
with lib; let
···
48
overlays = [
49
# Add overlays your own flake exports (from overlays and pkgs dir):
50
# outputs.overlays.additions
51
-
# outputs.overlays.modifications
52
53
# You can also add overlays exported from other flakes:
54
# neovim-nightly-overlay.overlays.default
···
2
inputs,
3
lib,
4
config,
5
+
outputs,
6
...
7
}:
8
with lib; let
···
49
overlays = [
50
# Add overlays your own flake exports (from overlays and pkgs dir):
51
# outputs.overlays.additions
52
+
outputs.overlays.modifications
53
54
# You can also add overlays exported from other flakes:
55
# neovim-nightly-overlay.overlays.default
+10
-30
overlays/default.nix
···
1
-
# This file defines overlays
2
-
{
3
-
# inputs,
4
-
...
5
-
}: {
6
-
# This one brings our custom packages from the 'pkgs' directory
7
additions = final: _prev: import ../pkgs final.pkgs;
8
-
9
-
# This one contains whatever you want to overlay
10
-
# You can change versions, add patches, set compilation flags, anything really.
11
-
# https://nixos.wiki/wiki/Overlays
12
modifications = final: prev: {
13
-
# example = prev.example.overrideAttrs (oldAttrs: rec {
14
-
# ...
15
-
# });
16
-
ffmpeg_7-full = prev.ffmpeg_7-full.override {
17
-
# Required for handbrake
18
-
# The latest xev release has broken the ffmpeg package until 7.1, or until the fix is merged in nixos-unstable.
19
-
# https://github.com/NixOS/nixpkgs/pull/353198
20
-
withXevd = false;
21
-
withXeve = false;
22
-
};
23
-
_7zz = prev._7zz.override { useUasm = true; }; # Hotfixes #353119 ; "Build failure: _7zz" ; https://github.com/NixOS/nixpkgs/issues/353119 ; Resolved by #353272 ; "_7zz: disable UASM properly" ; https://github.com/NixOS/nixpkgs/pull/353272
24
};
25
-
26
-
# When applied, the unstable nixpkgs set (declared in the flake inputs) will
27
-
# be accessible through 'pkgs.unstable'
28
-
# unstable-packages = final: _prev: {
29
-
# unstable = import inputs.nixpkgs-unstable {
30
-
# system = final.system;
31
-
# config.allowUnfree = true;
32
-
# };
33
-
# };
34
}
···
1
+
{...}: {
0
0
0
0
0
2
additions = final: _prev: import ../pkgs final.pkgs;
0
0
0
0
3
modifications = final: prev: {
4
+
# Hotfixes ffmpeg ; https://github.com/NixOS/nixpkgs/pull/353198
5
+
# ffmpeg_7-full = prev.ffmpeg_7-full.override {
6
+
# withXevd = false;
7
+
# withXeve = false;
8
+
# };
9
+
ffmpeg_7-full = prev.ffmpeg_7;
10
+
# Hotfixes #353119 ; "Build failure: _7zz" ; https://github.com/NixOS/nixpkgs/issues/353119
11
+
# Resolved by #353272 ; "_7zz: disable UASM properly" ; https://github.com/NixOS/nixpkgs/pull/353272
12
+
_7zz = prev._7zz.override { useUasm = true; };
0
0
13
};
0
0
0
0
0
0
0
0
0
14
}