start making modules as actual modules, wip no battery left
This commit is contained in:
@ -1,10 +1,14 @@
|
||||
{ config, lib, inputs, pkgs, ... }:
|
||||
{config, lib, ... }:
|
||||
|
||||
{
|
||||
programs.steam.enable=true;
|
||||
programs.steam.protontricks.enable=true;
|
||||
options.mods.gayming.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "enable games on the host";
|
||||
};
|
||||
|
||||
# environment.systemPackages = with pkgs; [ qemu quickemu];
|
||||
# programs.virt-manager.enable = true;
|
||||
# virtualisation.libvirtd.enable = true;
|
||||
config = lib.mkIf config.mods.gayming.enable {
|
||||
programs.steam.enable = true;
|
||||
programs.steam.protontricks.enable = true;
|
||||
};
|
||||
}
|
||||
|
@ -2,10 +2,19 @@
|
||||
{ config, lib, inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
options.mods.nvidia-graphics.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "enable my nvidia graphics settings";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.mods.nvidia-graphics.enable {
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
};
|
||||
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
}
|
||||
|
@ -1,6 +1,14 @@
|
||||
{ config, lib, inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
virtualisation.virtualbox.host.enable = true;
|
||||
users.users.tom.extraGroups = [ "vboxusers" ];
|
||||
options.mods.virtualbox.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "enable virtualbox as host";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.mods.virtualbox.enable {
|
||||
virtualisation.virtualbox.host.enable = true;
|
||||
users.users.tom.extraGroups = [ "vboxusers" ];
|
||||
};
|
||||
}
|
||||
|
@ -1,14 +1,29 @@
|
||||
{ config, lib, inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
options.mods.yubikey = {
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "enable yubikey";
|
||||
};
|
||||
|
||||
id = lib.mkOption {
|
||||
type = lib.str;
|
||||
description = "yubikey id";
|
||||
};
|
||||
};
|
||||
|
||||
security.pam.yubico = {
|
||||
enable = true;
|
||||
id = "30536547";
|
||||
mode = "challenge-response";
|
||||
config = lib.mkIf config.mods.yubikey.enable {
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
|
||||
security.pam.yubico = {
|
||||
enable = true;
|
||||
id = config.mods.yubikey.id;
|
||||
mode = "challenge-response";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user