tangled
alpha
login
or
join now
ladas552.me
/
Flake-ocean
0
fork
atom
My NixOS config Part 3: Flake-Parts Crusaders
nix.ladas552.me
hjem
nix
nixos
impermanence
flake-parts
nvfetcher
niri
noctalia
0
fork
atom
overview
issues
pulls
pipelines
nixfmt
Ladas552
1 month ago
9906587c
89178666
+56
-60
11 changed files
expand all
collapse all
unified
split
modules
hjemModules
mpv.nix
homeModules
Terminals
tui
helix
config
options.nix
lf
options
commands.nix
nixosModules
Desktops
cage
ghostty.nix
wrappers
helium
user.nix
nixvim
config
autocmd.nix
diagnostics.nix
nvf
config
diagnostics.nix
plugins
workflow
auto-save.nix
templates
dioxus
flake.nix
rust
flake.nix
+1
-1
modules/hjemModules/mpv.nix
···
58
58
scriptOpts = {
59
59
quality-menu = {
60
60
quality_strings_video = ''[ {"1080p" : "bestvideo[height<=?1080]"}, {"720p" : "bestvideo[height<=?720]"}, {"480p" : "bestvideo[height<=?480]"}, {"360p" : "bestvideo[height<=?360]"}, {"240p" : "bestvideo[height<=?240]"}, {"144p" : "bestvideo[height<=?144]"} ]'';
61
61
-
columns_video = ''-resolution|bitrate_total,size,codec_video'';
61
61
+
columns_video = "-resolution|bitrate_total,size,codec_video";
62
62
fetch_formats = "no";
63
63
hide_identical_columns = "yes";
64
64
};
+6
-6
modules/homeModules/Terminals/tui/helix/config/options.nix
···
3
3
{ config, ... }:
4
4
{
5
5
programs.helix.settings = {
6
6
-
# set theme from global theme or adwaita-dark if NixMux
7
7
-
theme =
8
8
-
if config.custom.meta.hostname == "NixMux" then
9
9
-
"adwaita-dark"
10
10
-
else
11
11
-
config.custom.style.colors.helix-theme;
6
6
+
# set theme from global theme or adwaita-dark if NixMux
7
7
+
theme =
8
8
+
if config.custom.meta.hostname == "NixMux" then
9
9
+
"adwaita-dark"
10
10
+
else
11
11
+
config.custom.style.colors.helix-theme;
12
12
editor = {
13
13
# LSP
14
14
lsp = {
+8
-8
modules/homeModules/Terminals/tui/lf/options/commands.nix
···
8
8
programs.lf = {
9
9
commands = {
10
10
trash = ''%${lib.getExe' pkgs.trash-cli "trash-put"} "$fx"'';
11
11
-
open-nvim = ''$nvim $f'';
12
12
-
open-helix = ''$hx $f'';
13
13
-
q = ''quit'';
11
11
+
open-nvim = "$nvim $f";
12
12
+
open-helix = "$hx $f";
13
13
+
q = "quit";
14
14
touch = # bash
15
15
''
16
16
%{{
···
44
44
# Ranger muscle memory
45
45
Dd = "trash";
46
46
DD = "delete";
47
47
-
"<f-7>" = ''touch'';
48
48
-
"<f-1>" = ''touch'';
49
49
-
"<c-d>" = ''quit'';
47
47
+
"<f-7>" = "touch";
48
48
+
"<f-1>" = "touch";
49
49
+
"<c-d>" = "quit";
50
50
V = "unselect";
51
51
-
"<esc>" = '':unselect;clear'';
51
51
+
"<esc>" = ":unselect;clear";
52
52
t = ":tag-toggle; down";
53
53
w = "";
54
54
S = "$fish";
···
60
60
f = "search";
61
61
F = "filter";
62
62
# Zoxide integration
63
63
-
z = ''push :z<space>'';
63
63
+
z = "push :z<space>";
64
64
};
65
65
cmdKeybindings = {
66
66
"<tab>" = "cmd-menu-complete";
+1
-1
modules/nixosModules/Desktops/cage/ghostty.nix
···
16
16
17
17
services.cage = {
18
18
enable = true;
19
19
-
program = ''${lib.meta.getExe' pkgs.ghostty "ghostty"}'';
19
19
+
program = "${lib.meta.getExe' pkgs.ghostty "ghostty"}";
20
20
extraArguments = [
21
21
"-m"
22
22
"extend"
+3
-3
modules/wrappers/helium/user.nix
···
9
9
# DRM
10
10
# https://github.com/imputnet/helium/issues/116#issuecomment-3668370766
11
11
# https://github.com/Michael-C-Buckley/nixos/blob/319f441b799e7c2db7eabd77524f5bbc3d74a3d2/modules/hjem/configs/applications/helium.nix#L15
12
12
-
# xdg.config.files."net.imput.helium/WidevineCdm/latest-component-updated-widevine-cdm".text = ''
13
13
-
# {"Path":"${pkgs.widevine-cdm}/share/google/chrome/WidevineCdm"}
14
14
-
# '';
12
12
+
xdg.config.files."net.imput.helium/WidevineCdm/latest-component-updated-widevine-cdm".text = ''
13
13
+
{"Path":"${pkgs.widevine-cdm}/share/google/chrome/WidevineCdm"}
14
14
+
'';
15
15
16
16
custom.imp.home.cache.directories = [
17
17
".cache/net.imput.helium"
+1
-1
modules/wrappers/nixvim/config/autocmd.nix
···
6
6
event = [ "textyankpost" ];
7
7
pattern = [ "*" ];
8
8
callback.__raw = # lua
9
9
-
''function() vim.highlight.on_yank({ higroup = 'visual', timeout = 300 }) end'';
9
9
+
"function() vim.highlight.on_yank({ higroup = 'visual', timeout = 300 }) end";
10
10
}
11
11
{
12
12
desc = "Preserve last editing position";
+2
-3
modules/wrappers/nixvim/config/diagnostics.nix
···
1
1
-
{ ... }:
2
1
{
3
2
flake.modules.nixvim.diagnostics = {
4
3
# Config for diagnostics with lsp
···
10
9
{
11
10
underline = {
12
11
enable = true;
13
13
-
severity.min.__raw = ''${sy}.WARN'';
12
12
+
severity.min.__raw = "${sy}.WARN";
14
13
};
15
14
virtual_lines = {
16
15
enable = true;
···
25
24
show_header = false;
26
25
};
27
26
signs = {
28
28
-
severity.min.__raw = ''${sy}.HINT'';
27
27
+
severity.min.__raw = "${sy}.HINT";
29
28
text = {
30
29
"${rsy}.ERROR" = "";
31
30
"${rsy}.WARN" = "";
+2
-2
modules/wrappers/nvf/config/diagnostics.nix
···
12
12
{
13
13
underline = {
14
14
enable = true;
15
15
-
severity.min = raw ''${sy}.WARN'';
15
15
+
severity.min = raw "${sy}.WARN";
16
16
};
17
17
virtual_lines = {
18
18
enable = true;
···
27
27
show_header = false;
28
28
};
29
29
signs = {
30
30
-
severity.min = raw ''${sy}.HINT'';
30
30
+
severity.min = raw "${sy}.HINT";
31
31
text = raw ''
32
32
{
33
33
[${sy}.ERROR] = "",
+1
-1
modules/wrappers/nvf/plugins/workflow/auto-save.nix
···
5
5
vim.extraPlugins = {
6
6
"auto-save".package = pkgs.vimPlugins.auto-save-nvim;
7
7
"auto-save".setup = # lua
8
8
-
''require('auto-save').setup{}'';
8
8
+
"require('auto-save').setup{}";
9
9
};
10
10
};
11
11
}
+25
-26
templates/dioxus/flake.nix
···
78
78
buildInputs =
79
79
with pkgs;
80
80
let
81
81
-
rustBuildInputs =
81
81
+
rustBuildInputs = [
82
82
+
pkgs.openssl
83
83
+
pkgs.libiconv
84
84
+
pkgs.pkg-config
85
85
+
]
86
86
+
++ pkgs.lib.optionals pkgs.stdenv.isLinux [
87
87
+
pkgs.glib
88
88
+
pkgs.gtk3
89
89
+
pkgs.libsoup_3
90
90
+
pkgs.webkitgtk_4_1
91
91
+
pkgs.xdotool
92
92
+
pkgs.cairo
93
93
+
pkgs.gdk-pixbuf
94
94
+
pkgs.gobject-introspection
95
95
+
pkgs.atkmm
96
96
+
pkgs.pango
97
97
+
]
98
98
+
++ pkgs.lib.optionals pkgs.stdenv.isDarwin (
99
99
+
with pkgs.darwin.apple_sdk.frameworks;
82
100
[
83
83
-
pkgs.openssl
84
84
-
pkgs.libiconv
85
85
-
pkgs.pkg-config
101
101
+
IOKit
102
102
+
Carbon
103
103
+
WebKit
104
104
+
Security
105
105
+
Cocoa
86
106
]
87
87
-
++ pkgs.lib.optionals pkgs.stdenv.isLinux [
88
88
-
pkgs.glib
89
89
-
pkgs.gtk3
90
90
-
pkgs.libsoup_3
91
91
-
pkgs.webkitgtk_4_1
92
92
-
pkgs.xdotool
93
93
-
pkgs.cairo
94
94
-
pkgs.gdk-pixbuf
95
95
-
pkgs.gobject-introspection
96
96
-
pkgs.atkmm
97
97
-
pkgs.pango
98
98
-
]
99
99
-
++ pkgs.lib.optionals pkgs.stdenv.isDarwin (
100
100
-
with pkgs.darwin.apple_sdk.frameworks;
101
101
-
[
102
102
-
IOKit
103
103
-
Carbon
104
104
-
WebKit
105
105
-
Security
106
106
-
Cocoa
107
107
-
]
108
108
-
);
107
107
+
);
109
108
in
110
109
[
111
110
(pkgs.rust-bin.stable.latest.default.override {
+6
-8
templates/rust/flake.nix
···
42
42
};
43
43
44
44
devShells.default = pkgs.mkShell {
45
45
-
nativeBuildInputs =
46
46
-
with pkgs;
47
47
-
[
48
48
-
rustToolchain
49
49
-
pkg-config
50
50
-
gcc
51
51
-
openssl
52
52
-
];
45
45
+
nativeBuildInputs = with pkgs; [
46
46
+
rustToolchain
47
47
+
pkg-config
48
48
+
gcc
49
49
+
openssl
50
50
+
];
53
51
};
54
52
}
55
53
);