tweak: user-parts options
This commit is contained in:
parent
ddaa7c5c5a
commit
76e48c0733
1 changed files with 7 additions and 9 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
# general gaming module declaration
|
# general gaming module declaration
|
||||||
flake.nixosModules.gaming =
|
flake.nixosModules.gaming =
|
||||||
|
|
||||||
{ pkgs, user, ... }:
|
{ pkgs, user-parts, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
@ -33,9 +33,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# for gamemode functionality
|
# for gamemode functionality
|
||||||
users.users = {
|
users.users.${user-parts.user.username}.extraGroups = [ "gamemode" ];
|
||||||
serenity.extraGroups = [ "gamemode" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
# gaming performance - need to research
|
# gaming performance - need to research
|
||||||
# https://wiki.nixos/wiki/Gamemode
|
# https://wiki.nixos/wiki/Gamemode
|
||||||
|
|
@ -82,8 +80,8 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
user,
|
|
||||||
lib,
|
lib,
|
||||||
|
user-parts,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
|
@ -93,16 +91,16 @@
|
||||||
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||||
|
|
||||||
# physical input
|
# physical input
|
||||||
users.users.serenity.extraGroups = [ "input" ];
|
users.users.${user-parts.user.username}.extraGroups = [ "input" ];
|
||||||
|
|
||||||
# hand tracking
|
# hand tracking
|
||||||
home-manager.users.serenity = {
|
home-manager.users.${user-parts.user.username} = {
|
||||||
# avoids downloading large files directly
|
# avoids downloading large files directly
|
||||||
programs.git.lfs.enable = true;
|
programs.git.lfs.enable = true;
|
||||||
# copies lfs pointers for tracking models into config dir
|
# copies lfs pointers for tracking models into config dir
|
||||||
# disabled for now
|
# disabled for now
|
||||||
# home.file."/home/serenity/.local/share/monado/hand-tracking-models" = {
|
# home.file."/home/${user-parts.user.username}/.local/share/monado/hand-tracking-models" = {
|
||||||
# target = "/home/serenity/.local/share/monado/hand-tracking-models";
|
# target = "/home/${user-parts.user.username}/.local/share/monado/hand-tracking-models";
|
||||||
# source = builtIns.fetchGit = {
|
# source = builtIns.fetchGit = {
|
||||||
# url = "https://gitlab.freedesktop.org/monado/utilities/hand-tracking-models.git";
|
# url = "https://gitlab.freedesktop.org/monado/utilities/hand-tracking-models.git";
|
||||||
# sha256 = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
|
# sha256 = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue