2022-05-09 13:35:55 +02:00
|
|
|
# Default configuration settings for physical machines that I use.
|
2023-08-29 16:10:11 +02:00
|
|
|
{ lib, pkgs, config, depot, ... }:
|
2022-05-09 13:35:55 +02:00
|
|
|
|
2022-05-12 13:06:26 +02:00
|
|
|
let
|
|
|
|
pass-otp = pkgs.pass.withExtensions (e: [ e.pass-otp ]);
|
|
|
|
in
|
2022-05-09 13:35:55 +02:00
|
|
|
{
|
2023-08-29 16:10:11 +02:00
|
|
|
options = with lib; {
|
|
|
|
tazjin.emacs = mkOption {
|
|
|
|
type = types.package;
|
|
|
|
default = depot.users.tazjin.emacs;
|
|
|
|
description = ''
|
|
|
|
Derivation with my Emacs package, with configuration included.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = {
|
|
|
|
# Install all the default software.
|
|
|
|
environment.systemPackages =
|
|
|
|
# programs from the depot
|
|
|
|
(with depot; [
|
|
|
|
users.tazjin.screenLock
|
|
|
|
config.tazjin.emacs
|
|
|
|
third_party.agenix.cli
|
|
|
|
third_party.josh
|
|
|
|
]) ++
|
2022-05-09 13:35:55 +02:00
|
|
|
|
2023-08-29 16:10:11 +02:00
|
|
|
# programs from nixpkgs
|
|
|
|
(with pkgs; [
|
|
|
|
(aspellWithDicts (d: [ d.ru ]))
|
|
|
|
amber
|
|
|
|
bat
|
|
|
|
curl
|
|
|
|
ddcutil
|
|
|
|
direnv
|
|
|
|
dnsutils
|
|
|
|
electrum
|
|
|
|
config.tazjin.emacs.emacs # emacsclient
|
2023-09-11 10:08:38 +02:00
|
|
|
expect
|
2023-08-29 16:10:11 +02:00
|
|
|
fd
|
|
|
|
file
|
|
|
|
gdb
|
|
|
|
gh
|
|
|
|
git
|
|
|
|
gnupg
|
|
|
|
gtk3 # for gtk-launch
|
|
|
|
htop
|
|
|
|
hyperfine
|
|
|
|
iftop
|
|
|
|
imagemagick
|
|
|
|
jq
|
|
|
|
lieer
|
|
|
|
maim
|
|
|
|
man-pages
|
|
|
|
moreutils
|
|
|
|
mosh
|
|
|
|
msmtp
|
|
|
|
mullvad-vpn
|
|
|
|
networkmanagerapplet
|
|
|
|
nix-prefetch-github
|
|
|
|
nmap
|
|
|
|
notmuch
|
|
|
|
openssh
|
|
|
|
openssl
|
|
|
|
pass-otp
|
|
|
|
pavucontrol
|
|
|
|
pinentry
|
|
|
|
pinentry-emacs
|
|
|
|
pulseaudio # for pactl
|
|
|
|
pwgen
|
|
|
|
quasselClient
|
|
|
|
rink
|
|
|
|
ripgrep
|
|
|
|
rust-analyzer
|
|
|
|
rustup
|
|
|
|
screen
|
|
|
|
thunderbird
|
|
|
|
tig
|
|
|
|
tokei
|
|
|
|
tree
|
|
|
|
unzip
|
|
|
|
vlc
|
|
|
|
volumeicon
|
|
|
|
whois
|
|
|
|
xclip
|
|
|
|
xsecurelock
|
|
|
|
zoxide
|
|
|
|
]);
|
2022-05-09 17:04:52 +02:00
|
|
|
|
2023-08-29 16:10:11 +02:00
|
|
|
# Run services & configure programs for all machines.
|
|
|
|
services.fwupd.enable = true;
|
2022-05-09 17:04:52 +02:00
|
|
|
|
2023-08-29 16:10:11 +02:00
|
|
|
# Disable the broken NetworkManager-wait-online.service
|
|
|
|
systemd.services.NetworkManager-wait-online.enable = lib.mkForce false;
|
2022-07-14 17:29:29 +02:00
|
|
|
|
2023-08-29 16:10:11 +02:00
|
|
|
programs = {
|
|
|
|
fish.enable = true;
|
|
|
|
mosh.enable = true;
|
|
|
|
ssh.startAgent = true;
|
|
|
|
};
|
2022-05-09 17:04:52 +02:00
|
|
|
};
|
2022-05-09 13:35:55 +02:00
|
|
|
}
|