Better fzgo config

This commit is contained in:
Thomas Avé 2025-02-14 13:14:10 +01:00
parent 116749fcbd
commit 524c4c1566
9 changed files with 69 additions and 38 deletions

View File

@ -8,11 +8,11 @@
"locked": {
"lastModified": 1,
"narHash": "sha256-DuhR3y0gPZG0AJ2FDd+nUKzQMwT+c/DFIUWNDQ5Uyx4=",
"path": "/nix/store/ixr36hzwj4vg8wrmjkpi96idpchpbk2j-source/home/ags",
"path": "/nix/store/z6zfs7pfc5d3p3kw4y0gkzad54lnkr4c-source/home/ags",
"type": "path"
},
"original": {
"path": "/nix/store/ixr36hzwj4vg8wrmjkpi96idpchpbk2j-source/home/ags",
"path": "/nix/store/z6zfs7pfc5d3p3kw4y0gkzad54lnkr4c-source/home/ags",
"type": "path"
}
},

View File

@ -1,11 +1,17 @@
{ inputs, config, pkgs, ... }:
let
fzgo_paths = [
fzgo_paths = {
files = [
"/home/user/.dotfiles"
"/home/server/.cache/fzgo/entries/f/|home|server|Workspace"
];
dirs = [
"/home/user/.dotfiles"
"/home/server/.cache/fzgo/entries/d/|home|server|Workspace"
"/home/server/.cache/fzgo/entries/d/|home|server|Storage|Thomas"
"/home/server/.cache/fzgo/entries/d/|home|server|Storage|Shared"
];
};
in
{
imports = [

View File

@ -1,11 +1,17 @@
{ inputs, config, pkgs, ... }:
let
fzgo_paths = [
fzgo_paths = {
files = [
"/home/user/.dotfiles"
"/home/server/.cache/fzgo/entries/f/|home|server|Workspace"
];
dirs = [
"/home/user/.dotfiles"
"/home/server/.cache/fzgo/entries/d/|home|server|Workspace"
"/home/server/.cache/fzgo/entries/d/|home|server|Storage|Thomas"
"/home/server/.cache/fzgo/entries/d/|home|server|Storage|Shared"
];
};
in
{
imports = [
@ -37,7 +43,7 @@ in
wayland.windowManager.hyprland.settings = {
monitor = [
"eDP-1,2560x1440@60.01,0x0,1.25"
"eDP-1,2560x1440@60.01,0x0,1"
"HDMI-A-1,1920x1080@60,0x-1080,1"
];
bind = [
@ -49,5 +55,5 @@ in
};
programs.alacritty.settings.font.size = 13;
programs.kitty.font.size = 13;
programs.kitty.font.size = 15;
}

View File

@ -1,11 +1,17 @@
{ inputs, config, pkgs, ... }:
let
fzgo_paths = [
fzgo_paths = {
files = [
"/home/user/.dotfiles"
"/home/server/.cache/fzgo/entries/f/|home|server|Workspace"
];
dirs = [
"/home/user/.dotfiles"
"/home/server/.cache/fzgo/entries/d/|home|server|Workspace"
"/home/server/.cache/fzgo/entries/d/|home|server|Storage|Thomas"
"/home/server/.cache/fzgo/entries/d/|home|server|Storage|Shared"
];
};
in
{
imports = [

View File

@ -55,13 +55,19 @@ let
'');
};
};
fzgo_paths = [
fzgo_paths = {
files = [
"${home_dir}/.dotfiles"
"${home_dir}/Workspace"
];
dirs = [
"${home_dir}/.dotfiles"
"${home_dir}/Workspace"
"${home_dir}/Containers"
"${home_dir}/Storage/Thomas"
"${home_dir}/Storage/Shared"
];
};
in {
home.username = username;
home.homeDirectory = home_dir;

View File

@ -1,11 +1,17 @@
{ inputs, config, pkgs, ... }:
let
fzgo_paths = [
fzgo_paths = {
files = [
"/home/user/.dotfiles"
"/home/server/.cache/fzgo/entries/f/|home|server|Workspace"
];
dirs = [
"/home/user/.dotfiles"
"/home/server/.cache/fzgo/entries/d/|home|server|Workspace"
"/home/server/.cache/fzgo/entries/d/|home|server|Storage|Thomas"
"/home/server/.cache/fzgo/entries/d/|home|server|Storage|Shared"
];
};
in
{
imports = [

View File

@ -7,7 +7,7 @@ let
wpctl = "${pkgs.wireplumber}/bin/wpctl";
terminal-name = ".kitty-wrapped";
terminal = "${pkgs.kitty}/bin/kitty";
rofi = "${pkgs.rofi}/bin/rofi";
rofi = "${pkgs.rofi-wayland}/bin/rofi";
jq = "${pkgs.jq}/bin/jq";
rofi-ykman = pkgs.writeShellScriptBin "rofi-ykman" ''
accounts=$(${pkgs.yubikey-manager}/bin/ykman oath accounts list)

View File

@ -5,6 +5,7 @@
programs.rofi = {
enable = true;
package = pkgs.rofi-wayland;
font = "SF Pro Rounded 13";
extraConfig = {
show-icons = true;

View File

@ -6,7 +6,7 @@ let
target = ".config/fzgo/entries/${file_type}/${pkgs.lib.strings.replaceStrings [ "/" ] [ "|" ] source_path}";
};
};
mkLinks = source_path: (mkLink source_path "d") // (mkLink source_path "f");
links = (map (source_path: mkLink source_path "f") fzgo_paths.files) ++ (map (source_path: mkLink source_path "d") fzgo_paths.dirs);
in {
home.file = pkgs.lib.mkMerge (map mkLinks fzgo_paths);
home.file = pkgs.lib.mkMerge links;
}