diff options
| author | 2026-09-21 15:57:04 +0200 | |
|---|---|---|
| committer | 2026-09-21 15:57:04 +0200 | |
| commit | c3f882fae8f4c1ae84deafc310357846e8b66ad1 (patch) | |
| tree | 7d8e9fac29bec584fb39283c41d0d73632fb01e8 /lib/mkHome.nix | |
| parent | a6e0ae7b4eb877d0c22ae84ee55d6a85618ca4c1 (diff) | |
| download | desktop-flake-c3f882fae8f4c1ae84deafc310357846e8b66ad1.tar.gz desktop-flake-c3f882fae8f4c1ae84deafc310357846e8b66ad1.tar.bz2 desktop-flake-c3f882fae8f4c1ae84deafc310357846e8b66ad1.zip | |
Add Slack, Discord, Spotify, teams-for-linux, and Claude Code
Provisions these via home-manager, scoping unfree-package access to
exactly these packages and skipping any that aren't available for the
current system/architecture (e.g. aarch64-linux lacks Discord/Spotify
builds) instead of failing evaluation.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BBSd4VBfoKHjE1HR3P8kmn
Diffstat (limited to 'lib/mkHome.nix')
| -rw-r--r-- | lib/mkHome.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/mkHome.nix b/lib/mkHome.nix index db85b86..ab27981 100644 --- a/lib/mkHome.nix +++ b/lib/mkHome.nix | |||
| @@ -1,6 +1,13 @@ | |||
| 1 | { inputs }: | 1 | { inputs }: |
| 2 | { username, system, extraModules ? [ ] }: | 2 | { username, system, extraModules ? [ ] }: |
| 3 | let | ||
| 4 | unfreeAllowlist = import ./unfree-allowlist.nix; | ||
| 5 | in | ||
| 3 | inputs.home-manager.lib.homeManagerConfiguration { | 6 | inputs.home-manager.lib.homeManagerConfiguration { |
| 4 | pkgs = inputs.nixpkgs.legacyPackages.${system}; | 7 | pkgs = import inputs.nixpkgs { |
| 8 | inherit system; | ||
| 9 | config.allowUnfreePredicate = pkg: | ||
| 10 | builtins.elem (inputs.nixpkgs.lib.getName pkg) unfreeAllowlist; | ||
| 11 | }; | ||
| 5 | modules = [ ../users/${username}.nix ] ++ extraModules; | 12 | modules = [ ../users/${username}.nix ] ++ extraModules; |
| 6 | } | 13 | } |
