Move unfree predicate into flake.nix

Add NoMachine to Vanguard for wfh setup
This commit is contained in:
Evie Litherland-Smith 2023-09-26 07:36:57 +01:00
parent bb8cdb1fe3
commit f99b8955c7
4 changed files with 12 additions and 12 deletions

View file

@ -112,7 +112,7 @@
inherit wallpapers catppuccin-themes;
inherit (inputs) doom-emacs gitui anyrun;
};
commonModule = { pkgs, ... }: {
commonModule = { lib, pkgs, ... }: {
nix = {
settings = {
experimental-features = [ "nix-command" "flakes" ];
@ -130,6 +130,14 @@
max-free = ${toString (1024 * 1024 * 1024)}
'';
};
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-run"
"discord"
"nomachine-client"
];
networking = {
inherit hostName;
networkmanager.enable = true;

View file

@ -18,8 +18,6 @@
environment.etc."ppp/options".text = ''
ipcp-accept-remote
'';
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [ "nomachine-client" ];
services.syncthing.settings.folders = {
"Archive".enable = false;
"Books".enable = false;

View file

@ -1,6 +1,7 @@
{ ... }:
{ pkgs, ... }:
{
home.packages = with pkgs; [ nomachine-client ];
xdg.configFile."hypr/extra.conf".text = ''
monitor=DP-1,highrr,auto,1.00
'';

View file

@ -1,14 +1,7 @@
{ lib, pkgs, ... }:
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [ prismlauncher discord ];
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-run"
"discord"
];
hardware = {
opengl.driSupport32Bit = true;
steam-hardware.enable = true;