bitwarden, niri-tag, idk

This commit is contained in:
atagen 2025-07-20 13:29:04 +10:00
parent bca6451850
commit 1626d24aed
14 changed files with 686 additions and 338 deletions

754
flake.lock generated

File diff suppressed because it is too large Load diff

View file

@ -18,6 +18,8 @@
niri
niri-tag
lix-module
angrr
arbys
# smooooth
])
++ [
@ -64,15 +66,9 @@
inputs.lix.follows = "lix";
};
meat = {
url = "git+https://git.atagen.co/atagen/meat";
inputs.nixpkgs.follows = "nixpkgs";
};
meat.url = "git+https://git.atagen.co/atagen/meat";
culr = {
url = "git+https://git.atagen.co/atagen/culr";
inputs.nixpkgs.follows = "nixpkgs";
};
culr.url = "git+https://git.atagen.co/atagen/culr";
# comfyui = {
# url = "path:./flakes/comfyui";
@ -102,11 +98,11 @@
# smooooth.url = "path:/home/bolt/code/smooooth";
niri-tag = {
url = "git+https://git.atagen.co/atagen/niri-tag";
inputs.niri-flake.follows = "niri";
inputs.nixpkgs.follows = "nixpkgs";
};
niri-tag.url = "git+https://git.atagen.co/atagen/niri-tag";
angrr.url = "github:linyinfeng/angrr";
arbys.url = "path:/home/bolt/code/arbys";
};
}

View file

@ -9,7 +9,7 @@
];
home.packages = builtins.attrValues {
inherit (pkgs) nicotine-plus;
inherit (pkgs) nicotine-plus feishin;
};
}

View file

@ -22,7 +22,7 @@
nix.gc = {
automatic = true;
frequency = "daily";
options = "--delete-older-than 3d";
options = "--delete-older-than 14d";
};
xdg = {

View file

@ -1,4 +1,4 @@
{ config, ... }:
{ config, pkgs, ... }:
{
imports = [
../util/firefox-webapp.nix
@ -19,4 +19,5 @@
icon = ../icons/fb_msg.png;
};
};
home.packages = [ pkgs.cinny-desktop ];
}

View file

@ -9,7 +9,7 @@
];
home.packages = builtins.attrValues {
inherit (pkgs)
btop
btop-cuda
bat
ripgrep
fd

View file

@ -8,13 +8,13 @@
./chat.nix
../programs/firefox.nix
../programs/wlogout.nix
../programs/bitwarden.nix
];
home.packages = builtins.attrValues {
inherit (pkgs)
file-roller
nautilus
thunderbird
keepassxc
;
};
}

View file

