Unify package config and import

This commit is contained in:
Yan Lin 2025-08-30 07:38:59 +02:00
parent 1ac0a29a59
commit 13cfcca90c
4 changed files with 6 additions and 4 deletions

View file

@ -30,10 +30,8 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
# Network and file transfer # Network and file transfer
lftp lftp
termscp
httpie httpie
openssh openssh
rsync
gnumake gnumake
# Command-line utilities # Command-line utilities
@ -57,8 +55,6 @@
sqlite sqlite
# Productivity apps # Productivity apps
papis
keepassxc # Password manager (Linux/Windows/macOS) keepassxc # Password manager (Linux/Windows/macOS)
syncthing # File synchronization (cross-platform)
]; ];
} }

View file

@ -1,6 +1,8 @@
{ pkgs, lib, ... }: { pkgs, lib, ... }:
{ {
# Install papis package
home.packages = [ pkgs.papis ];
# Papis configuration # Papis configuration
home.file.${if pkgs.stdenv.isDarwin then "Library/Application Support/papis/config" else ".config/papis/config"}.text = '' home.file.${if pkgs.stdenv.isDarwin then "Library/Application Support/papis/config" else ".config/papis/config"}.text = ''
[settings] [settings]

View file

@ -1,6 +1,8 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
# Install rsync package
home.packages = [ pkgs.rsync ];
# Rsync exclude patterns for common files and directories # Rsync exclude patterns for common files and directories
home.file.".rsync-exclude".text = '' home.file.".rsync-exclude".text = ''
# macOS specific # macOS specific

View file

@ -1,6 +1,8 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
# Install termscp package
home.packages = [ pkgs.termscp ];
home.file.${if pkgs.stdenv.isDarwin then "Library/Application Support/termscp/config.toml" else ".config/termscp/config.toml"}.text = '' home.file.${if pkgs.stdenv.isDarwin then "Library/Application Support/termscp/config.toml" else ".config/termscp/config.toml"}.text = ''
# termscp configuration file # termscp configuration file
# Generated by Nix - see modules/termscp.nix for customization # Generated by Nix - see modules/termscp.nix for customization