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:
parent
1f59950af8
commit
db7f132f6e
10 changed files with 27 additions and 80 deletions
|
|
@ -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";
|
||||
};
|
||||
|
||||
|
|
@ -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 ./.);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./anime-launcher
|
||||
./steam
|
||||
];
|
||||
}
|
||||
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
11
nixosModules/apps/inputremapper/app.nix
Normal file
11
nixosModules/apps/inputremapper/app.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
|
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
@ -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";
|
||||
# };
|
||||
# };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue