From 3cbedace2a7d25f5484c3a2b910bae1c56cb075c Mon Sep 17 00:00:00 2001 From: serenity-F Date: Mon, 28 Sep 2026 21:05:25 +1000 Subject: [PATCH] tweak: installer options --- modules/features/gaming.nix | 38 ++++++++++++--------- modules/hosts/live-usb/installer-config.nix | 20 ++++++++++- 2 files changed, 41 insertions(+), 17 deletions(-) diff --git a/modules/features/gaming.nix b/modules/features/gaming.nix index e0ca6f2..d72dd19 100644 --- a/modules/features/gaming.nix +++ b/modules/features/gaming.nix @@ -79,7 +79,13 @@ # virtual reality module declaration # README - https://wiki.nixos.org/wiki/VR flake.nixosModules.virtual-reality = - { pkgs, user, ... }: + + { + pkgs, + user, + lib, + ... + }: { @@ -87,23 +93,23 @@ imports = [ inputs.home-manager.nixosModules.home-manager ]; # physical input - users.users = { - serenity.extraGroups = [ "input" ]; - }; + users.users.serenity.extraGroups = [ "input" ]; # hand tracking - home-manager.users = { - serenity = { - # avoids downloading large files directly - programs.git.lfs.enable = true; - # copies lfs pointers for tracking models into config dir - # disabled for now - #home.file = ".local/share/monado/hand-tracking-models".source = pkgs.fetchgit { - #url = "https://gitlab.freedesktop.org/monado/utilities/hand-tracking-models"; - #sha256 = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; - #fetchLFS = true; - #}; - }; + home-manager.users.serenity = { + # avoids downloading large files directly + programs.git.lfs.enable = true; + # copies lfs pointers for tracking models into config dir + # disabled for now + # home.file."/home/serenity/.local/share/monado/hand-tracking-models" = { + # target = "/home/serenity/.local/share/monado/hand-tracking-models"; + # source = builtIns.fetchGit = { + # url = "https://gitlab.freedesktop.org/monado/utilities/hand-tracking-models.git"; + # sha256 = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; + # fetchLFS = true; + # }; + # recursive = true; + # }; }; # extra packages for vr diff --git a/modules/hosts/live-usb/installer-config.nix b/modules/hosts/live-usb/installer-config.nix index 6940c55..7b433c5 100644 --- a/modules/hosts/live-usb/installer-config.nix +++ b/modules/hosts/live-usb/installer-config.nix @@ -2,17 +2,35 @@ { + # install helper module flake.nixosModules.installer = { lib, pkgs, ... }: { + # for home manager functionality + imports = [ inputs.home-manager.nixosModules.home-manager ]; + + # custom calamares environment.systemPackages = with pkgs; [ - #calamares calamares-nixos calamares-nixos-extensions ]; + + home-manager.users.serenity = { + + home.file."flake-repo" = { + source = fetchGit { + url = "https://codeberg.org/serenity-F/SerenityOS.git"; + # sha256 = sha; + }; + target = /home/serenity/flake-repo; + recursive = true; + }; + + }; + }; }