Apps, refactor, clean up, remove librewolf

Refactors to use app.nix for easier extension.

Removes librewolf from host, as it makes more sense on the user every
time.
This commit is contained in:
Julia Lange 2024-11-28 20:23:38 -08:00
parent 1f59950af8
commit db7f132f6e
Signed by: Julia
SSH key fingerprint: SHA256:KI8YxpkPRbnDRkXPgCuQCVz181++Vy7NAvmQj8alOhM
10 changed files with 27 additions and 80 deletions

View file

@ -1,14 +1,14 @@
{ config, inputs, pkgs, lib, ... }:
{ config, inputs, lib, ... }:
{
options = {
aagl.enable = lib.mkEnableOption
options.aagl = {
enable = lib.mkEnableOption
"Enables another anime game launcher settings";
aagl.honkai-rail = lib.mkEnableOption
honkai-rail = lib.mkEnableOption
"Enables honkai star rail";
aagl.genshin = lib.mkEnableOption
genshin = lib.mkEnableOption
"Enables genshin impact";
aagl.honkai-3rd = lib.mkEnableOption
honkai-3rd = lib.mkEnableOption
"Enables honkai 3rd impact";
};

View file

@ -1,12 +1,6 @@
{ config, pkgs, lib, ... }:
{
imports = [
./games
./input-remapper
./librewolf
./shells
./syncthing
./virtualbox
];
{ lib, ... }: let
fs = lib.fileset;
appFilter = {name, ...}: name == "app.nix";
in {
imports = fs.toList (fs.fileFilter appFilter ./.);
}

View file

@ -1,8 +0,0 @@
{ config, pkgs, lib, ... }:
{
imports = [
./anime-launcher
./steam
];
}

View file

@ -1,11 +0,0 @@
{ config, pkgs, lib, ... }:
{
options = {
input-remapper.enable = lib.mkEnableOption "Enables input-remapper";
};
config = lib.mkIf config.input-remapper.enable {
services.input-remapper.enable = true;
};
}

View file

@ -0,0 +1,11 @@
{ config, lib, ... }:
{
options.input-remapper = {
enable = lib.mkEnableOption "Enables input-remapper";
};
config = lib.mkIf config.input-remapper.enable {
services.input-remapper.enable = true;
};
}

View file

@ -1,12 +0,0 @@
{ config, pkgs, lib, ... }:
{
options = {
librewolf.enable = lib.mkEnableOption "Enables librewolf";
};
config = lib.mkIf config.librewolf.enable {
environment.variables.BROWSER = "librewolf";
environment.systemPackages = with pkgs; [ librewolf ];
};
}

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ ... }:
{
imports = [

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
{
options.steam = {
@ -12,6 +12,6 @@
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
programs.gamemode.enable = true;
programs.gamemode.enable = lib.mkIf config.steam.gamemode true;
};
}

View file

@ -1,25 +0,0 @@
{ config, lib, ... }:
{
options = {
syncthing.enable = lib.mkEnableOption "Enables syncthing";
};
config = lib.mkIf config.syncthing.enable {
services.syncthing = {
enable = true;
# user = config.user.name;
# dataDir = "/home/" + config.user.name + "/dox/Sync";
# configDir = "/home/" + config.user.name + "/.config/syncthing";
# overrideFolders = true;
# overrideDevices = true;
#
# settings = {
# gui = {
# user = config.user.name;
# password = "password";
# };
# };
};
};
}

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
{
options.virtualbox = {
@ -8,8 +8,6 @@
config = lib.mkIf config.virtualbox.enable {
virtualisation.virtualbox.host.enable = true;
users.extraGroups.vboxusers.members = [
config.user.name
] ++ config.virtualbox.extra-users;
users.extraGroups.vboxusers.members = config.virtualbox.extra-users;
};
}