remove more redundant materials

This commit is contained in:
stupidcomputer 2024-11-29 04:12:40 -06:00
parent 3d4c88b066
commit db8c85221a
6 changed files with 11 additions and 65 deletions

View File

@ -3,7 +3,6 @@
{ {
imports = [ imports = [
../../home/x11.nix ../../home/x11.nix
../../home/chromium
]; ];
home.stateVersion = "24.05"; home.stateVersion = "24.05";

View File

@ -3,7 +3,6 @@
{ {
imports = [ imports = [
../../home/x11.nix ../../home/x11.nix
../../home/chromium
]; ];
home.stateVersion = "23.11"; home.stateVersion = "23.11";

View File

@ -1,16 +1,9 @@
{ lib, inputs, config, pkgs, home, ... }: { lib, inputs, config, pkgs, home, ... }:
let {
plib = import ../../lib { inherit pkgs; };
in {
programs.chromium = { programs.chromium = {
enable = true; enable = true;
package = lib.mkForce (plib.mkPackageWrapper package = pkgs.brave;
pkgs.brave
"export HOME=$HOME/.cache/brave"
""
"--args --disable-frame-rate-limit"
);
extensions = [ extensions = [
{ id = "ecnphlgnajanjnkcmbpancdjoidceilk"; } { id = "ecnphlgnajanjnkcmbpancdjoidceilk"; }
]; ];

View File

@ -1,15 +0,0 @@
{ lib, inputs, config, pkgs, home, ... }:
{
home.packages = with pkgs; [
ungoogled-chromium
];
programs.chromium = {
enable = true;
package = pkgs.ungoogled-chromium;
extensions = [
{ id = "ecnphlgnajanjnkcmbpancdjoidceilk"; }
];
};
}

View File

@ -1,15 +1,13 @@
{ lib, config, pkgs, ...}: { lib, config, pkgs, ...}:
let {
plib = import ../lib { inherit pkgs; }; home.packages = with pkgs; [
in { xclip
home.packages = [ xcape
pkgs.xclip mpv
pkgs.xcape sxiv
pkgs.mpv xwallpaper
pkgs.sxiv xbrightness
pkgs.xwallpaper xdotool
pkgs.xbrightness
pkgs.xdotool
]; ];
} }

View File

@ -1,28 +0,0 @@
{ pkgs ? import <nixpkgs> {} }:
let
getPkgName =
pkg:
builtins.elemAt (builtins.split "-" pkg.name) 0;
in {
mkPackageWrapper =
pkg:
environ:
prefix:
postfix:
pkgs.writeScriptBin
(getPkgName pkg)
''
#! ${pkgs.bash}/bin/bash
${environ}
exec ${prefix} ${pkg}/bin/${getPkgName pkg} ${postfix} "$@"
'';
mkQuarantinedPackage =
pkg:
pkgs.writeScriptBin
(getPkgName pkg)
''
#! ${pkgs.bash}/bin/bash
export HOME=$HOME/.local/${getPkgName pkg}
exec ${pkg}/bin/${getPkgName pkg}
'';
}