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 = [
../../home/x11.nix
../../home/chromium
];
home.stateVersion = "24.05";

View File

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

View File

@ -1,16 +1,9 @@
{ lib, inputs, config, pkgs, home, ... }:
let
plib = import ../../lib { inherit pkgs; };
in {
{
programs.chromium = {
enable = true;
package = lib.mkForce (plib.mkPackageWrapper
pkgs.brave
"export HOME=$HOME/.cache/brave"
""
"--args --disable-frame-rate-limit"
);
package = pkgs.brave;
extensions = [
{ 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, ...}:
let
plib = import ../lib { inherit pkgs; };
in {
home.packages = [
pkgs.xclip
pkgs.xcape
pkgs.mpv
pkgs.sxiv
pkgs.xwallpaper
pkgs.xbrightness
pkgs.xdotool
{
home.packages = with pkgs; [
xclip
xcape
mpv
sxiv
xwallpaper
xbrightness
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}
'';
}