mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 04:13:55 -05:00
175 lines
4.8 KiB
Nix
175 lines
4.8 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
options.ar = {
|
|
apps = {
|
|
firefox.enable = lib.mkEnableOption "Firefox Web Browser.";
|
|
nicotine-plus.enable = lib.mkEnableOption "Nicotine+ Soulseek client.";
|
|
podman.enable = lib.mkEnableOption "Podman for OCI container support.";
|
|
steam.enable = lib.mkEnableOption "Valve's Steam for video games.";
|
|
virt-manager.enable = lib.mkEnableOption "Virtual machine client.";
|
|
};
|
|
|
|
desktop = {
|
|
cinnamon.enable = lib.mkEnableOption "Cinnamon desktop session.";
|
|
|
|
gnome = {
|
|
enable = lib.mkEnableOption "GNOME desktop session.";
|
|
fprintdFix = lib.mkEnableOption "Fingerprint login fix for GDM";
|
|
};
|
|
|
|
greetd = {
|
|
enable = lib.mkEnableOption "Greetd display manager.";
|
|
|
|
autologin = {
|
|
enable = lib.mkEnableOption "Whether to enable autologin.";
|
|
|
|
user = lib.mkOption {
|
|
description = "User to autologin.";
|
|
default = "aly";
|
|
type = lib.types.str;
|
|
};
|
|
};
|
|
|
|
session = lib.mkOption {
|
|
description = "Default command to execute on login.";
|
|
default = lib.getExe config.programs.hyprland.package;
|
|
type = lib.types.str;
|
|
};
|
|
};
|
|
|
|
hyprland.enable = lib.mkEnableOption "Hyprland wayland session.";
|
|
lightdm.enable = lib.mkEnableOption "Lightdm display manager.";
|
|
plasma.enable = lib.mkEnableOption "Plasma desktop session.";
|
|
steam.enable = lib.mkEnableOption "Steam + Gamescope session.";
|
|
sway.enable = lib.mkEnableOption "Sway wayland session.";
|
|
};
|
|
|
|
services = {
|
|
flatpak.enable = lib.mkEnableOption "Flatpak support with GUI.";
|
|
|
|
syncthing = {
|
|
enable = lib.mkEnableOption "Syncthing sync service.";
|
|
|
|
user = lib.mkOption {
|
|
description = "Specify user Syncthing runs as.";
|
|
default = "aly";
|
|
type = lib.types.str;
|
|
};
|
|
|
|
syncMusic = lib.mkOption {
|
|
description = "Whether to sync music folder.";
|
|
default = config.ar.services.syncthing.enable;
|
|
type = lib.types.bool;
|
|
};
|
|
|
|
musicPath = lib.mkOption {
|
|
description = "Whether to sync music folder.";
|
|
default = "/home/${config.ar.services.syncthing.user}/music";
|
|
type = lib.types.str;
|
|
};
|
|
};
|
|
|
|
tailscale.enable = lib.mkEnableOption "Tailscale WireGuard VPN.";
|
|
};
|
|
|
|
base = {
|
|
enable =
|
|
lib.mkEnableOption "Basic system configuration and sane defaults.";
|
|
|
|
sambaAutoMount = lib.mkOption {
|
|
description = "Automounting of mauville Samba Shares.";
|
|
default =
|
|
config.ar.services.tailscale.enable
|
|
&& !(config.networking.hostName == "mauville");
|
|
type = lib.types.bool;
|
|
};
|
|
|
|
plymouth.enable = lib.mkOption {
|
|
description = "Plymouth boot screen.";
|
|
default = config.ar.base.enable;
|
|
type = lib.types.bool;
|
|
};
|
|
|
|
zramSwap = {
|
|
enable = lib.mkOption {
|
|
description = "zram swap.";
|
|
default = config.ar.base.enable;
|
|
type = lib.types.bool;
|
|
};
|
|
|
|
size = lib.mkOption {
|
|
description = "zram swap size relative to RAM.";
|
|
default = 50;
|
|
type = lib.types.int;
|
|
};
|
|
};
|
|
};
|
|
|
|
users = {
|
|
defaultGroups = lib.mkOption {
|
|
description = "Default groups for desktop users.";
|
|
default = [
|
|
"dialout"
|
|
"docker"
|
|
"libvirtd"
|
|
"lp"
|
|
"networkmanager"
|
|
"scanner"
|
|
"transmission"
|
|
"video"
|
|
"wheel"
|
|
];
|
|
};
|
|
|
|
aly = {
|
|
enable = lib.mkEnableOption "Aly's user.";
|
|
|
|
manageHome = lib.mkOption {
|
|
description = "Whether to enable aly's home directory.";
|
|
type = lib.types.bool;
|
|
default = config.ar.users.aly.enable;
|
|
};
|
|
|
|
password = lib.mkOption {
|
|
description = "Hashed password for aly.";
|
|
type = lib.types.str;
|
|
};
|
|
};
|
|
|
|
dustin = {
|
|
enable = lib.mkEnableOption "Dustin's user.";
|
|
|
|
manageHome = lib.mkOption {
|
|
description = "Whether to manage dustin's home directory.";
|
|
type = lib.types.bool;
|
|
default = config.ar.users.dustin.enable;
|
|
};
|
|
|
|
password = lib.mkOption {
|
|
description = "Hashed password for dustin.";
|
|
type = lib.types.str;
|
|
};
|
|
};
|
|
|
|
morgan = {
|
|
enable = lib.mkEnableOption "Morgan's user.";
|
|
|
|
manageHome = lib.mkOption {
|
|
description = "Whether to manage morgan's home directory.";
|
|
type = lib.types.bool;
|
|
default = config.ar.users.morgan.enable;
|
|
};
|
|
|
|
password = lib.mkOption {
|
|
description = "Hashed password for morgan.";
|
|
type = lib.types.str;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|