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-28 01:35:20 +01:00
|
|
|
pkgs,
|
2022-07-31 11:03:59 +02:00
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; {
|
|
|
|
imports = [
|
|
|
|
(roots.nixos + "/modules")
|
|
|
|
inputs.home-manager.nixosModules.home-manager
|
2022-10-11 07:55:27 +02:00
|
|
|
inputs.serokell-nix.nixosModules.acme-sh
|
2022-07-31 11:03:59 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
home-manager.users."main" = {config, ...}: {
|
|
|
|
imports = [(roots.home-manager + "/modules")];
|
|
|
|
magic_rb.programs.bash.enable = true;
|
2022-11-28 01:35:20 +01:00
|
|
|
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
htop
|
|
|
|
];
|
2022-07-31 11:03:59 +02:00
|
|
|
};
|
|
|
|
|
2022-11-27 20:24:56 +01:00
|
|
|
zramSwap.enable = true;
|
|
|
|
|
2022-07-31 11:03:59 +02:00
|
|
|
magic_rb = {
|
|
|
|
flakes.enable = true;
|
|
|
|
sshdEmacs.enable = true;
|
|
|
|
vpsRemoteAccess = {
|
|
|
|
enable = true;
|
|
|
|
trustedWheel = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.firewall.enable = true;
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Bratislava";
|
|
|
|
security.pki.certificates =
|
|
|
|
singleton (builtins.readFile (roots.flake + "/redalder.org.crt"));
|
|
|
|
}
|