start making modules as actual modules, wip no battery left
This commit is contained in:
@ -1,16 +1,16 @@
|
|||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
# #
|
# #
|
||||||
# ::: :::::::: #
|
# ::: :::::::: #
|
||||||
# configuration.nix :+: :+: :+: #
|
# global.nix :+: :+: :+: #
|
||||||
# +:+ +:+ +:+ #
|
# +:+ +:+ +:+ #
|
||||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2025/02/09 01:43:46 by tomoron #+# #+# #
|
# Created: 2025/02/09 01:43:46 by tomoron #+# #+# #
|
||||||
# Updated: 2025/02/09 01:50:15 by tomoron ### ########.fr #
|
# Updated: 2025/02/09 03:04:10 by tomoron ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
{ config, lib, inputs, pkgs, flakeName, ... }:
|
{ lib, pkgs, flakeName, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
../modules/nvidia.nix
|
../modules/nvidia.nix
|
||||||
../modules/vboxHost.nix
|
../modules/vboxHost.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.kernelParams = [ "kvm.enable_virt_at_load=0" ];
|
boot.kernelParams = [ "kvm.enable_virt_at_load=0" ];
|
||||||
# systemd.tmpfiles.rules = [
|
# systemd.tmpfiles.rules = [
|
||||||
# "f /dev/shm/looking-glass 0660 tom libvirtd -"
|
# "f /dev/shm/looking-glass 0660 tom libvirtd -"
|
||||||
|
@ -1,10 +1,14 @@
|
|||||||
{ config, lib, inputs, pkgs, ... }:
|
{config, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.steam.enable=true;
|
options.mods.gayming.enable = lib.mkOption {
|
||||||
programs.steam.protontricks.enable=true;
|
type = lib.types.bool;
|
||||||
|
default = true;
|
||||||
|
description = "enable games on the host";
|
||||||
|
};
|
||||||
|
|
||||||
# environment.systemPackages = with pkgs; [ qemu quickemu];
|
config = lib.mkIf config.mods.gayming.enable {
|
||||||
# programs.virt-manager.enable = true;
|
programs.steam.enable = true;
|
||||||
# virtualisation.libvirtd.enable = true;
|
programs.steam.protontricks.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -2,10 +2,19 @@
|
|||||||
{ config, lib, inputs, pkgs, ... }:
|
{ config, lib, inputs, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
hardware.graphics = {
|
options.mods.nvidia-graphics.enable = lib.mkOption {
|
||||||
enable = true;
|
type = lib.types.bool;
|
||||||
enable32Bit = true;
|
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, ... }:
|
{ config, lib, inputs, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
virtualisation.virtualbox.host.enable = true;
|
options.mods.virtualbox.enable = lib.mkOption {
|
||||||
users.users.tom.extraGroups = [ "vboxusers" ];
|
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, ... }:
|
{ config, lib, inputs, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.gnupg.agent = {
|
options.mods.yubikey = {
|
||||||
enable = true;
|
enable = lib.mkOption {
|
||||||
enableSSHSupport = true;
|
type = lib.types.bool;
|
||||||
|
default = true;
|
||||||
|
description = "enable yubikey";
|
||||||
|
};
|
||||||
|
|
||||||
|
id = lib.mkOption {
|
||||||
|
type = lib.str;
|
||||||
|
description = "yubikey id";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
security.pam.yubico = {
|
config = lib.mkIf config.mods.yubikey.enable {
|
||||||
enable = true;
|
programs.gnupg.agent = {
|
||||||
id = "30536547";
|
enable = true;
|
||||||
mode = "challenge-response";
|
enableSSHSupport = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
security.pam.yubico = {
|
||||||
|
enable = true;
|
||||||
|
id = config.mods.yubikey.id;
|
||||||
|
mode = "challenge-response";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user