#2 adding basic configs still some missing
This commit is contained in:
parent
1286b79757
commit
69cb32282f
9 changed files with 114 additions and 10 deletions
16
modules/nixos/apps/discord/default.nix
Normal file
16
modules/nixos/apps/discord/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ options, config, lib, pkgs, ... }:
|
||||||
|
with lib;
|
||||||
|
with lib.wyrdgard; let
|
||||||
|
cfg = config.wyrdgard.apps.discord;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.wyrdgard.apps.discord = with types; {
|
||||||
|
enable = mkBoolOpt false "Whether or not to enable basic configuration";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
environment.systemPackages = [
|
||||||
|
discord
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
BIN
modules/nixos/submodules/basics/.default.nix.swp
Normal file
BIN
modules/nixos/submodules/basics/.default.nix.swp
Normal file
Binary file not shown.
|
@ -1,14 +1,14 @@
|
||||||
{
|
{ options
|
||||||
options,
|
, config
|
||||||
config,
|
, lib
|
||||||
lib,
|
, pkgs
|
||||||
pkgs,
|
, ...
|
||||||
...
|
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.wyrdgard; let
|
with lib.wyrdgard; let
|
||||||
cfg = config.wyrdgard.suites.common;
|
cfg = config.wyrdgard.submodules.basics;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.wyrdgard.submodules.basics = with types; {
|
options.wyrdgard.submodules.basics = with types; {
|
||||||
enable = mkBoolOpt false "Whether or not to enable basic configuration.";
|
enable = mkBoolOpt false "Whether or not to enable basic configuration.";
|
||||||
};
|
};
|
||||||
|
@ -26,7 +26,7 @@ in {
|
||||||
nix-ld = enabled;
|
nix-ld = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
system.hardware = {
|
hardware = {
|
||||||
audio = enabled;
|
audio = enabled;
|
||||||
bluetooth = enabled;
|
bluetooth = enabled;
|
||||||
networking = enabled;
|
networking = enabled;
|
||||||
|
|
15
modules/nixos/submodules/games/default.nix
Normal file
15
modules/nixos/submodules/games/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{ options, config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
with lib.wyrdgard;
|
||||||
|
|
||||||
|
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";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable { };
|
||||||
|
|
||||||
|
}
|
14
modules/nixos/submodules/graphical-interface/default.nix
Normal file
14
modules/nixos/submodules/graphical-interface/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{ options, config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
|
cfg = config.wyrdgard.submodules.graphical-interface;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.wyrdgard.submodules.graphical-interface = with types; {
|
||||||
|
enable = mkBoolOpt false "Whether to enable a graphical interface";
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
}
|
14
modules/nixos/submodules/socials/default.nix
Normal file
14
modules/nixos/submodules/socials/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{ options, config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
|
cfg = config.wyrdgard.submodules.socials;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.wyrdgard.submodules.socials = with types; {
|
||||||
|
enable = mkBoolOpt false "Whether to enable a social apps";
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
}
|
25
modules/nixos/system/hardware/audio/default.nix
Normal file
25
modules/nixos/system/hardware/audio/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{ options, config, lib, pkgs, ... }:
|
||||||
|
with lib;
|
||||||
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
|
cfg = config.wyrdgard.system.hardware.audio;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.wyrdgard.system.hardware.audio = with types; {
|
||||||
|
enable = mkBoolOpt false "Whether or not to enable audio";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
|
sound.enable = true;
|
||||||
|
hardware.pulseaudio.enable = false;
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32bit = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
17
modules/nixos/system/hardware/networking/default.nix
Normal file
17
modules/nixos/system/hardware/networking/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{ options, config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
with lib.wyrdgard;
|
||||||
|
let
|
||||||
|
cfg = config.wyrdgard.system.hardware.networking;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.wyrdgard.system.hardware.networking = with types; {
|
||||||
|
enable = mkBoolOpt false "Whether or not to enable networking";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
|
networking.networkmanager.enable = true;
|
||||||
|
};
|
||||||
|
}
|
|
@ -37,7 +37,10 @@
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
displayManager.sddm.enable = true;
|
displayManager.sddm = {
|
||||||
|
enable = true;
|
||||||
|
wayland.enable = true;
|
||||||
|
};
|
||||||
desktopManager.plasma5.enable = true;
|
desktopManager.plasma5.enable = true;
|
||||||
layout = "us";
|
layout = "us";
|
||||||
xkbVariant = "";
|
xkbVariant = "";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue