From e57e8cdfe59e1407ad73c192bd9f7f2b0b5005b5 Mon Sep 17 00:00:00 2001 From: Leander Scherer Date: Thu, 8 Jan 2026 16:05:52 +0100 Subject: refactor(desktop): conditionally import modules based on useHomeManager --- hosts/lilith/configuration.nix | 43 ++++++++++++++---------------------------- 1 file changed, 14 insertions(+), 29 deletions(-) (limited to 'hosts/lilith') diff --git a/hosts/lilith/configuration.nix b/hosts/lilith/configuration.nix index f3962d8..2a35c74 100644 --- a/hosts/lilith/configuration.nix +++ b/hosts/lilith/configuration.nix @@ -2,27 +2,15 @@ pkgs, host, username, - inputs, ... }: { - users.users.${username}.home = "/Users/${username}"; - networking.hostName = host; - home-manager.users.${username} = { - home.username = username; - home.homeDirectory = "/Users/${username}"; - programs.home-manager.enable = true; - - imports = [ - ../../modules/users - inputs.nixcord.homeModules.nixcord - inputs.spicetify-nix.homeManagerModules.spicetify - ]; - - home.packages = with pkgs; [ + nx.user.${username} = { + stateVersion = "25.11"; + packages = with pkgs; [ htop ffmpeg wget @@ -37,27 +25,24 @@ nerd-fonts.symbols-only ]; - home.stateVersion = "25.11"; - home.sessionVariables = { + sessionVariables = { PATH = "/opt/homebrew/opt/openjdk@21/bin:$PATH"; }; nx = { - editors = { - neovim = { - enable = true; - langs = { - python = true; - go = true; - java = true; - latex = true; - }; + terminal.defaultShell = "zsh"; + + editors.neovim = { + enable = true; + langs = { + python = true; + go = true; + java = true; + latex = true; }; }; git.enable = true; - cli = { - opencode.enable = true; - }; + cli.opencode.enable = true; media = { spicetify.enable = true; nixcord.enable = true; -- cgit v1.3.1