- Delete homeManagerConfigurations from flake. - Delete laptop nixosConfiguration. - Delete `home-manager/` and `nixos/` directories. - Switch from one general "vars" attrset for variables to using built-for-purpose attrsets for variables, each declared where it makes most sense (e.g. the "sys" attrset will be used for system-specific attributes). - Create `systems/` directory for root-level system configurations and `modules/` directory for re-usable config files. - Consolidate most app and system configuration into the `desktop-environment.nix` and `terminal-environment.nix` files. - Standardize all `.nix` files to nixos config nodes, as opposed to home-manager. May reverse this decision. - Use `${sys.username}` for the username of the primary user of the system. - Use `${usr.${sys.username}}` for attributes related to that user (e.g. realname, email).
65 lines
1.5 KiB
Nix
65 lines
1.5 KiB
Nix
{ vars, pkgs, ... }:
|
|
{
|
|
home.packages = with pkgs; [
|
|
rofi-rbw-wayland
|
|
wl-clipboard
|
|
dotool
|
|
];
|
|
programs.tofi = {
|
|
enable = false;
|
|
settings = {};
|
|
};
|
|
programs.rofi = {
|
|
enable = false;
|
|
configPath = "$XDG_CONFIG_HOME/rofi/config.rasi";
|
|
extraConfig = {};
|
|
location = "center";
|
|
terminal = "${pkgs.kitty}/bin/kitty";
|
|
};
|
|
programs.wofi = {
|
|
enable = true;
|
|
};
|
|
|
|
programs.rbw = {
|
|
enable = true;
|
|
settings = {
|
|
base_url = "https://bitwarden.jafner.tools";
|
|
email = "jafner425@gmail.com";
|
|
lock_timeout = 2592000;
|
|
pinentry = pkgs.pinentry-qt;
|
|
};
|
|
};
|
|
|
|
xdg.desktopEntries = {
|
|
rofi-rbw = {
|
|
exec = "${pkgs.rofi-rbw-wayland}/bin/rofi-rbw";
|
|
icon = "/home/${vars.user.username}/.icons/custom/bitwarden.png";
|
|
name = "Bitwarden";
|
|
categories = [ "Utility" "Security" ];
|
|
type = "Application";
|
|
};
|
|
};
|
|
|
|
home.file."rofi-rbw.rc" = {
|
|
target = ".config/rofi-rbw.rc";
|
|
text = ''
|
|
action="type"
|
|
typing-key-delay=0
|
|
selector-args="-W 40% -H 30%"
|
|
selector="wofi"
|
|
clipboarder="wl-copy"
|
|
typer="dotool"
|
|
keybindings="Enter:type:username:enter:tab:type:password:enter:copy:totp"
|
|
'';
|
|
};
|
|
|
|
home.file."bitwarden.png" = {
|
|
target = ".icons/custom/bitwarden.png";
|
|
source = pkgs.fetchurl {
|
|
url = "https://raw.githubusercontent.com/bitwarden/clients/refs/heads/main/apps/desktop/resources/icons/64x64.png";
|
|
sha256 = "sha256-ZEYwxeoL8doV4y3M6kAyfz+5IoDsZ+ci8m+Qghfdp9M=";
|
|
};
|
|
};
|
|
}
|
|
|