Skip to content

Commit

Permalink
feat: i forgor what i added
Browse files Browse the repository at this point in the history
  • Loading branch information
sioodmy committed Dec 17, 2023
1 parent da10644 commit 8cbae70
Show file tree
Hide file tree
Showing 11 changed files with 101 additions and 60 deletions.
38 changes: 6 additions & 32 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@
url = "github:hyprwm/hyprpicker";
inputs.nixpkgs.follows = "nixpkgs";
};
thorium = {
url = "github:almahdi/nix-thorium/16cbc264b5e7baf09cb895e8c5a49f7d915399d8";
inputs.nixpkgs.follows = "nixpkgs";
};

# project shells
devshell = {
Expand All @@ -31,8 +27,8 @@
nix-super.url = "github:privatevoid-net/nix-super";

schizofox = {
url = "github:schizofox/schizofox/wavefox";
# url = "path:/home/sioodmy/dev/schizofox";
# url = "github:schizofox/schizofox/wavefox";
url = "path:/home/sioodmy/dev/schizofox";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-parts.follows = "flake-parts";
Expand Down
7 changes: 6 additions & 1 deletion home/cli/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,13 @@
# syncthnig for acoustic people
rsync

figlet
# Generate qr codes
qrcodegen

# script kidde stuff
hcxdumptool hashcat
hcxdumptool
hashcat
# tshark
# termshark
];
Expand Down
2 changes: 2 additions & 0 deletions home/impermanence.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ _: {
".config/spotify-tui"
".cache/BraveSoftware/"
".cache/nix"
".cache/chromium"
".config/chromium"
".cache/thunderbird/"
".thunderbird"
".cache/spotifyd"
Expand Down
51 changes: 51 additions & 0 deletions home/misc/chromium.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
lib,
pkgs,
...
}: {
programs.chromium = {
package = pkgs.ungoogled-chromium;
enable = true;
extensions = let
createChromiumExtensionFor = browserVersion: {
id,
sha256,
version,
}: {
inherit id;
crxPath = builtins.fetchurl {
url = "https://clients2.google.com/service/update2/crx?response=redirect&acceptformat=crx2,crx3&prodversion=${browserVersion}&x=id%3D${id}%26installsource%3Dondemand%26uc";
name = "${id}.crx";
inherit sha256;
};
inherit version;
};
createChromiumExtension = createChromiumExtensionFor (lib.versions.major pkgs.ungoogled-chromium.version);
in [
(createChromiumExtension {
# ublock origin
id = "cjpalhdlnbpafiamejdnhcphjbkeiagm";
sha256 = "sha256:1q1wxcp27dkn9khn52fk8k3mli6wx10wf3p260bdk692ca0ijy2i";
version = "1.54.0";
})
(createChromiumExtension {
# dark reader
id = "eimadpbcbfnmbkopoojfekhnkhdbieeh";
sha256 = "sha256:0mba3n0pqsvb0l8ln5mk3xf7n5ahyz7ig9vm51v55v7cw1dxlmma";
version = "4.9.73";
})
(createChromiumExtension {
# metamask
id = "nkbihfbeogaeaoehlefnkodbefgpgknn";
sha256 = "sha256:1yxvjkpmnl9mpjs0ycj0wib16kzpw1xbsr9jmrrkap2kn2anzvin";
version = "11.7.0";
})
(createChromiumExtension {
# catppuccin theme
id = "bkkmolkhemgaeaeggcmfbghljjjoofoh";
sha256 = "sha256:10f7szaf0al7i9i0kcfpwg7xz0ms1h9mpsm92mscvx24ydvdswki";
version = "4.1";
})
];
};
}
1 change: 1 addition & 0 deletions home/misc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
imports = [
./media.nix
./schizofox.nix
./chromium.nix
./rnnoise.nix
./swayidle.nix
];
Expand Down
12 changes: 8 additions & 4 deletions home/misc/schizofox.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{pkgs, ...}: {
programs.schizofox = {
enable = false;
enable = true;
package = pkgs.firefox-esr-115-unwrapped;
security = {
sanitizeOnShutdown = false;
sandbox = true;
sandbox = false;
userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0";
};

Expand All @@ -16,9 +16,13 @@
font = "Lexend";
wavefox = {
enable = true;
transparency = "High";
transparency = {
enable = true;
strength = "High";
};
tabs = {
oneline = "NavBarFirst";
style = 3;
oneline.enable = true;
shadowSaturation = "High";
};
menu.density = "Compact";
Expand Down
15 changes: 6 additions & 9 deletions home/packages.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
{pkgs, inputs, ...}: {
{
pkgs,
...
}: {
nixpkgs.config.allowUnfree = false;
home.packages = with pkgs; [
(symlinkJoin {
inherit (ledger-live-desktop) name;
paths = [ledger-live-desktop];
buildInputs = [makeWrapper];
postBuild = "wrapProgram $out/bin/ledger-live-desktop --add-flags --use-gl=desktop";
})
inputs.thorium.packages.${pkgs.system}.default
ledger-live-desktop
libreoffice-fresh
logseq
ledger_agent
caprine-bin
pulseaudio
brave
session-desktop
transmission-gtk
prismlauncher
Expand Down
10 changes: 3 additions & 7 deletions system/core/schizo.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,9 @@
executable = "${getBin thunderbird}/thunderbird";
profile = "${profiles}/thunderbird.profile";
};
spotify = {
executable = "${getBin spotify}/spotify";
profile = "${profiles}/spotify.profile";
};
brave = {
executable = "${getBin brave}/brave";
profile = "${profiles}/brave-browser-stable.profile";
chromium = {
executable = "${getBin ungoogled-chromium}/chromium";
profile = "${profiles}/chromium-browser-common-hardened.profile";
};
keepassxc = {
executable = "${getBin keepassxc}/keepassxc";
Expand Down
15 changes: 15 additions & 0 deletions system/wayland/chromium.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{...}: {
programs.chromium = {
enable = true;
extraOpts = {
BookmarkBarEnabled = true;
BrowserSignin = 0;
DefaultBrowserSettingEnabled = false;
DefaultSearchProviderEnabled = true;
DefaultSearchProviderSearchURL = "https://search.brave.com/search?q={searchTerms}&source=web";
PasswordManagerEnabled = false;
ShowAppsShortcutInBookmarkBar = false;
SyncDisabled = true;
};
};
}
2 changes: 1 addition & 1 deletion system/wayland/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{pkgs, ...}: {
imports = [./fonts ./services.nix ./pipewire.nix];
imports = [./fonts ./services.nix ./pipewire.nix ./chromium.nix];
environment.etc."greetd/environments".text = ''
Hyprland
'';
Expand Down

0 comments on commit 8cbae70

Please sign in to comment.