Skip to content

Commit 99c6adb

Browse files
committed
bluray module, mutter scaling hack
1 parent f6c7f88 commit 99c6adb

File tree

17 files changed

+192
-98
lines changed

17 files changed

+192
-98
lines changed

common/workstation/apps-extra.nix

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,7 @@ let
55
in {
66
environment.systemPackages = let
77
p = pkgs;
8-
in if isMinimal then [
9-
# Media players
10-
p.mpv p.vlc
11-
p.ffmpeg
12-
] else [
13-
# Media players with Blu-Ray support
14-
p.mpv_bd p.vlc_bd p.keydb
15-
p.ffmpeg_bd
16-
8+
in if isMinimal then [ ] else [
179
# Media creation
1810
p.audacity
1911
p.vcv-rack
@@ -24,9 +16,7 @@ in {
2416
p.img2pdf
2517

2618
# Text, documents
27-
p.libreoffice
2819
p.calibre
29-
p.xdot
3020

3121
# Typefaces
3222
p.fontforge-gtk p.nodePackages.svgo

common/workstation/apps.nix

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525
# Media
2626
p.tremotesf
2727

28+
# Media players
29+
p.mpv p.vlc
30+
p.ffmpeg
31+
32+
# Documents
33+
p.libreoffice-fresh
34+
2835
## Programming / Software development
2936

3037
# Interpreters
@@ -42,6 +49,7 @@
4249
p._7zz
4350
p.nix-tree
4451
p.binutils # strings
52+
p.binwalk
4553
p.difftastic
4654

4755
# Misc
@@ -50,9 +58,6 @@
5058

5159
# TODO: Remove
5260
nixpkgs.config.permittedInsecurePackages = [
53-
# Logseq 0.10 dep
54-
"electron-27.3.11"
55-
5661
# nheko dep
5762
"olm-3.2.16"
5863
];

common/workstation/docs.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
];
99

1010
documentation = {
11+
nixos.includeAllModules = true;
12+
1113
dev.enable = true;
1214

1315
man = {

flake.lock

Lines changed: 46 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

home/workstation/theming/adwaita.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ let
5555
css = /* css */ ''
5656
${cssColors}
5757
58-
.nautilus-window.background { background-color: ${c.base00} !important; }
58+
.nautilus-window.background { background-color: ${c.base00}; }
5959
'';
6060
in {
6161
xdg.configFile = {

local-modules.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ rec {
55
modulePaths.nixos = rec {
66
default = local.misc;
77

8-
98
local = {
109
misc = modules/nixos/misc;
1110
};

modules/nixos/misc/bluray.nix

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{ config, lib, pkgs, ... }:
2+
3+
{
4+
options.misc.bluray = let
5+
inherit (lib) mkEnableOption;
6+
in {
7+
decryption.enable = mkEnableOption "Blu-ray decryption support";
8+
};
9+
10+
config = let
11+
cfg = config.misc.bluray;
12+
in {
13+
nixpkgs.overlays = lib.mkIf cfg.decryption.enable [
14+
(final: prev: {
15+
mpv = prev.mpv_bd;
16+
mpv-unwrapped = prev.mpv-unwrapped_bd;
17+
vlc = prev.vlc_bd;
18+
ffmpeg = prev.ffmpeg_bd;
19+
})
20+
];
21+
22+
environment.systemPackages = lib.mkIf cfg.decryption.enable [
23+
pkgs.keydb
24+
];
25+
};
26+
}

modules/nixos/misc/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ in {
66
imports = [
77
./udev.nix
88
./rebuilds.nix
9+
./bluray.nix
910
];
1011

1112
options.misc = {

modules/nixos/misc/udev.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
usbDevSpec = t.submodule {
1414
options = {
15-
vid = mkOption { type = usbIds; };
16-
pid = mkOption { type = usbIds; };
15+
vid = mkOption { type = usbIds; description = "Vendor ID"; };
16+
pid = mkOption { type = usbIds; description = "Product ID"; };
1717
};
1818
};
1919
in {

pkgs/overlays/bluray/default.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
final: prev: {
44
libbluray_bd = prev.libbluray.override {
5-
# TODO: NixOS/nixpkgs#296748
6-
# withJava = true;
7-
5+
withJava = true;
86
withAACS = true;
97
withBDplus = true;
108
};

0 commit comments

Comments
 (0)