start modularising NixOS config for several hosts

First step in modularising the NixOS config, with a focus on separation of host-specific and common configs.
Common modules still need to be split up and refined, several TODOs and FIXUPs remain in code. But the config builds fine on thinknix.

Roughly based on/ inspired by https://johns.codes/blog/organizing-system-configs-with-nixos#using-nixos
This commit is contained in:
Trolli Schmittlauch 2024-01-09 23:48:38 +01:00
parent 0639633b0d
commit 993308a2d3
11 changed files with 239 additions and 159 deletions

87
common/packages.nix Normal file
View file

@ -0,0 +1,87 @@
{ pkgs, config, ... }:
{
# List packages installed in system profile.
environment.systemPackages = with pkgs; [
wget
vim
vimPlugins.vim-nix
vimPlugins.pathogen
tmux
htop
zsh
btrfs-progs
git
python3
man-pages
dnsutils
netcat
ntfs3g
file
multipath-tools
strace
ltrace
valgrind
testdisk
rsync
pv
exfat
iotop
cifs-utils
dstat
lsof
macchanger
borgbackup
# for debugging WLAN failures:
ethtool
trace-cmd
# NetworkManager stuff
networkmanager-openconnect
networkmanager-vpnc
networkmanager-openvpn
plasma5Packages.kdeGear.akonadi-mime # for KOrganizer
]
++ (with plasma5Packages; with kdeGear; [
#akonadi
#akonadi-calendar
#akonadi-contacts
#akonadi-import-wizard
#akonadi-mime
#akonadi-notes
#akonadi-search
#akonadiconsole
#akregator
#kaddressbook
#kalarm
#kalarmcal
#kcalutils
#kcontacts
#kdav
#kdepim-addons
#kdepim-runtime
#kidentitymanagement
#kldap
#kmail
#kmailtransport
#kmbox
#kmime
#kontact
#kontactinterface
#korganizer
#kpimtextedit
#libkdepim
#libksieve
#mailcommon
#messagelib
#pimcommon
#pim-sieve-editor
# for some Flatpak packkages
accountsservice
]);
}