@ -1,18 +1,69 @@
{ pkgs, rice, ... }:
{
pkgs,
lib,
rice,
...
}:
let
get = builtins.attrValues;
getPkgs = builtins.attrValues;
in
{
# imports = [
# ../programs/vscode.nix
# ];
home.packages = get {
inherit (pkgs)
git-credential-keepassxc
direnv
;
};
home.packages =
getPkgs {
inherit (pkgs)
direnv
;
}
++ [
# from https://gist.github.com/mikeboiko/58ab730afd65bca0a125bc12b6f4670d
(pkgs.writeTextFile {
name = "rbw-helper";
text = ''
declare -A params
if [ "x$1" == "xget" ]; then
read line
while [ -n "$line" ]; do
key=$\{line%%=*}
value=$\{line#*=}
params[$key]=$value
read line
done
if [ "x$\{params['protocol']}" != "xhttps" ]; then
exit
fi
if [ -z "$\{params["host"]}" ]; then
exit
fi
rbw ls > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "Please login to rbw to use git credential helper" > /dev/stderr
exit
fi
user=`rbw get --full $\{params["host"]} | grep "Username:" | cut -d' ' -f2-`
pass=`rbw get $\{params["host"]}`
if [ "x$user" == "x" ] || [ "x$pass" == "x" ]; then
echo "Couldn't find host in rbw DB." > /dev/stderr
exit
fi
echo username=$user
echo password=$pass
fi
'';
executable = true;
destination = "/bin/git-credential-rw";
})
];
programs.zed-editor = {
enable = false;
@ -68,7 +119,8 @@ in
userName = "atagen";
userEmail = "boss@atagen.co";
extraConfig = {
credential.helper = "keepassxc";
credential.helper = "rbw";
};
};
}

View file

@ -72,7 +72,7 @@ in
range
nameValuePair
mapAttrs'
mergeAttrs
mergeAttrsList
;
inherit (builtins) listToAttrs replaceStrings;
inherit (config.lib.niri) actions;
@ -122,67 +122,65 @@ in
}) (range 1 6)
);
in
{
"Mod+D".action.spawn = [
"qs"
"ipc"
"call"
"launch"
"toggle"
];
"Mod+F".action.spawn = "firefox";
"Mod+E".action.spawn = "nautilus";
"Mod+Return".action.spawn = "kitty";
"Mod+Shift+E".action.spawn = "wlogout";
"Mod+Equal".action.spawn = "keepassxc";
"Mod+Shift+Q".action = actions.close-window;
"Mod+Shift+S".action = actions.screenshot;
"Mod+R".action = actions.switch-preset-column-width;
"Mod+Shift+R".action = actions.maximize-column;
"XF86AudioRaiseVolume".action.spawn = [
"volumectl"
"-u"
"up"
];
"XF86AudioLowerVolume".action.spawn = [
"volumectl"
"-u"
"down"
];
"XF86AudioMute".action.spawn = [
"volumectl"
"toggle-mute"
];
"XF86AudioStop".action.spawn = [
"playerctl"
"stop"
];
"XF86AudioPlay".action.spawn = [
"playerctl"
"play-pause"
];
"XF86AudioNext".action.spawn = [
"playerctl"
"next"
];
"XF86AudioPrev".action.spawn = [
"playerctl"
"previous"
];
"Mod+Space".action = actions.toggle-window-floating;
}
# // makeDirBind "Mod" "focus-window-or-workspace-$DIR" vBinds
// makeDirBind "Mod" "focus-column-or-monitor-$DIR" hBinds
# // makeDirBind "Mod+Shift" "move-window-to-workspace-$DIR" vBinds
// makeDirBind "Mod+Shift" "move-column-$DIR-or-to-monitor-$DIR" hBinds
// makeDirBind "Mod+Ctrl" "consume-or-expel-window-$DIR" hBinds
// makeDirBind "Mod+Ctrl" "move-window-$DIR" vBinds
// makeTagBind "Mod" "toggle-tag"
// makeTagBind "Mod+Shift" "toggle"
// makeTagBind "Mod+Ctrl" "exclusive-tag"
# // makeWsBind "Mod" "focus-workspace"
# // makeWsBind "Mod+Shift" "move-window-to-workspace";
;
mergeAttrsList [
{
"Mod+D".action.spawn = [
"qs"
"ipc"
"call"
"launch"
"toggle"
];
"Mod+F".action.spawn = "firefox";
"Mod+E".action.spawn = "nautilus";
"Mod+Return".action.spawn = "kitty";
"Mod+Shift+E".action.spawn = "wlogout";
"Mod+Equal".action.spawn = "bitwarden";
"Mod+Shift+Q".action = actions.close-window;
"Mod+Shift+S".action = actions.screenshot;
"Mod+R".action = actions.switch-preset-column-width;
"Mod+Shift+R".action = actions.maximize-column;
"XF86AudioRaiseVolume".action.spawn = [
"volumectl"
"-u"
"up"
];
"XF86AudioLowerVolume".action.spawn = [
"volumectl"
"-u"
"down"
];
"XF86AudioMute".action.spawn = [
"volumectl"
"toggle-mute"
];
"XF86AudioStop".action.spawn = [
"playerctl"
"stop"
];
"XF86AudioPlay".action.spawn = [
"playerctl"
"play-pause"
];
"XF86AudioNext".action.spawn = [
"playerctl"
"next"
];
"XF86AudioPrev".action.spawn = [
"playerctl"
"previous"
];
"Mod+Space".action = actions.toggle-window-floating;
}
(makeDirBind "Mod" "focus-window-$DIR" vBinds)
(makeDirBind "Mod" "focus-column-or-monitor-$DIR" hBinds)
(makeDirBind "Mod+Shift" "move-column-$DIR-or-to-monitor-$DIR" hBinds)
(makeDirBind "Mod+Ctrl" "consume-or-expel-window-$DIR" hBinds)
(makeDirBind "Mod+Ctrl" "move-window-$DIR" vBinds)
(makeTagBind "Mod" "toggle-tag")
(makeTagBind "Mod+Shift" "toggle")
(makeTagBind "Mod+Ctrl" "exclusive-tag")
];
outputs = {
# "Unknown-1".enable = false;
"DP-1" = {

View file

@ -0,0 +1,13 @@
{ pkgs, ... }:
{
programs.rbw = {
enable = true;
settings = {
email = "boss@atagen.co";
pinentry = pkgs.pinentry-gnome3;
base_url = "https://v.atagen.co";
};
};
home.packages = [ pkgs.bitwarden ];
}

View file

@ -51,10 +51,10 @@ in
"*".installation_mode = "blocked"; # blocks all addons except the ones specified below
"uBlock0@raymondhill.net" = officialAddon "ublock-origin";
"addon@darkreader.org" = officialAddon "darkreader";
"keepassxc-browser@keepassxc.org" = officialAddon "keepassxc-browser";
"vimium-c@gdh1995.cn" = officialAddon "vimium-c";
"{b86e4813-687a-43e6-ab65-0bde4ab75758}" = officialAddon "localcdn-fork-of-decentraleyes";
"jid1-5Fs7iTLscUaZBgwr@jetpack" = officialAddon "happy-bonobo-disable-webrtc";
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = officialAddon "bitwarden-password-mananger";
};
Preferences = {

View file

@ -20,6 +20,20 @@
./modules/culr.nix
];
nix.gc = {
automatic = true;
dates = "daily";
persistent = true;
options = "--delete-older-than 14d";
};
services.angrr = {
enable = true;
enableNixGcIntegration = true;
period = "2weeks";
package = inputs.angrr.packages.${pkgs.system}.default;
};
hardware.enableRedistributableFirmware = true;
hardware.enableAllFirmware = true;

View file

@ -11,6 +11,12 @@
./configuration.nix
];
environment = {
arbys.enable = true;
files = {
};
};
services.ollama = {
enable = true;
user = "ollama";
@ -63,10 +69,10 @@
boot.loader.efi.canTouchEfiVariables = true;
# boot.plymouth = {
# enable = true;
# inherit (rice.plymouth) theme themePackages font;
# };
boot.plymouth = {
enable = true;
# inherit (rice.plymouth) theme themePackages font;
};
security.tpm2.enable = true;

View file

@ -17,7 +17,7 @@
"helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs="
"walker-git.cachix.org-1:vmC0ocfPWh0S/vRAQGtChuiZBTAe4wiKDeyyXM0/7pM="
"ocaml.nix-cache.com-1:/xI2h2+56rwFfKyyFVbkJSeGqSIYMC/Je+7XXqGKDIY="
"cache.atagen.co:aw7n3q/HD/kJ5cZSjK+BUE3Ics8e0OuaXO5EkV7GCeI="
"cache.atagen.co:SOUkNQxuu/eQ7FcI8nlUe7FpV27e7YjQlDQdn8HTUnw="
];
};
}