From 0c1e633aaa8c78b04b6ea9a916b2836c63d1534f Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sun, 8 Mar 2026 11:25:07 -0500 Subject: [PATCH] converted more modules --- .../{ => home-manager}/profiles/desktop.nix | 0 modules/home-manager/vscode.nix | 21 +++++++++++++++++++ modules/hosts/john-pc-ubuntu.nix | 11 ++++++++++ modules/nixos/games.nix | 12 +++++++++++ 4 files changed, 44 insertions(+) rename modules/{ => home-manager}/profiles/desktop.nix (100%) create mode 100644 modules/home-manager/vscode.nix create mode 100644 modules/nixos/games.nix diff --git a/modules/profiles/desktop.nix b/modules/home-manager/profiles/desktop.nix similarity index 100% rename from modules/profiles/desktop.nix rename to modules/home-manager/profiles/desktop.nix diff --git a/modules/home-manager/vscode.nix b/modules/home-manager/vscode.nix new file mode 100644 index 0000000..ac4642f --- /dev/null +++ b/modules/home-manager/vscode.nix @@ -0,0 +1,21 @@ +{ + flake.homeModules.vscode = { pkgs, ... }: + { + programs.vscode = { + enable = true; + package = pkgs.vscode; + profiles.default.extensions = with pkgs.vscode-extensions; [ + mhutchie.git-graph + ms-vscode-remote.vscode-remote-extensionpack + ms-python.python + ms-python.vscode-pylance + ms-toolsai.jupyter + charliermarsh.ruff + github.vscode-pull-request-github + github.vscode-github-actions + github.copilot + catppuccin.catppuccin-vsc + ]; + }; + }; +} \ No newline at end of file diff --git a/modules/hosts/john-pc-ubuntu.nix b/modules/hosts/john-pc-ubuntu.nix index 9429044..7455b2c 100644 --- a/modules/hosts/john-pc-ubuntu.nix +++ b/modules/hosts/john-pc-ubuntu.nix @@ -19,6 +19,17 @@ pkgs = import inputs.nixpkgs { system = "x86_64-linux"; }; modules = [ inputs.self.homeModules."john-pc-ubuntu" + + # Include another inline module to set the options created through the jsl-home modules + { + homeManagerFlakeDir = "~/.config/home-manager"; + docker.enable = true; + ssh.matchSets = { + certs = true; + appdaemon = true; + homelab = true; + }; + } ]; }; } diff --git a/modules/nixos/games.nix b/modules/nixos/games.nix new file mode 100644 index 0000000..8efe31d --- /dev/null +++ b/modules/nixos/games.nix @@ -0,0 +1,12 @@ +{ ... }: +{ + flake.modules.nixos.games = { + programs.steam = { + enable = true; + gamescopeSession.enable = true; + remotePlay.openFirewall = true; + dedicatedServer.openFirewall = true; + localNetworkGameTransfers.openFirewall = true; + }; + }; +}