2023-08-02 23:20:31 -04:00
|
|
|
# CLI configuration.nix
|
|
|
|
{ config, lib, pkgs, inputs, user, ... }:
|
|
|
|
{
|
2024-01-13 22:33:39 -05:00
|
|
|
imports = [
|
|
|
|
./base.nix
|
|
|
|
];
|
2023-08-02 23:20:31 -04:00
|
|
|
environment = {
|
|
|
|
localBinInPath = true;
|
|
|
|
variables = {
|
|
|
|
GOPROXY = "direct";
|
|
|
|
#MAILRC="$XDG_CONFIG_HOME/mail/mailrc"
|
|
|
|
#allowing environmental variable is needed for a mosh connection
|
|
|
|
LC_CTYPE = "en_US.UTF-8";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
services = {
|
|
|
|
samba = {
|
|
|
|
enable = true;
|
|
|
|
# You will still need to set up the user accounts to begin with:
|
|
|
|
# $ sudo smbpasswd -a yourusername
|
|
|
|
# This adds to the [global] section:
|
|
|
|
extraConfig = ''
|
|
|
|
browseable = yes
|
|
|
|
smb encrypt = required
|
|
|
|
'';
|
|
|
|
shares = {
|
|
|
|
homes = {
|
|
|
|
browseable = "no"; # note: each home will be browseable; the "homes" share will not.
|
|
|
|
"read only" = "no";
|
|
|
|
"guest ok" = "no";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
# mDNS
|
|
|
|
# This part may be optional for your needs, but I find it makes browsing in Dolphin easier,
|
|
|
|
# and it makes connecting from a local Mac possible.
|
|
|
|
avahi = {
|
|
|
|
enable = true;
|
2023-12-25 10:45:28 -05:00
|
|
|
nssmdns4 = true;
|
2023-08-02 23:20:31 -04:00
|
|
|
publish = {
|
|
|
|
enable = true;
|
|
|
|
addresses = true;
|
|
|
|
domain = true;
|
|
|
|
hinfo = true;
|
|
|
|
userServices = true;
|
|
|
|
workstation = true;
|
|
|
|
};
|
|
|
|
extraServiceFiles = {
|
|
|
|
smb = ''
|
|
|
|
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
|
|
|
|
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
|
|
|
|
<service-group>
|
|
|
|
<name replace-wildcards="yes">%h</name>
|
|
|
|
<service>
|
|
|
|
<type>_smb._tcp</type>
|
|
|
|
<port>445</port>
|
|
|
|
</service>
|
|
|
|
</service-group>
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
sound.enable = true;
|
|
|
|
hardware.pulseaudio.enable = false;
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
#jack.enable = true;
|
2024-01-08 10:36:26 -05:00
|
|
|
wireplumber.enable = true;
|
2023-08-02 23:20:31 -04:00
|
|
|
};
|
2023-09-13 22:34:02 -04:00
|
|
|
users.users.${user.name}.packages = with pkgs; [
|
2024-01-13 22:33:39 -05:00
|
|
|
bashmount
|
2023-09-13 22:34:02 -04:00
|
|
|
btfs
|
2024-01-13 22:33:39 -05:00
|
|
|
catgirl
|
2023-09-13 22:34:02 -04:00
|
|
|
cava
|
|
|
|
cifs-utils
|
2023-12-03 21:25:44 -05:00
|
|
|
cmus
|
2023-09-13 22:34:02 -04:00
|
|
|
curlie
|
|
|
|
dig
|
|
|
|
dogdns
|
2023-12-31 23:17:28 -05:00
|
|
|
dstat
|
2023-09-13 22:34:02 -04:00
|
|
|
dua
|
2023-09-26 23:45:25 -04:00
|
|
|
exiftool
|
2023-09-13 22:34:02 -04:00
|
|
|
ffmpeg
|
|
|
|
fq
|
|
|
|
fx
|
|
|
|
gitui
|
2023-11-23 01:24:22 -05:00
|
|
|
glow
|
2023-11-03 23:27:43 -04:00
|
|
|
gpg-tui
|
2023-09-13 22:34:02 -04:00
|
|
|
gping
|
|
|
|
gron
|
2023-11-23 01:24:22 -05:00
|
|
|
gum
|
2023-09-13 22:34:02 -04:00
|
|
|
hexyl
|
|
|
|
htmlq
|
|
|
|
hugo
|
2023-12-31 23:17:28 -05:00
|
|
|
iftop
|
2023-09-13 22:34:02 -04:00
|
|
|
imagemagick
|
2023-12-31 23:17:28 -05:00
|
|
|
ipcalc
|
2023-09-13 22:34:02 -04:00
|
|
|
ipfetch
|
2023-12-31 23:17:28 -05:00
|
|
|
iptraf-ng
|
2023-09-13 22:34:02 -04:00
|
|
|
jo
|
|
|
|
john
|
|
|
|
jq
|
2024-01-09 23:50:35 -05:00
|
|
|
killall
|
2023-09-13 22:34:02 -04:00
|
|
|
lynis
|
|
|
|
mdp
|
|
|
|
mediainfo
|
2024-01-06 00:52:21 -05:00
|
|
|
mosh
|
2023-11-03 23:27:43 -04:00
|
|
|
nb
|
2023-12-31 23:17:28 -05:00
|
|
|
nethogs
|
2023-09-13 22:34:02 -04:00
|
|
|
oed
|
|
|
|
pdfgrep
|
2023-11-23 13:58:06 -05:00
|
|
|
phetch
|
2024-01-13 22:33:39 -05:00
|
|
|
profanity
|
2023-09-13 22:34:02 -04:00
|
|
|
recutils
|
2024-01-13 22:33:39 -05:00
|
|
|
senpai
|
2023-11-23 01:24:22 -05:00
|
|
|
shellcheck
|
2024-01-13 22:33:39 -05:00
|
|
|
sic
|
2023-12-31 23:17:28 -05:00
|
|
|
sipcalc
|
2023-09-13 22:34:02 -04:00
|
|
|
ssss
|
2023-11-22 20:32:43 -05:00
|
|
|
surfraw
|
2024-01-05 22:55:40 -05:00
|
|
|
tmux-xpanes
|
2024-01-13 22:33:39 -05:00
|
|
|
tut
|
2023-10-26 22:45:03 -04:00
|
|
|
unrar
|
|
|
|
unzip
|
2023-09-13 22:34:02 -04:00
|
|
|
up
|
2024-01-09 23:50:35 -05:00
|
|
|
ueberzugpp
|
2023-09-13 22:34:02 -04:00
|
|
|
yai
|
|
|
|
yank
|
|
|
|
yq-go
|
|
|
|
yt-dlp
|
|
|
|
];
|
2023-08-02 23:20:31 -04:00
|
|
|
}
|