diff --git a/flake.nix b/flake.nix index acf11b3..82310f0 100644 --- a/flake.nix +++ b/flake.nix @@ -19,8 +19,10 @@ pre-commit-hooks = { url = "github:cachix/pre-commit-hooks.nix"; - inputs.flake-utils.follows = "flake-utils"; - inputs.nixpkgs.follows = "nixpkgs"; + inputs = { + flake-utils.follows = "flake-utils"; + nixpkgs.follows = "nixpkgs"; + }; }; nixinate = { @@ -35,14 +37,18 @@ rust-overlay = { url = "github:oxalica/rust-overlay"; - inputs.nixpkgs.follows = "nixpkgs"; - inputs.flake-utils.follows = "flake-utils"; + inputs = { + nixpkgs.follows = "nixpkgs"; + flake-utils.follows = "flake-utils"; + }; }; microvm = { url = "github:astro/microvm.nix"; - inputs.nixpkgs.follows = "nixpkgs"; - inputs.flake-utils.follows = "flake-utils"; + inputs = { + nixpkgs.follows = "nixpkgs"; + flake-utils.follows = "flake-utils"; + }; }; sops = { @@ -52,15 +58,19 @@ emacs-overlay = { url = "github:nix-community/emacs-overlay"; - inputs.nixpkgs.follows = "nixpkgs"; - inputs.flake-utils.follows = "flake-utils"; + inputs = { + nixpkgs.follows = "nixpkgs"; + flake-utils.follows = "flake-utils"; + }; }; nil = { url = "github:oxalica/nil"; - inputs.nixpkgs.follows = "nixpkgs"; - inputs.flake-utils.follows = "flake-utils"; - inputs.rust-overlay.follows = "rust-overlay"; + inputs = { + nixpkgs.follows = "nixpkgs"; + flake-utils.follows = "flake-utils"; + rust-overlay.follows = "rust-overlay"; + }; }; disko = { @@ -74,35 +84,45 @@ eww = { url = "github:elkowar/eww"; - inputs.nixpkgs.follows = "nixpkgs"; - inputs.rust-overlay.follows = "rust-overlay"; + inputs = { + nixpkgs.follows = "nixpkgs"; + rust-overlay.follows = "rust-overlay"; + }; }; caddy-with-plugins = { url = "github:eboskma/caddy-with-plugins"; - inputs.nixpkgs.follows = "nixpkgs"; - inputs.flake-parts.follows = "flake-parts"; + inputs = { + nixpkgs.follows = "nixpkgs"; + flake-parts.follows = "flake-parts"; + }; }; ha-now-playing = { url = "git+https://git.datarift.nl/erwin/ha-now-playing.git?ref=main"; - inputs.nixpkgs.follows = "nixpkgs"; - inputs.flake-utils.follows = "flake-utils"; - inputs.rust-overlay.follows = "rust-overlay"; - inputs.pre-commit-hooks.follows = "pre-commit-hooks"; + inputs = { + nixpkgs.follows = "nixpkgs"; + flake-utils.follows = "flake-utils"; + rust-overlay.follows = "rust-overlay"; + pre-commit-hooks.follows = "pre-commit-hooks"; + }; }; pamedia = { url = "git+https://git.datarift.nl/erwin/pamedia-rs.git?ref=main"; - inputs.nixpkgs.follows = "nixpkgs"; - inputs.flake-utils.follows = "flake-utils"; - inputs.naersk.follows = "naersk"; + inputs = { + nixpkgs.follows = "nixpkgs"; + flake-utils.follows = "flake-utils"; + naersk.follows = "naersk"; + }; }; sunshine = { url = "git+https://git@git.datarift.nl/erwin/sunshine.git?ref=main"; - inputs.nixpkgs.follows = "nixpkgs"; - inputs.flake-utils.follows = "flake-utils"; + inputs = { + nixpkgs.follows = "nixpkgs"; + flake-utils.follows = "flake-utils"; + }; }; }; diff --git a/home-manager/modules/fish/default.nix b/home-manager/modules/fish/default.nix index d9e3fb6..f70da30 100644 --- a/home-manager/modules/fish/default.nix +++ b/home-manager/modules/fish/default.nix @@ -12,58 +12,60 @@ in }; config = mkIf cfg.enable { - programs.fish = { - enable = true; - functions = import ./functions.nix { inherit (pkgs) git coreutils; }; + programs = { + fish = { + enable = true; + functions = import ./functions.nix { inherit (pkgs) git coreutils; }; - plugins = [ - { - name = "dracula"; - src = pkgs.fetchFromGitHub { - owner = "dracula"; - repo = "fish"; - rev = "62b109f12faab5604f341e8b83460881f94b1550"; - sha256 = "0TlKq2ur2I6Bv7pu7JObrJxV0NbQhydmCuUs6ZdDU1I="; - }; - } - ]; + plugins = [ + { + name = "dracula"; + src = pkgs.fetchFromGitHub { + owner = "dracula"; + repo = "fish"; + rev = "62b109f12faab5604f341e8b83460881f94b1550"; + sha256 = "0TlKq2ur2I6Bv7pu7JObrJxV0NbQhydmCuUs6ZdDU1I="; + }; + } + ]; - shellAliases = { - # code = "${pkgs.vscode}/bin/code --enable-features=UseOzonePlatform --ozone-platform=wayland"; - ls = "${pkgs.eza}/bin/eza -Fb --git"; + shellAliases = { + # code = "${pkgs.vscode}/bin/code --enable-features=UseOzonePlatform --ozone-platform=wayland"; + ls = "${pkgs.eza}/bin/eza -Fb --git"; - vimdiff = mkIf config.eboskma.programs.neovim.enable "nvim -d"; - vim = mkIf config.eboskma.programs.neovim.enable "nvim"; - vi = mkIf config.eboskma.programs.neovim.enable "nvim"; - }; - interactiveShellInit = '' + vimdiff = mkIf config.eboskma.programs.neovim.enable "nvim -d"; + vim = mkIf config.eboskma.programs.neovim.enable "nvim"; + vi = mkIf config.eboskma.programs.neovim.enable "nvim"; + }; + interactiveShellInit = '' ''; - }; + }; - programs.fzf = { - enable = true; - enableFishIntegration = true; - changeDirWidgetCommand = "${pkgs.fd}/bin/fd -type d"; - defaultCommand = "${pkgs.fd}/bin/fd -type f"; - defaultOptions = [ - "--cycle" - "--layout=reverse" - "--border" - "--height=90%" - "--preview-window=wrap" - "--marker='*'" - ]; - fileWidgetCommand = "${pkgs.fd}/bin/fd -type f"; - }; + fzf = { + enable = true; + enableFishIntegration = true; + changeDirWidgetCommand = "${pkgs.fd}/bin/fd -type d"; + defaultCommand = "${pkgs.fd}/bin/fd -type f"; + defaultOptions = [ + "--cycle" + "--layout=reverse" + "--border" + "--height=90%" + "--preview-window=wrap" + "--marker='*'" + ]; + fileWidgetCommand = "${pkgs.fd}/bin/fd -type f"; + }; - programs.direnv = { - enable = true; - nix-direnv.enable = true; - }; + direnv = { + enable = true; + nix-direnv.enable = true; + }; - programs.zoxide = { - enable = true; - enableFishIntegration = true; + zoxide = { + enable = true; + enableFishIntegration = true; + }; }; }; } diff --git a/home-manager/modules/polybar/default.nix b/home-manager/modules/polybar/default.nix index cbd6936..55ed91a 100644 --- a/home-manager/modules/polybar/default.nix +++ b/home-manager/modules/polybar/default.nix @@ -176,32 +176,46 @@ in format = " "; - label.mode.text = "󰁌 %mode%"; # Icon: arrow_expand_all - label.mode.padding = 1; + label = { + mode = { + text = "󰁌 %mode%"; # Icon: arrow_expand_all + padding = 1; + }; - label.focused.text = " %index%"; # Icon: fa-circle - label.focused.padding = 1; - label.focused.background = "#333333"; - label.focused.underline = "#ffffff"; + focused = { + text = " %index%"; # Icon: fa-circle + padding = 1; + background = "#333333"; + underline = "#ffffff"; + }; - label.unfocused.text = " %index%"; # Icon: fa-circle_o - label.unfocused.padding = 1; + unfocused = { + text = " %index%"; # Icon: fa-circle_o + padding = 1; + }; - label.visible.text = " %index%"; # Icon: fa-dot_circle_o - label.visible.padding = 1; + visible = { + text = " %index%"; # Icon: fa-dot_circle_o + padding = 1; + }; - label.urgent.text = " %index%"; # Icon: fa-exclamation_circle - label.urgent.background = "${colors.urgent}"; - label.urgent.padding = 1; + urgent = { + text = " %index%"; # Icon: fa-exclamation_circle + background = "${colors.urgent}"; + padding = 1; + }; + }; }; "module/playerctl" = { type = "custom/script"; exec = "${polybar-playerctl}/bin/polybar-playerctl"; interval = 1; - click.left = "${polybar-playerctl}/bin/polybar-playerctl play-pause"; - click.middle = "${polybar-playerctl}/bin/polybar-playerctl next"; - click.right = "${polybar-playerctl}/bin/polybar-playerctl prevous"; + click = { + left = "${polybar-playerctl}/bin/polybar-playerctl play-pause"; + middle = "${polybar-playerctl}/bin/polybar-playerctl next"; + right = "${polybar-playerctl}/bin/polybar-playerctl prevous"; + }; format.padding = 2; scroll.up = "${polybar-playerctl}/bin/polybar-playerctl next-player"; @@ -210,11 +224,15 @@ in "module/date" = { type = "internal/date"; interval = 1.0; - time.text = " %H:%M:%S"; - time.alt = " %a, %d %b %Y"; + time = { + text = " %H:%M:%S"; + alt = " %a, %d %b %Y"; + }; - format.text = "