[ROLES] Clean up a bit.

This commit is contained in:
Kat Inskip 2023-04-30 16:24:20 -07:00
parent 46af669184
commit b69834d987
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
11 changed files with 32 additions and 14 deletions

View file

@ -25,8 +25,8 @@ in {
publicKey = builtins.readFile ./ca-pubkey.pem;
};
*/
kexAlgorithms = ["curve25519-sha256@libssh.org"];
settings = {
KexAlgorithms = ["curve25519-sha256@libssh.org"];
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = mkDefault "prohibit-password";

View file

@ -22,9 +22,10 @@ in {
grub.configurationLimit = 8;
systemd-boot.configurationLimit = 8;
};
tmpOnTmpfs = true;
tmpOnTmpfsSize = "80%";
kernelPackages = mkIf (list.elem "zfs" config.boot.supportedFilesystems) (mkDefault config.boot.zfs.package.latestCompatibleLinuxPackages);
tmp = {
tmpfsSize = "80%";
useTmpfs = true;
};
}
(mkIf (list.elem "zfs" config.boot.supportedFilesystems) {
kernelPackages = mkDefault config.boot.zfs.package.latestCompatibleLinuxPackages;

View file

@ -1,4 +1,12 @@
{pkgs, ...}: {
{
pkgs,
tree,
...
}: {
imports = with tree.nixos.roles; [
graphical
];
services.xserver.enable = true;
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;

View file

@ -0,0 +1,5 @@
{tree, ...}: {
imports = with tree.nixos.roles; [
bootable
];
}

View file

@ -1,10 +1,15 @@
{
std,
config,
tree,
...
}: let
inherit (std) set;
in {
imports = with tree.nixos.roles; [
bootable
];
systemd.tmpfiles.rules = set.mapToValues (username: _: "f /var/lib/systemd/linger/${username}") config.users.users;
networking.firewall = {

View file

@ -8,6 +8,9 @@
inherit (std) set list;
inherit (lib.modules) mkForce;
in {
imports = with tree.nixos.roles; [
graphical
];
programs.sway = {
enable = list.any (user: user.wayland.windowManager.sway.enable) (set.values config.home-manager.users);
extraPackages = with pkgs; mkForce [xwayland swaylock swayidle swaylock-fancy wmctrl];