My NixOS config Part 3: Flake-Parts Crusaders nix.ladas552.me
hjem nix nixos impermanence flake-parts nvfetcher niri noctalia

nixfmt

Ladas552 9906587c 89178666

+56 -60
+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 - columns_video = ''-resolution|bitrate_total,size,codec_video''; 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 - # set theme from global theme or adwaita-dark if NixMux 7 - theme = 8 - if config.custom.meta.hostname == "NixMux" then 9 - "adwaita-dark" 10 - else 11 - config.custom.style.colors.helix-theme; 6 + # set theme from global theme or adwaita-dark if NixMux 7 + theme = 8 + if config.custom.meta.hostname == "NixMux" then 9 + "adwaita-dark" 10 + else 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 - open-nvim = ''$nvim $f''; 12 - open-helix = ''$hx $f''; 13 - q = ''quit''; 11 + open-nvim = "$nvim $f"; 12 + open-helix = "$hx $f"; 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 - "<f-7>" = ''touch''; 48 - "<f-1>" = ''touch''; 49 - "<c-d>" = ''quit''; 47 + "<f-7>" = "touch"; 48 + "<f-1>" = "touch"; 49 + "<c-d>" = "quit"; 50 50 V = "unselect"; 51 - "<esc>" = '':unselect;clear''; 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 - z = ''push :z<space>''; 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 - program = ''${lib.meta.getExe' pkgs.ghostty "ghostty"}''; 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 - # xdg.config.files."net.imput.helium/WidevineCdm/latest-component-updated-widevine-cdm".text = '' 13 - # {"Path":"${pkgs.widevine-cdm}/share/google/chrome/WidevineCdm"} 14 - # ''; 12 + xdg.config.files."net.imput.helium/WidevineCdm/latest-component-updated-widevine-cdm".text = '' 13 + {"Path":"${pkgs.widevine-cdm}/share/google/chrome/WidevineCdm"} 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 - ''function() vim.highlight.on_yank({ higroup = 'visual', timeout = 300 }) end''; 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 - { ... }: 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 - severity.min.__raw = ''${sy}.WARN''; 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 - severity.min.__raw = ''${sy}.HINT''; 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 - severity.min = raw ''${sy}.WARN''; 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 - severity.min = raw ''${sy}.HINT''; 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 - ''require('auto-save').setup{}''; 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 - rustBuildInputs = 81 + rustBuildInputs = [ 82 + pkgs.openssl 83 + pkgs.libiconv 84 + pkgs.pkg-config 85 + ] 86 + ++ pkgs.lib.optionals pkgs.stdenv.isLinux [ 87 + pkgs.glib 88 + pkgs.gtk3 89 + pkgs.libsoup_3 90 + pkgs.webkitgtk_4_1 91 + pkgs.xdotool 92 + pkgs.cairo 93 + pkgs.gdk-pixbuf 94 + pkgs.gobject-introspection 95 + pkgs.atkmm 96 + pkgs.pango 97 + ] 98 + ++ pkgs.lib.optionals pkgs.stdenv.isDarwin ( 99 + with pkgs.darwin.apple_sdk.frameworks; 82 100 [ 83 - pkgs.openssl 84 - pkgs.libiconv 85 - pkgs.pkg-config 101 + IOKit 102 + Carbon 103 + WebKit 104 + Security 105 + Cocoa 86 106 ] 87 - ++ pkgs.lib.optionals pkgs.stdenv.isLinux [ 88 - pkgs.glib 89 - pkgs.gtk3 90 - pkgs.libsoup_3 91 - pkgs.webkitgtk_4_1 92 - pkgs.xdotool 93 - pkgs.cairo 94 - pkgs.gdk-pixbuf 95 - pkgs.gobject-introspection 96 - pkgs.atkmm 97 - pkgs.pango 98 - ] 99 - ++ pkgs.lib.optionals pkgs.stdenv.isDarwin ( 100 - with pkgs.darwin.apple_sdk.frameworks; 101 - [ 102 - IOKit 103 - Carbon 104 - WebKit 105 - Security 106 - Cocoa 107 - ] 108 - ); 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 - nativeBuildInputs = 46 - with pkgs; 47 - [ 48 - rustToolchain 49 - pkg-config 50 - gcc 51 - openssl 52 - ]; 45 + nativeBuildInputs = with pkgs; [ 46 + rustToolchain 47 + pkg-config 48 + gcc 49 + openssl 50 + ]; 53 51 }; 54 52 } 55 53 );