[feat] Add stuff

This commit is contained in:
uttarayan21
2024-03-01 17:37:38 +05:30
parent c88a0824b1
commit 46f83df915
4 changed files with 88 additions and 42 deletions

View File

@@ -1,25 +1,57 @@
{ device, pkgs, nur, ... }: { { device, pkgs, ... }: {
programs.firefox = { programs.firefox = {
enable = false; enable = true;
# enable = device.isLinux; # enable = device.isLinux;
profiles.default = { profiles.default = {
userChrome = let userChrome =
let
csshacks = pkgs.fetchFromGitHub { csshacks = pkgs.fetchFromGitHub {
owner = "MrOtherGuy"; owner = "MrOtherGuy";
repo = "firefox-csshacks"; repo = "firefox-csshacks";
rev = "master"; rev = "master";
sha256 = "sha256-r5CKOOcRWZQzYA9M6j7m2CAulOQItCuWsTSNGOYN87w="; sha256 = "sha256-r5CKOOcRWZQzYA9M6j7m2CAulOQItCuWsTSNGOYN87w=";
}; };
in '' in
@import url(${csshacks}/chrome/tabs_on_bottom.css); ''
@import url(${csshacks}/chrome/toolbars_below_content.css); @import url(${csshacks}/chrome/toolbars_below_content.css);
@import url(${csshacks}/chrome/scrollable_menupopups.css);
@import url(${csshacks}/chrome/linux_gtk_window_control_patch.css);
''; '';
# extensions = with nur.repos.rycee.firefox-addons; [ extensions = with pkgs.nur.repos.rycee.firefox-addons; [
# privacy-badger privacy-badger
# ublock-origin bitwarden
# bitwarden tridactyl
# ]; ];
}; };
nativeMessagingHosts = [ pkgs.tridactyl-native ]; nativeMessagingHosts = [ pkgs.tridactyl-native ];
policies = {
ExtensionSettings = {
"uBlock0@raymondhill.net" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
installation_mode = "force_installed";
};
};
DisableFirefoxStudies = true;
DisablePocket = true;
DisableTelemetry = true;
FeatureRecommendations = false;
SkipOnboarding = true;
Preferences = {
"toolkit.legacyUserProfileCustomizations.stylesheets" = { Value = true; Status = "default"; };
# "browser.compactmode.show" = { Value = true; Status = "default"; };
"browser.urlbar.suggest.calculator" = { Value = true; Status = "default"; };
"extensions.quarantinedDomains.enabled" = { Value = false; Status = "default"; };
};
FirefoxHome = {
"Search" = true;
"TopSites" = false;
"SponsoredTopSites" = false;
"Highlights" = false;
"Pocket" = false;
"SponsoredPocket" = false;
"Snippets" = false;
"Locked" = false;
};
};
}; };
} }

View File

@@ -14,6 +14,8 @@ in {
home.packages = with pkgs; home.packages = with pkgs;
[ [
ngrok ngrok
kdeconnect
slack
gh gh
yarn yarn
just just

View File

@@ -78,8 +78,16 @@
}; };
outputs = { nixpkgs, home-manager, nix-darwin, flake-utils, anyrun, nur outputs =
, neovim-nightly-overlay, ... }@inputs: { nixpkgs
, home-manager
, nix-darwin
, flake-utils
, anyrun
, nur
, neovim-nightly-overlay
, ...
}@inputs:
let let
config_devices = [ config_devices = [
{ {
@@ -150,19 +158,24 @@
anyrun-overlay anyrun-overlay
inputs.nixneovim.overlays.default inputs.nixneovim.overlays.default
inputs.nixneovimplugins.overlays.default inputs.nixneovimplugins.overlays.default
nur.overlay
]; ];
in { in
nixosConfigurations = let devices = nixos_devices; {
nixosConfigurations =
let devices = nixos_devices;
in import ./nixos/device.nix { in import ./nixos/device.nix {
inherit devices inputs nixpkgs home-manager overlays nur; inherit devices inputs nixpkgs home-manager overlays nur;
}; };
darwinConfigurations = let devices = darwin_devices; darwinConfigurations =
let devices = darwin_devices;
in import ./darwin/device.nix { in import ./darwin/device.nix {
inherit devices inputs nixpkgs home-manager overlays nix-darwin; inherit devices inputs nixpkgs home-manager overlays nix-darwin;
}; };
homeConfigurations = let devices = linux_devices; homeConfigurations =
let devices = linux_devices;
in import ./linux/device.nix { in import ./linux/device.nix {
inherit devices inputs nixpkgs home-manager overlays; inherit devices inputs nixpkgs home-manager overlays;
}; };

View File

@@ -104,14 +104,13 @@
"QT_QPA_PLATFORM,wayland" "QT_QPA_PLATFORM,wayland"
]; ];
exec-once = [ exec-once = [
"swayosd" "${pkgs.swayosd}/bin/swayosd"
"swww init; swww img ~/.local/share/dotfiles/images/wallpaper.jpg" "${pkgs.swww}/bin/swww init; swww img ~/.local/share/dotfiles/images/wallpaper.jpg"
"ironbar" "${pkgs.ironbar}/bin/ironbar"
"nextcloud --background" "${pkgs.nextcloud-client}/bin/nextcloud --background"
"/usr/lib/polkit-kde-authentication-agent-1" "/usr/lib/polkit-kde-authentication-agent-1"
"/usr/local/bin/discord --enable-features=UseOzonePlatform --ozone-platform=wayland --start-minimized" "${pkgs.kdeconnect}/libexec/kdeconnectd"
"/usr/lib/kdeconnectd" # "aa-notify -p -s 1 -w 60 -f /var/log/audit/audit.log"
"aa-notify -p -s 1 -w 60 -f /var/log/audit/audit.log"
]; ];
"$mainMod" = "SUPER"; "$mainMod" = "SUPER";
@@ -142,7 +141,7 @@
# Screenshot # Screenshot
# "$mainMod,Print, exec, grim" # "$mainMod,Print, exec, grim"
# "$mainModShift,Print, exec, grim -g "$(slurp)"" # "$mainModShift,Print, exec, grim -g "$(slurp)""
"$mainModShift,s, exec, watershot" "$mainModShift,s, exec, ${pkgs.watershot}/bin/watershot"
# Move focus with mainMod + arrow keys # Move focus with mainMod + arrow keys
"$mainMod, left, movefocus, l" "$mainMod, left, movefocus, l"