trying to get main config to run
This commit is contained in:
parent
77e8840534
commit
8f6e59d683
7 changed files with 117 additions and 27 deletions
20
modules/nixos/apps/_1password/default.nix
Normal file
20
modules/nixos/apps/_1password/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
with lib;
|
||||
with lib.wyrdgard; let
|
||||
cfg = config.wyrdgard.apps._1password;
|
||||
in
|
||||
{
|
||||
options.wyrdgard.apps._1password = with types; {
|
||||
enable = mkBoolOpt false "Enable 1Password";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs = {
|
||||
_1password.enable = true;
|
||||
_1password-gui = {
|
||||
enable = true;
|
||||
polkitPolicyOwners = [ config.wyrdgard.user.name ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
17
modules/nixos/apps/cli-apps/fish/default.nix
Normal file
17
modules/nixos/apps/cli-apps/fish/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
with lib;
|
||||
with lib.wyrdgard; let
|
||||
cfg = config.wyrdgard.apps.cli-apps.fish;
|
||||
in
|
||||
{
|
||||
options.wyrdgard.apps.cli-apps.fish = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable the fish shell";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
fish
|
||||
fishPlugins.tide
|
||||
];
|
||||
};
|
||||
}
|
21
modules/nixos/apps/steam/default.nix
Normal file
21
modules/nixos/apps/steam/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.wyrdgard;
|
||||
let
|
||||
cfg = config.wyrdgard.apps.steam;
|
||||
in
|
||||
{
|
||||
options.wyrdgard.apps.steam = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable support for Steam.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.steam.enable = true;
|
||||
programs.steam.remotePlay.openFirewall = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
steam
|
||||
];
|
||||
};
|
||||
}
|
|
@ -7,9 +7,16 @@ let cfg = config.wyrdgard.submodules.games;
|
|||
in
|
||||
{
|
||||
options.wyrdgard.submodules.games = with types; {
|
||||
enable = mkBoolOpt false "Whether or not you want to enable non steam games such as minecraft";
|
||||
enable = mkBoolOpt false "Whether or not you want to enable steam and other games";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable { };
|
||||
config = mkIf cfg.enable {
|
||||
wyrdgard = {
|
||||
apps = {
|
||||
steam = enabled;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -7,8 +7,14 @@ let
|
|||
in
|
||||
{
|
||||
options.wyrdgard.submodules.socials = with types; {
|
||||
enable = mkBoolOpt false "Whether to enable a social apps";
|
||||
enable = mkBoolOpt false "Whether to enable social apps";
|
||||
};
|
||||
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
wyrdgard = {
|
||||
apps = {
|
||||
discord = enabled;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -10,6 +10,12 @@ in
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
noisetorch
|
||||
];
|
||||
|
||||
programs.noisetorch.enable = true;
|
||||
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
|
@ -20,5 +26,7 @@ in
|
|||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue