treewide: Drop remaining usage of inherit (pkgs)

This commit is contained in:
Donovan Glover 2024-09-01 18:07:43 -04:00
parent 2a3a3db055
commit f113c763ea
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
5 changed files with 39 additions and 42 deletions

View File

@ -6,7 +6,7 @@
}: }:
let let
inherit (lib) singleton; inherit (lib) singleton mkMerge;
inherit (builtins) attrValues; inherit (builtins) attrValues;
in in
{ {
@ -24,10 +24,16 @@ in
programs.btop.enable = true; programs.btop.enable = true;
}; };
environment.systemPackages = attrValues { environment.systemPackages = mkMerge [
inherit (nix-config.packages.${pkgs.system}) webp-thumbnailer; (with pkgs; [
inherit (pkgs) ruby php; ruby
}; php
])
(with nix-config.packages.${pkgs.system}; [
webp-thumbnailer
])
];
nixpkgs.overlays = attrValues nix-config.overlays ++ [ nixpkgs.overlays = attrValues nix-config.overlays ++ [
(final: prev: { (final: prev: {

View File

@ -200,17 +200,13 @@ in
LIBGL_ALWAYS_SOFTWARE = "true"; LIBGL_ALWAYS_SOFTWARE = "true";
}; };
systemPackages = attrValues { systemPackages = with pkgs; [
inherit (self.packages.${pkgs.system}) webp-thumbnailer; chatty
megapixels
inherit (pkgs) livi
chatty gnome-contacts
megapixels eog
livi ];
gnome-contacts
eog
;
};
}; };
nixpkgs.config.permittedInsecurePackages = [ nixpkgs.config.permittedInsecurePackages = [

View File

@ -26,13 +26,6 @@ let
fontSize fontSize
; ;
inherit (pkgs)
phinger-cursors
noto-fonts-cjk-sans
maple-mono
noto-fonts-emoji
;
stylix-background = nix-config.packages.${pkgs.system}.stylix-background.override { stylix-background = nix-config.packages.${pkgs.system}.stylix-background.override {
color = config.lib.stylix.colors.base00; color = config.lib.stylix.colors.base00;
}; };
@ -179,14 +172,14 @@ in
packages = packages =
[ [
noto-fonts-cjk-sans
noto-fonts-emoji
maple-mono
aleo-fonts aleo-fonts
] ]
++ (with pkgs; [ ++ (with pkgs; [
noto-fonts noto-fonts
noto-fonts-cjk-serif noto-fonts-cjk-serif
noto-fonts-cjk-sans
noto-fonts-emoji
maple-mono
font-awesome font-awesome
(nerdfonts.override { fonts = [ "Noto" ]; }) (nerdfonts.override { fonts = [ "Noto" ]; })
kanji-stroke-order-font kanji-stroke-order-font
@ -251,7 +244,7 @@ in
}; };
cursor = { cursor = {
package = phinger-cursors; package = pkgs.phinger-cursors;
name = "phinger-cursors"; name = "phinger-cursors";
size = 24; size = 24;
}; };
@ -263,17 +256,17 @@ in
}; };
sansSerif = { sansSerif = {
package = noto-fonts-cjk-sans; package = pkgs.noto-fonts-cjk-sans;
name = "Noto Sans CJK JP"; name = "Noto Sans CJK JP";
}; };
monospace = { monospace = {
package = maple-mono; package = pkgs.maple-mono;
name = "Maple Mono"; name = "Maple Mono";
}; };
emoji = { emoji = {
package = noto-fonts-emoji; package = pkgs.noto-fonts-emoji;
name = "Noto Color Emoji"; name = "Noto Color Emoji";
}; };

View File

@ -6,8 +6,6 @@
}: }:
let let
inherit (pkgs) piper interception-tools;
inherit (pkgs.interception-tools-plugins) dual-function-keys;
inherit (builtins) toJSON; inherit (builtins) toJSON;
inherit (lib) inherit (lib)
@ -50,14 +48,17 @@ in
interception-tools = { interception-tools = {
enable = mkIf keyboardBinds true; enable = mkIf keyboardBinds true;
plugins = [ dual-function-keys ];
plugins = with pkgs.interception-tools-plugins; [
dual-function-keys
];
udevmonConfig = toJSON (singleton { udevmonConfig = toJSON (singleton {
JOB = # bash JOB = # bash
'' ''
${interception-tools}/bin/intercept -g $DEVNODE | ${pkgs.interception-tools}/bin/intercept -g $DEVNODE |
${getExe dual-function-keys} -c /etc/${dualFunctionKeysConfig} | ${getExe pkgs.interception-tools-plugins.dual-function-keys} -c /etc/${dualFunctionKeysConfig} |
${interception-tools}/bin/uinput -d $DEVNODE ${pkgs.interception-tools}/bin/uinput -d $DEVNODE
''; '';
DEVICE = { DEVICE = {
@ -73,7 +74,9 @@ in
}; };
environment = { environment = {
systemPackages = mkIf mouseSettings [ piper ]; systemPackages = mkIf mouseSettings (with pkgs; [
piper
]);
etc.${dualFunctionKeysConfig}.text = toJSON { etc.${dualFunctionKeysConfig}.text = toJSON {
TIMING = [ TIMING = [

View File

@ -1,13 +1,12 @@
{ pkgs, ... }: { pkgs, ... }:
let
inherit (pkgs) fish;
in
{ {
users.defaultUserShell = fish; users.defaultUserShell = pkgs.fish;
environment = { environment = {
shells = [ fish ]; shells = with pkgs; [
fish
];
systemPackages = with pkgs; [ systemPackages = with pkgs; [
jq jq