mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
[ROLES] Clean up a bit.
This commit is contained in:
parent
46af669184
commit
b69834d987
11 changed files with 32 additions and 14 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
5
nixos/roles/graphical/bootable.nix
Normal file
5
nixos/roles/graphical/bootable.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{tree, ...}: {
|
||||
imports = with tree.nixos.roles; [
|
||||
bootable
|
||||
];
|
||||
}
|
||||
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -12,10 +12,8 @@ _: let
|
|||
sound
|
||||
]
|
||||
++ (with tree.nixos.roles; [
|
||||
graphical
|
||||
gaming
|
||||
gnome
|
||||
bootable
|
||||
gaming
|
||||
])
|
||||
++ (with tree.kat; [
|
||||
gui
|
||||
|
|
|
|||
|
|
@ -10,10 +10,8 @@ _: let
|
|||
common-pc-laptop-ssd
|
||||
]
|
||||
++ (with tree.nixos.roles; [
|
||||
graphical
|
||||
sway
|
||||
laptop
|
||||
bootable
|
||||
])
|
||||
++ (with tree; [
|
||||
kat.gui
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@ _: let
|
|||
}: let
|
||||
inherit (lib.modules) mkDefault;
|
||||
in {
|
||||
imports = with tree; [
|
||||
nixos.rosetta
|
||||
nixos.roles.bootable
|
||||
imports = with tree.nixos.roles; [
|
||||
rosetta
|
||||
bootable
|
||||
];
|
||||
|
||||
boot = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue