mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-08 22:50:19 +02:00
workstation client should have the default set of needed software
This commit is contained in:
parent
f1604be829
commit
fdee7b7cf3
6 changed files with 75 additions and 20 deletions
3
hosts/workstation/features/hardware/default.nix
Normal file
3
hosts/workstation/features/hardware/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
imports = [ ./nvidia.nix ];
|
||||
}
|
13
hosts/workstation/features/hardware/nvidia.nix
Normal file
13
hosts/workstation/features/hardware/nvidia.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
boot.blacklistedKernelModules = [ "nouveau" ];
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [ nvidia-vaapi-driver ];
|
||||
};
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
hardware.nvidia = {
|
||||
open = false;
|
||||
};
|
||||
}
|
6
hosts/workstation/features/software/default.nix
Normal file
6
hosts/workstation/features/software/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./workstation.nix
|
||||
./discord.nix
|
||||
];
|
||||
}
|
22
hosts/workstation/features/software/discord.nix
Normal file
22
hosts/workstation/features/software/discord.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
(discord.override {
|
||||
withVencord = true;
|
||||
})
|
||||
vesktop
|
||||
];
|
||||
# screen record support
|
||||
xdg = {
|
||||
autostart.enable = true;
|
||||
icons.enable = true;
|
||||
portal = {
|
||||
enable = true;
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-wlr
|
||||
xdg-desktop-portal-gtk
|
||||
];
|
||||
wlr.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,8 +1,5 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{
|
||||
# for java development on vscode
|
||||
programs.nix-ld.enable = true;
|
||||
|
||||
nixpkgs.config.allowUnfreePredicate =
|
||||
pkg:
|
||||
builtins.elem (lib.getName pkg) [
|
||||
|
@ -23,7 +20,6 @@
|
|||
obs-studio
|
||||
|
||||
gvfs
|
||||
|
||||
nil
|
||||
bitwarden
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue