NOflake/users/tao.nix
2026-03-08 21:32:13 -07:00

167 lines
4.1 KiB
Nix

{
inputs,
config,
pkgs,
lib,
...
}: {
users.users.tao.packages = with pkgs; [
forgejo-cli
grayjay
# keep-sorted start sticky_comments=no
# android-tools
# boxxy
# carapace
# davinci-resolve
# fractal
# freecad-wayland
# gurk-rs
# jellyfin-media-player
# nixos-anywhere
# piper
# syncthingtray
# taskwarrior3
# tectonic
# texlab
# thunderbird
# wkhtmltopdf
appimage-run
aspell
aspellDicts.en
bitwarden-cli
bitwarden-desktop
bottles
calibre
darktable
deluge
discord
element-desktop
gocryptfs
jellyfin-mpv-shim
man-pages
man-pages-posix
miniserve
mousai
nix-output-monitor
nufmt
nushell
nvd
obs-studio
oculante
onlyoffice-desktopeditors
openscad
pandoc
pipe-rename
printrun
prusa-slicer
qmk
qmk-udev-rules
qmk_hid
ripgrep-all
signal-desktop
slack
snapper
starship
syncplay
tinymist
toastify
typst
usbutils
vial
wezterm
wl-clipboard-rs
yt-dlp
zathura
zoom-us
zotero
zoxide
# keep-sorted end
];
virtualisation.waydroid = {
enable = true;
package = pkgs.waydroid-nftables;
};
environment.shells = with pkgs; [nushell];
fonts.packages = with pkgs; [
# keep-sorted start
cooper-hewitt
ibm-plex
nerd-fonts.fira-code
noto-fonts-cjk-sans
noto-fonts-cjk-serif
noto-fonts-color-emoji
# keep-sorted end
];
documentation.enable = true;
# virtualisation.libvirtd.enable = true;
# virtualisation.libvirtd.qemu.swtpm.enable = true;
# virtualisation.spiceUSBRedirection.enable = true;
# programs.virt-manager.enable = true;
# virtualisation.virtualbox.host = {
# enable = true;
# enableExtensionPack = true;
# };
disabledModules = ["services/misc/snapper.nix"];
imports = [../extras/snapper.nix];
services.snapper.configs = {
home = {
SUBVOLUME = "/home";
FSTYPE =
if lib.strings.hasPrefix "NOlaptop" (builtins.readFile /etc/hostname)
then "bcachefs"
else "btrfs";
ALLOW_USERS = ["tao"];
TIMELINE_CREATE = true;
TIMELINE_CLEANUP = true;
TIMELINE_LIMIT_HOURLY = 5;
TIMELINE_LIMIT_DAILY = 7;
};
};
services.snapper.snapshotInterval = "*:0/5";
hardware.keyboard.qmk.enable = true;
services.udev.extraRules = ''
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
'';
services.ratbagd.enable = true;
# boot = {
# extraModulePackages = with config.boot.kernelPackages; [
# v4l2loopback
# ];
# extraModprobeConfig = ''
# options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
# '';
# };
# security.polkit.enable = true;
programs.obs-studio = {
enable = true;
enableVirtualCamera = true;
package = pkgs.obs-studio.override {cudaSupport = true;};
};
users.users.tao = {
isNormalUser = true;
# hashedPasswordFile = config.age.secrets.password-tao.path;
extraGroups = ["audio" "video" "wheel" "libvirtd" "dialout" "game"];
shell = pkgs.nushell;
};
age.secrets = {
syncthing-NOcomputer.file = ../secrets/syncthing-NOcomputer.age;
syncthing-NOlaptop.file = ../secrets/syncthing-NOlaptop.age;
syncthing-uwuraid.file = ../secrets/syncthing-uwuraid.age;
};
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
verbose = true;
backupFileExtension = ".hm-bak";
users.tao = import ./tao/HOME.nix {inherit inputs pkgs lib config;};
};
}