Modularize everything

This commit is contained in:
Paul-Henri Froidmont 2023-03-21 14:42:39 +01:00
parent d5cbf61286
commit 68d301c666
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
21 changed files with 536 additions and 240 deletions

View file

@ -1,13 +1,9 @@
{ pkgs, config, lib, ... }:
{
imports = [
./hardware-configuration.nix
];
{ pkgs, config, lib, ... }: {
imports = [ ./hardware-configuration.nix ];
modules = {
desktop = {
xmonad.enable = true;
neovim.enable = true;
alacritty.enable = true;
zsh.enable = true;
vscode.enable = true;
@ -15,8 +11,21 @@
htop.enable = true;
mpd.enable = true;
};
editor = {
vim.enable = true;
emacs.enable = true;
};
services = {
flatpak.enable = true;
belgian-eid.enable = true;
docker.enable = true;
libvirt.enable = true;
};
apps = { newsboat.enable = true; };
};
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
# Allow to externally control MPD
networking.firewall.allowedTCPPorts = [ 6600 ];