From 04f6f2759e316537e4b8424824b197768e472ff5 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Wed, 17 Dec 2025 12:47:26 -0500 Subject: make unfree explicit and add more fonts --- flake.nix | 1 - home/desktops/default.nix | 16 +++++++++++++--- hosts/shinji/default.nix | 2 -- options.nix | 9 +++++++++ system/default.nix | 5 +++-- system/desktop.nix | 12 ++++++++++++ system/gaming/steam.nix | 13 ++++++------- 7 files changed, 43 insertions(+), 15 deletions(-) diff --git a/flake.nix b/flake.nix index 57c266f..0e71c71 100644 --- a/flake.nix +++ b/flake.nix @@ -82,7 +82,6 @@ ./options.nix (self.lib.homeConfig hostModule.config) { - nixpkgs.config.allowUnfree = true; programs.home-manager.enable = nixpkgs.lib.mkForce false; } ]; diff --git a/home/desktops/default.nix b/home/desktops/default.nix index 4d02984..ab2c752 100644 --- a/home/desktops/default.nix +++ b/home/desktops/default.nix @@ -28,18 +28,28 @@ in { # xdg libnotify # fonts - corefonts + charis-sil dejavu_fonts + doulos-sil fira-code fira-code-symbols jetbrains-mono - material-icons + lmodern + lmmath + nasin-nanpa nerd-fonts.fira-code + nerd-fonts.jetbrains-mono noto-fonts noto-fonts-cjk-sans noto-fonts-color-emoji + open-sans + roboto + roboto-flex + roboto-mono + roboto-serif + roboto-slab + ttf_bitstream_vera twemoji-color-font - vista-fonts ] ++ (optionals config.desktops.wayland.enable [ # wayland diff --git a/hosts/shinji/default.nix b/hosts/shinji/default.nix index c6158c4..34e84ec 100644 --- a/hosts/shinji/default.nix +++ b/hosts/shinji/default.nix @@ -58,10 +58,8 @@ scrcpy # misc foliate - #jami solaar qbittorrent - unityhub ]; # modules diff --git a/options.nix b/options.nix index 7995623..141bf08 100644 --- a/options.nix +++ b/options.nix @@ -253,6 +253,15 @@ in { default = "26.05"; }; + # + # Packages + # + unfreePackages = mkOption { + type = types.listOf types.str; + description = "List of unfree package names used"; + default = []; + }; + # # System modules # diff --git a/system/default.nix b/system/default.nix index eb220ed..f6a6fa3 100644 --- a/system/default.nix +++ b/system/default.nix @@ -25,8 +25,9 @@ nix.settings.experimental-features = ["nix-command" "flakes"]; nix.settings.use-xdg-base-directories = true; - # allow unfree packages - nixpkgs.config.allowUnfree = true; + # allow defined unfree packages + nixpkgs.config.allowUnfreePredicate = pkg: + builtins.elem (lib.getName pkg) config.unfreePackages; # set state version system.stateVersion = config.stateVersion; diff --git a/system/desktop.nix b/system/desktop.nix index 307d0b9..d22a475 100644 --- a/system/desktop.nix +++ b/system/desktop.nix @@ -1,5 +1,6 @@ { lib, + pkgs, config, inputs, system, @@ -55,5 +56,16 @@ in { enable = true; package = inputs.preload-ng.packages.${system}.preload-ng-src; }; + + # system fonts + fonts.packages = with pkgs; [ + corefonts + vista-fonts + ]; + + unfreePackages = [ + "corefonts" + "vista-fonts" + ]; }; } diff --git a/system/gaming/steam.nix b/system/gaming/steam.nix index ada0aaf..2364291 100644 --- a/system/gaming/steam.nix +++ b/system/gaming/steam.nix @@ -7,12 +7,12 @@ cfg = config.gaming.steam; in { config = mkIf cfg.enable { - nixpkgs.config.allowUnfreePredicate = pkg: - builtins.elem (lib.getName pkg) [ - "steam" - "steam-original" - "steam-runtime" - ]; + unfreePackages = [ + "steam" + "steam-original" + "steam-runtime" + "steam-unwrapped" + ]; programs.gamescope = { enable = true; @@ -28,7 +28,6 @@ in { }; # controllers - hardware.xone.enable = true; hardware.steam-hardware.enable = true; # cod -- cgit v1.2.3-freya