mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 04:02:55 +00:00
change email pass file
This commit is contained in:
parent
cb47f4bbd3
commit
78ea55f029
@ -25,6 +25,10 @@
|
|||||||
type = types.str;
|
type = types.str;
|
||||||
description = "Command to use for launching";
|
description = "Command to use for launching";
|
||||||
};
|
};
|
||||||
|
systemdSearch = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
description = "Command to use for interacting with systemd";
|
||||||
|
};
|
||||||
toggleBarCommand = lib.mkOption {
|
toggleBarCommand = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "Command to hide and show the status bar.";
|
description = "Command to hide and show the status bar.";
|
||||||
|
@ -118,6 +118,8 @@ in {
|
|||||||
"exec alacritty; workspace ${ws2}; layout tabbed";
|
"exec alacritty; workspace ${ws2}; layout tabbed";
|
||||||
"${modifier}+space" =
|
"${modifier}+space" =
|
||||||
"exec --no-startup-id ${config.gui.launcherCommand}";
|
"exec --no-startup-id ${config.gui.launcherCommand}";
|
||||||
|
"${modifier}+Shift+s" =
|
||||||
|
"exec --no-startup-id ${config.gui.systemdSearch}";
|
||||||
"${modifier}+Shift+c" = "reload";
|
"${modifier}+Shift+c" = "reload";
|
||||||
"${modifier}+Shift+r" = "restart";
|
"${modifier}+Shift+r" = "restart";
|
||||||
"${modifier}+Shift+q" = ''
|
"${modifier}+Shift+q" = ''
|
||||||
|
@ -4,137 +4,148 @@
|
|||||||
|
|
||||||
config = lib.mkIf config.services.xserver.enable {
|
config = lib.mkIf config.services.xserver.enable {
|
||||||
|
|
||||||
home-manager.users.${config.user}.programs.rofi = {
|
home-manager.users.${config.user} = {
|
||||||
enable = true;
|
|
||||||
cycle = true;
|
|
||||||
location = "center";
|
|
||||||
pass = { };
|
|
||||||
plugins = [ pkgs.rofi-calc pkgs.rofi-emoji ];
|
|
||||||
theme = let
|
|
||||||
inherit (config.home-manager.users.${config.user}.lib.formats.rasi)
|
|
||||||
mkLiteral;
|
|
||||||
in {
|
|
||||||
|
|
||||||
# Inspired by https://github.com/sherubthakur/dotfiles/blob/master/users/modules/desktop-environment/rofi/launcher.rasi
|
home.packages = with pkgs;
|
||||||
|
[
|
||||||
|
jq # Required for rofi-systemd
|
||||||
|
];
|
||||||
|
|
||||||
"*" = {
|
programs.rofi = {
|
||||||
background-color = mkLiteral config.gui.colorscheme.base00;
|
enable = true;
|
||||||
foreground-color = mkLiteral config.gui.colorscheme.base07;
|
cycle = true;
|
||||||
text-color = mkLiteral config.gui.colorscheme.base07;
|
location = "center";
|
||||||
border-color = mkLiteral config.gui.colorscheme.base04;
|
pass = { };
|
||||||
};
|
plugins = [ pkgs.rofi-calc pkgs.rofi-emoji pkgs.rofi-systemd ];
|
||||||
|
theme = let
|
||||||
|
inherit (config.home-manager.users.${config.user}.lib.formats.rasi)
|
||||||
|
mkLiteral;
|
||||||
|
in {
|
||||||
|
|
||||||
# Holds the entire window
|
# Inspired by https://github.com/sherubthakur/dotfiles/blob/master/users/modules/desktop-environment/rofi/launcher.rasi
|
||||||
"#window" = {
|
|
||||||
transparency = "real";
|
|
||||||
background-color = mkLiteral config.gui.colorscheme.base00;
|
|
||||||
text-color = mkLiteral config.gui.colorscheme.base07;
|
|
||||||
border = mkLiteral "4px";
|
|
||||||
border-color = mkLiteral config.gui.colorscheme.base04;
|
|
||||||
border-radius = mkLiteral "4px";
|
|
||||||
width = mkLiteral "850px";
|
|
||||||
padding = mkLiteral "15px";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Wrapper around bar and results
|
"*" = {
|
||||||
"#mainbox" = {
|
background-color = mkLiteral config.gui.colorscheme.base00;
|
||||||
background-color = mkLiteral config.gui.colorscheme.base00;
|
foreground-color = mkLiteral config.gui.colorscheme.base07;
|
||||||
border = mkLiteral "0px";
|
text-color = mkLiteral config.gui.colorscheme.base07;
|
||||||
border-radius = mkLiteral "0px";
|
border-color = mkLiteral config.gui.colorscheme.base04;
|
||||||
border-color = mkLiteral config.gui.colorscheme.base04;
|
};
|
||||||
children = map mkLiteral [ "inputbar" "listview" ];
|
|
||||||
spacing = mkLiteral "10px";
|
|
||||||
padding = mkLiteral "10px";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Unknown
|
# Holds the entire window
|
||||||
"#textbox-prompt-colon" = {
|
"#window" = {
|
||||||
expand = false;
|
transparency = "real";
|
||||||
str = ":";
|
background-color = mkLiteral config.gui.colorscheme.base00;
|
||||||
margin = mkLiteral "0px 0.3em 0em 0em";
|
text-color = mkLiteral config.gui.colorscheme.base07;
|
||||||
text-color = mkLiteral config.gui.colorscheme.base07;
|
border = mkLiteral "4px";
|
||||||
};
|
border-color = mkLiteral config.gui.colorscheme.base04;
|
||||||
|
border-radius = mkLiteral "4px";
|
||||||
|
width = mkLiteral "850px";
|
||||||
|
padding = mkLiteral "15px";
|
||||||
|
};
|
||||||
|
|
||||||
# Command prompt left of the input
|
# Wrapper around bar and results
|
||||||
"#prompt" = { enabled = false; };
|
"#mainbox" = {
|
||||||
|
background-color = mkLiteral config.gui.colorscheme.base00;
|
||||||
|
border = mkLiteral "0px";
|
||||||
|
border-radius = mkLiteral "0px";
|
||||||
|
border-color = mkLiteral config.gui.colorscheme.base04;
|
||||||
|
children = map mkLiteral [ "inputbar" "listview" ];
|
||||||
|
spacing = mkLiteral "10px";
|
||||||
|
padding = mkLiteral "10px";
|
||||||
|
};
|
||||||
|
|
||||||
# Actual text box
|
# Unknown
|
||||||
"#entry" = {
|
"#textbox-prompt-colon" = {
|
||||||
placeholder-color = mkLiteral config.gui.colorscheme.base03;
|
expand = false;
|
||||||
expand = true;
|
str = ":";
|
||||||
horizontal-align = "0";
|
margin = mkLiteral "0px 0.3em 0em 0em";
|
||||||
placeholder = "Launch Program";
|
text-color = mkLiteral config.gui.colorscheme.base07;
|
||||||
padding = mkLiteral "0px 0px 0px 5px";
|
};
|
||||||
blink = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Top bar
|
# Command prompt left of the input
|
||||||
"#inputbar" = {
|
"#prompt" = { enabled = false; };
|
||||||
children = map mkLiteral [ "prompt" "entry" ];
|
|
||||||
border = mkLiteral "1px";
|
|
||||||
border-radius = mkLiteral "4px";
|
|
||||||
padding = mkLiteral "6px";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Results
|
# Actual text box
|
||||||
"#listview" = {
|
"#entry" = {
|
||||||
background-color = mkLiteral config.gui.colorscheme.base00;
|
placeholder-color = mkLiteral config.gui.colorscheme.base03;
|
||||||
padding = mkLiteral "0px";
|
expand = true;
|
||||||
columns = 1;
|
horizontal-align = "0";
|
||||||
lines = 12;
|
placeholder = "Launch Program";
|
||||||
spacing = "5px";
|
padding = mkLiteral "0px 0px 0px 5px";
|
||||||
cycle = true;
|
blink = true;
|
||||||
dynamic = true;
|
};
|
||||||
layout = "vertical";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Each result
|
# Top bar
|
||||||
"#element" = {
|
"#inputbar" = {
|
||||||
orientation = "vertical";
|
children = map mkLiteral [ "prompt" "entry" ];
|
||||||
border-radius = mkLiteral "0px";
|
border = mkLiteral "1px";
|
||||||
padding = mkLiteral "5px 0px 5px 5px";
|
border-radius = mkLiteral "4px";
|
||||||
};
|
padding = mkLiteral "6px";
|
||||||
"#element.selected" = {
|
};
|
||||||
border = mkLiteral "1px";
|
|
||||||
border-radius = mkLiteral "4px";
|
|
||||||
border-color = mkLiteral config.gui.colorscheme.base07;
|
|
||||||
background-color = mkLiteral config.gui.colorscheme.base04;
|
|
||||||
text-color = mkLiteral config.gui.colorscheme.base00;
|
|
||||||
};
|
|
||||||
|
|
||||||
"#element-text" = {
|
# Results
|
||||||
expand = true;
|
"#listview" = {
|
||||||
# horizontal-align = mkLiteral "0.5";
|
background-color = mkLiteral config.gui.colorscheme.base00;
|
||||||
vertical-align = mkLiteral "0.5";
|
padding = mkLiteral "0px";
|
||||||
margin = mkLiteral "0px 2.5px 0px 2.5px";
|
columns = 1;
|
||||||
};
|
lines = 12;
|
||||||
"#element-text.selected" = {
|
spacing = "5px";
|
||||||
background-color = mkLiteral config.gui.colorscheme.base04;
|
cycle = true;
|
||||||
text-color = mkLiteral config.gui.colorscheme.base00;
|
dynamic = true;
|
||||||
};
|
layout = "vertical";
|
||||||
|
};
|
||||||
|
|
||||||
# Not sure how to get icons
|
# Each result
|
||||||
"#element-icon" = {
|
"#element" = {
|
||||||
size = mkLiteral "18px";
|
orientation = "vertical";
|
||||||
border = mkLiteral "0px";
|
border-radius = mkLiteral "0px";
|
||||||
padding = mkLiteral "2px 5px 2px 2px";
|
padding = mkLiteral "5px 0px 5px 5px";
|
||||||
background-color = mkLiteral config.gui.colorscheme.base00;
|
};
|
||||||
};
|
"#element.selected" = {
|
||||||
"#element-icon.selected" = {
|
border = mkLiteral "1px";
|
||||||
background-color = mkLiteral config.gui.colorscheme.base04;
|
border-radius = mkLiteral "4px";
|
||||||
text-color = mkLiteral config.gui.colorscheme.base00;
|
border-color = mkLiteral config.gui.colorscheme.base07;
|
||||||
};
|
background-color = mkLiteral config.gui.colorscheme.base04;
|
||||||
|
text-color = mkLiteral config.gui.colorscheme.base00;
|
||||||
|
};
|
||||||
|
|
||||||
|
"#element-text" = {
|
||||||
|
expand = true;
|
||||||
|
# horizontal-align = mkLiteral "0.5";
|
||||||
|
vertical-align = mkLiteral "0.5";
|
||||||
|
margin = mkLiteral "0px 2.5px 0px 2.5px";
|
||||||
|
};
|
||||||
|
"#element-text.selected" = {
|
||||||
|
background-color = mkLiteral config.gui.colorscheme.base04;
|
||||||
|
text-color = mkLiteral config.gui.colorscheme.base00;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Not sure how to get icons
|
||||||
|
"#element-icon" = {
|
||||||
|
size = mkLiteral "18px";
|
||||||
|
border = mkLiteral "0px";
|
||||||
|
padding = mkLiteral "2px 5px 2px 2px";
|
||||||
|
background-color = mkLiteral config.gui.colorscheme.base00;
|
||||||
|
};
|
||||||
|
"#element-icon.selected" = {
|
||||||
|
background-color = mkLiteral config.gui.colorscheme.base04;
|
||||||
|
text-color = mkLiteral config.gui.colorscheme.base00;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
xoffset = 0;
|
||||||
|
yoffset = -20;
|
||||||
|
extraConfig = {
|
||||||
|
show-icons = true;
|
||||||
|
kb-cancel = "Escape,Super+space";
|
||||||
|
modi = "window,run,ssh,emoji,calc,systemd";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
xoffset = 0;
|
|
||||||
yoffset = -20;
|
|
||||||
extraConfig = {
|
|
||||||
show-icons = true;
|
|
||||||
kb-cancel = "Escape,Super+space";
|
|
||||||
modi = "window,run,ssh,emoji,calc";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
gui.launcherCommand = "${pkgs.rofi}/bin/rofi -show run -modi run";
|
gui.launcherCommand = "${pkgs.rofi}/bin/rofi -show run -modi run";
|
||||||
|
gui.systemdSearch = "${pkgs.rofi-systemd}/bin/rofi-systemd";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
mu.enable = false;
|
mu.enable = false;
|
||||||
notmuch.enable = false;
|
notmuch.enable = false;
|
||||||
passwordCommand =
|
passwordCommand =
|
||||||
"${pkgs.age}/bin/age --decrypt --identity /home/${config.user}/.ssh/id_rsa ${
|
"${pkgs.age}/bin/age --decrypt --identity /home/${config.user}/.ssh/id_ed25519 ${
|
||||||
builtins.toString ./mailpass.age
|
builtins.toString ./mailpass.age
|
||||||
}";
|
}";
|
||||||
smtp = {
|
smtp = {
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
age-encryption.org/v1
|
age-encryption.org/v1
|
||||||
-> ssh-rsa 6vVbxg
|
-> ssh-ed25519 MgHaOw 8h/ESNjn0gknNXoHM34UobHzPgmRunoP97H+KHOuGQM
|
||||||
X7xJSc42VFglgjPxz45J3uoGtyZZdI6qyIEL+ZKxzhgYTa66/LVhJT/sLJlg7lnp
|
qowH+6TlCRECGCscRgKx6kswY+PZezYUD6E+x9e+5pM
|
||||||
DoZCGEvVIrTzlysHeWvNKUIkK/iiRLdsqJybPWs/hai9J2q3OcXehbvU+adHhhxn
|
--- kFj1JzRdh/D13Uq9aNTzMJIFysEE+kzzthjewOIR2+o
|
||||||
7y3Ycle+XeQ2QnFtMZBL0niQNAo3CMNKO6SNQeFwzwGgHmPmAF2JVnwxB5l09Y+e
|
Ȳ²¸6<EFBFBD>Àï}rCìzó™ð øà
ï>&Ä=j‚W^W‰‘l! "}M–SÍå8=‰x’ƒ²÷m =ЇøL
|
||||||
12T6aQCuh1pZ7oRjFQHg3T1aqXcslyBLLNuT4CXkIQ4hXSPAJGHUcy+rj8+3NsXW
|
|
||||||
BwI7w3CtBLGDaZue6FBucD3ii4lIcBtUzx9BsgHfsrHPvgx8jAt6cLyWmMFwQO0Y
|
|
||||||
43zNsHUHok2GEzKE1zLcAA
|
|
||||||
--- HyCGtqqnrN0ukBo11RTE7l3HUvT2o+qxvlghoY0cY80
|
|
||||||
:¼ElnÁ<Í2029I70J/Za™\¢{ÛÓ{œX3÷´Î!³¾B™qè™Dƒ:gÇÌG~Wº®I³vWjm
|
|
Loading…
Reference in New Issue
Block a user