add tofi
This commit is contained in:
@@ -1,8 +1,17 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
|
||||
}: let
|
||||
program = "<placeholder>";
|
||||
cfg = config.dots.${program};
|
||||
#sec = sops.secrets;
|
||||
in {
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.${program} = {
|
||||
enable = true;
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
15
users/blake/dots/dunst/default.nix
Normal file
15
users/blake/dots/dunst/default.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
program = "dunst";
|
||||
cfg = config.dots.${program};
|
||||
#sec = sops.secrets;
|
||||
in {
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.${program} = {
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -4,20 +4,16 @@
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
program = "git";
|
||||
cfg = config.dots.${program};
|
||||
#sec = sops.secrets;
|
||||
in {
|
||||
|
||||
options.dots.${program} = {
|
||||
enable = lib.mkEnableOption "enables ${program}";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
|
||||
# configure git
|
||||
programs.${program} = {
|
||||
enable = true;
|
||||
|
||||
@@ -3,19 +3,16 @@
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
program = "gpg";
|
||||
cfg = config.dots.${program};
|
||||
#sec = sops.secrets;
|
||||
in {
|
||||
|
||||
options.dots.${program} = {
|
||||
enable = lib.mkEnableOption "enables ${program}";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
programs.${program} = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
@@ -3,20 +3,16 @@
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
}: let
|
||||
program = "hypr";
|
||||
cfg = config.dots.${program};
|
||||
#sec = sops.secrets;
|
||||
in {
|
||||
|
||||
options.dots.${program} = {
|
||||
enable = lib.mkEnableOption "enables ${program}";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
home.packages = with pkgs; [
|
||||
nwg-displays
|
||||
posy-cursors
|
||||
@@ -306,8 +302,7 @@ in {
|
||||
inner_color = "$surface0";
|
||||
font_color = "$text";
|
||||
fade_on_empty = false;
|
||||
placeholder_text =
|
||||
"# <span foreground=\"##$textAlpha\"><i> Logged in as </i><span foreground=\"##$accentAlpha\">$USER</span></span>";
|
||||
placeholder_text = "# <span foreground=\"##$textAlpha\"><i> Logged in as </i><span foreground=\"##$accentAlpha\">$USER</span></span>";
|
||||
hide_input = false;
|
||||
check_color = "rgb(0047ab)";
|
||||
fail_color = "rgb(ff0000)";
|
||||
@@ -322,7 +317,6 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# idle daemon
|
||||
services.hypridle = {
|
||||
enable = true;
|
||||
|
||||
@@ -3,13 +3,11 @@
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
program = "lf";
|
||||
cfg = config.dots.${program};
|
||||
#sec = sops.secrets;
|
||||
in {
|
||||
|
||||
options.dots.${program} = {
|
||||
enable = lib.mkEnableOption "enables ${program}";
|
||||
};
|
||||
|
||||
@@ -3,13 +3,11 @@
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
program = "librewolf";
|
||||
cfg = config.dots.${program};
|
||||
#sec = sops.secrets;
|
||||
in {
|
||||
|
||||
options.dots.${program} = {
|
||||
enable = lib.mkEnableOption "enables ${program}";
|
||||
};
|
||||
|
||||
@@ -4,14 +4,11 @@
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
}: let
|
||||
program = "nvf";
|
||||
cfg = config.dots.${program};
|
||||
#sec = sops.secrets;
|
||||
in {
|
||||
|
||||
options.dots.${program} = {
|
||||
enable = lib.mkEnableOption "enables ${program}";
|
||||
};
|
||||
@@ -21,8 +18,6 @@ in {
|
||||
];
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
|
||||
programs.${program} = {
|
||||
enable = true;
|
||||
settings = {
|
||||
@@ -193,7 +188,6 @@ in {
|
||||
markdown.enable = true;
|
||||
rust.enable = true;
|
||||
lua.enable = true;
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -3,13 +3,11 @@
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
program = "ssh";
|
||||
cfg = config.dots.${program};
|
||||
#sec = sops.secrets;
|
||||
in {
|
||||
|
||||
options.dots.${program} = {
|
||||
enable = lib.mkEnableOption "enables ${program}";
|
||||
};
|
||||
@@ -39,7 +37,6 @@ in {
|
||||
#home.file.".ssh/id_snowbelle".source = config.lib.file.mkOutOfStoreSymlink /home/blake/.nix/.keyring/ssh/id_snowbelle;
|
||||
#home.file.".ssh/id_snowbelle.pub".source = config.lib.file.mkOutOfStoreSymlink /home/blake/.nix/.keyring/ssh/id_snowbelle.pub;
|
||||
|
||||
|
||||
# manage secrets with sops
|
||||
sops.secrets = {
|
||||
"id_snowbelle" = {
|
||||
|
||||
@@ -4,21 +4,16 @@
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
}: let
|
||||
program = "stylix";
|
||||
cfg = config.dots.${program};
|
||||
#sec = sops.secrets;
|
||||
in {
|
||||
|
||||
options.dots.${program} = {
|
||||
enable = lib.mkEnableOption "enables ${program}";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
imports = [inputs.stylix.homeManagerModules.default];
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
36
users/blake/dots/tofi/default.nix
Normal file
36
users/blake/dots/tofi/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
program = "tofi";
|
||||
cfg = config.dots.${program};
|
||||
#sec = sops.secrets;
|
||||
in {
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.${program} = {
|
||||
enable = true;
|
||||
settings = {
|
||||
anchor = "top";
|
||||
width = "100%";
|
||||
height = 25;
|
||||
horizontal = true;
|
||||
font-size = 12;
|
||||
prompt-text = " select: ";
|
||||
outline-width = 0;
|
||||
border-width = 0;
|
||||
corner-radius = 9;
|
||||
background-color = "#2f1730";
|
||||
selection-color = "#ffffff";
|
||||
text-color = "#888888";
|
||||
min-input-width = 120;
|
||||
result-spacing = 15;
|
||||
padding-top = 0;
|
||||
padding-bottom = 0;
|
||||
padding-left = 0;
|
||||
padding-right = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -3,20 +3,16 @@
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
program = "waybar";
|
||||
cfg = config.dots.${program};
|
||||
#sec = sops.secrets;
|
||||
in {
|
||||
|
||||
options.dots.${program} = {
|
||||
enable = lib.mkEnableOption "enables ${program}";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
|
||||
# just using the normal lfrc
|
||||
programs.${program} = {
|
||||
enable = true;
|
||||
@@ -122,10 +118,8 @@ in {
|
||||
"format-wifi" = "";
|
||||
"format-ethernet" = "";
|
||||
"format-disconnected" = "";
|
||||
"tooltip-format-wifi" =
|
||||
"{ifname} / {essid}\n\n {ipaddr}\n\n {signalStrength}% / {frequency}\n\n {bandwidthUpBits} / {bandwidthDownBits}";
|
||||
"tooltip-format-ethernet" =
|
||||
"{ifname} / {gwaddr}\n\n {ipaddr}\n\n {bandwidthUpBits} / {bandwidthDownBits}";
|
||||
"tooltip-format-wifi" = "{ifname} / {essid}\n\n {ipaddr}\n\n {signalStrength}% / {frequency}\n\n {bandwidthUpBits} / {bandwidthDownBits}";
|
||||
"tooltip-format-ethernet" = "{ifname} / {gwaddr}\n\n {ipaddr}\n\n {bandwidthUpBits} / {bandwidthDownBits}";
|
||||
"tooltip-format-disconnected" = "Disconnected";
|
||||
interval = 5;
|
||||
"on-click" = "kitty nmtui";
|
||||
@@ -147,17 +141,12 @@ in {
|
||||
"format-connected" = " {device_alias}";
|
||||
"format-connected-battery" = " {device_alias} ({device_battery_percentage}%)";
|
||||
"tooltip-format-off" = "Controller Powered Off";
|
||||
"tooltip-format" =
|
||||
"{controller_alias}\t{controller_address}\n\n{num_connections} connected";
|
||||
"tooltip-format-connected" =
|
||||
"{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}";
|
||||
"tooltip-format-enumerate-connected" =
|
||||
"{device_alias}\t{device_address}";
|
||||
"tooltip-format-enumerate-connected-battery" =
|
||||
"{device_alias}\t{device_address}\t{device_battery_percentage}%";
|
||||
"tooltip-format" = "{controller_alias}\t{controller_address}\n\n{num_connections} connected";
|
||||
"tooltip-format-connected" = "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}";
|
||||
"tooltip-format-enumerate-connected" = "{device_alias}\t{device_address}";
|
||||
"tooltip-format-enumerate-connected-battery" = "{device_alias}\t{device_address}\t{device_battery_percentage}%";
|
||||
"on-click" = "kitty bluetuith --no-warning";
|
||||
"on-click-right" =
|
||||
"if bluetoothctl show|grep -q 'Powered: yes';then bluetoothctl power off;else bluetoothctl power on;fi";
|
||||
"on-click-right" = "if bluetoothctl show|grep -q 'Powered: yes';then bluetoothctl power off;else bluetoothctl power on;fi";
|
||||
};
|
||||
|
||||
idle_inhibitor = {
|
||||
|
||||
@@ -3,22 +3,22 @@
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
program = "xdg";
|
||||
cfg = config.dots.${program};
|
||||
#sec = sops.secrets;
|
||||
in {
|
||||
|
||||
options.dots.${program} = {
|
||||
enable = lib.mkEnableOption "enables ${program}";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
home.packages = with pkgs; [xdg-ninja];
|
||||
|
||||
xdg = if pkgs.system == "x86_64-darwin" then {} else {
|
||||
xdg =
|
||||
if pkgs.system == "x86_64-darwin"
|
||||
then {}
|
||||
else {
|
||||
enable = true;
|
||||
configHome = "/home/blake/.config";
|
||||
cacheHome = "/home/blake/.cache";
|
||||
@@ -40,10 +40,12 @@ in {
|
||||
};
|
||||
|
||||
# misc env variables to get things out of ~ (<3 xdg-ninja)
|
||||
home.sessionVariables = if pkgs.system == "x86_64-darwin" then {} else {
|
||||
home.sessionVariables =
|
||||
if pkgs.system == "x86_64-darwin"
|
||||
then {}
|
||||
else {
|
||||
GOPATH = "$XDG_DATA_HOME/go";
|
||||
_JAVA_OPTIONS = ''-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java'';
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3,19 +3,16 @@
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
}: let
|
||||
program = "zsh";
|
||||
cfg = config.dots.${program};
|
||||
#sec = sops.secrets;
|
||||
in {
|
||||
|
||||
options.dots.${program} = {
|
||||
enable = lib.mkEnableOption "enables ${program}";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
# export some defaults
|
||||
home.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
librewolf.enable = true;
|
||||
waybar.enable = true;
|
||||
hypr.enable = true;
|
||||
tofi.enable = true;
|
||||
nvf.enable = true;
|
||||
zsh.enable = true;
|
||||
ssh.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user