2022-07-31 11:03:59 +02:00
|
|
|
# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
{
|
|
|
|
lib,
|
|
|
|
roots,
|
|
|
|
inputs,
|
2022-11-03 07:19:24 +01:00
|
|
|
pkgs,
|
2022-07-31 11:03:59 +02:00
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; {
|
|
|
|
imports = [
|
|
|
|
inputs.home-manager.nixosModules.home-manager
|
|
|
|
(roots.nixos + "/modules")
|
|
|
|
];
|
|
|
|
|
2022-11-03 07:19:24 +01:00
|
|
|
documentation.dev.enable = true;
|
|
|
|
|
|
|
|
environment.systemPackages = [ pkgs.man-pages pkgs.man-pages-posix ];
|
|
|
|
|
2022-07-31 11:03:59 +02:00
|
|
|
magic_rb = {
|
|
|
|
flakes.enable = true;
|
|
|
|
sshdEmacs.enable = true;
|
|
|
|
pulseaudio.enable = true;
|
|
|
|
|
|
|
|
serokell = true;
|
|
|
|
|
|
|
|
xserver = {
|
|
|
|
enable = true;
|
|
|
|
xmonad = true;
|
|
|
|
qwertyNeo2 = true;
|
|
|
|
mimickInTty = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
home-manager.users."main" = {...}: {
|
|
|
|
imports = [
|
|
|
|
(roots.home-manager + "/modules")
|
|
|
|
];
|
|
|
|
|
2022-10-07 22:05:31 +02:00
|
|
|
services.pantalaimon.enable = true;
|
|
|
|
|
2022-07-31 11:03:59 +02:00
|
|
|
magic_rb = {
|
|
|
|
programs = {
|
|
|
|
alacritty.enable = true;
|
|
|
|
bash = {
|
|
|
|
enable = true;
|
|
|
|
enableDirenv = true;
|
|
|
|
};
|
|
|
|
ssh.enable = true;
|
|
|
|
emacs = {
|
|
|
|
enable = true;
|
|
|
|
enableMu4e = true;
|
|
|
|
};
|
|
|
|
xmonad.enable = true;
|
|
|
|
gpg.enable = true;
|
|
|
|
multimc.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
packageCollections = {
|
|
|
|
"3dPrinting".enable = true;
|
|
|
|
cmdline.enable = true;
|
|
|
|
graphical.enable = true;
|
|
|
|
webdev.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-08-27 22:40:16 +02:00
|
|
|
services.syncthing = {
|
|
|
|
enable = true;
|
|
|
|
user = "main";
|
|
|
|
group = "main";
|
|
|
|
};
|
|
|
|
|
2022-07-31 11:03:59 +02:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
services.sshd.enable = true;
|
|
|
|
|
|
|
|
# Virtualisation
|
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
|
2022-09-11 18:44:15 +02:00
|
|
|
# Enable PCSCD for smart card stuff
|
|
|
|
services.pcscd.enable = true;
|
|
|
|
|
2022-07-31 11:03:59 +02:00
|
|
|
## Fuck podman, 2021-08-31, `podman info` fails with a stack trace
|
|
|
|
## and all containers tested fail with `Operation not supported`...
|
|
|
|
# virtualisation.podman = {
|
|
|
|
# enable = true;
|
|
|
|
# dockerCompat = true;
|
|
|
|
# };
|
|
|
|
|
|
|
|
# System emulation
|
|
|
|
boot.binfmt.emulatedSystems = [
|
|
|
|
"aarch64-linux"
|
|
|
|
"riscv64-linux"
|
|
|
|
];
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Bratislava";
|
|
|
|
security.pki.certificates =
|
|
|
|
singleton (builtins.readFile (roots.flake + "/redalder.org.crt"));
|
|
|
|
}
|