Switch from Firefox to Zen, ...

Former-commit-id: 7add142ab1
This commit is contained in:
Hadi
2024-12-03 19:36:15 +01:00
parent bd98e149f9
commit 916a9ed923
8 changed files with 154 additions and 7 deletions

View File

@@ -7,3 +7,4 @@ feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md))
- [ ] PIA Vpn (issue in progress) - [ ] PIA Vpn (issue in progress)
- [ ] Webcord (system24 theme? Tui) - [ ] Webcord (system24 theme? Tui)
- [ ] check gvolpe/nix-config - [ ] check gvolpe/nix-config
- [ ] <https://github.com/isabelroses/dotfiles/blob/main/home/comfy/system/xdg.nix>

37
flake.lock generated
View File

@@ -911,6 +911,22 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_8": {
"locked": {
"lastModified": 1727348695,
"narHash": "sha256-J+PeFKSDV+pHL7ukkfpVzCOO7mBSrrpJ3svwBFABbhI=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "1925c603f17fc89f4c8f6bf6f631a802ad85d784",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixvim": { "nixvim": {
"inputs": { "inputs": {
"devshell": "devshell", "devshell": "devshell",
@@ -1066,7 +1082,8 @@
"pia": "pia", "pia": "pia",
"sops-nix": "sops-nix", "sops-nix": "sops-nix",
"spicetify-nix": "spicetify-nix", "spicetify-nix": "spicetify-nix",
"stylix": "stylix" "stylix": "stylix",
"zen-browser": "zen-browser"
} }
}, },
"sf-arabic": { "sf-arabic": {
@@ -1404,6 +1421,24 @@
"repo": "xdg-desktop-portal-hyprland", "repo": "xdg-desktop-portal-hyprland",
"type": "github" "type": "github"
} }
},
"zen-browser": {
"inputs": {
"nixpkgs": "nixpkgs_8"
},
"locked": {
"lastModified": 1727721329,
"narHash": "sha256-QYlWZwUSwrM7BuO+dXclZIwoPvBIuJr6GpFKv9XKFPI=",
"owner": "MarceColl",
"repo": "zen-browser-flake",
"rev": "e6ab73f405e9a2896cce5956c549a9cc359e5fcc",
"type": "github"
},
"original": {
"owner": "MarceColl",
"repo": "zen-browser-flake",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View File

@@ -42,6 +42,7 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nur.url = "github:nix-community/NUR"; nur.url = "github:nix-community/NUR";
zen-browser.url = "github:MarceColl/zen-browser-flake";
}; };
outputs = inputs@{ nixpkgs, ... }: { outputs = inputs@{ nixpkgs, ... }: {

View File

@@ -1,3 +1,4 @@
# Not using this file anymore, but keeping it for reference
{ pkgs, config, ... }: { pkgs, config, ... }:
let let
accent = "#${config.lib.stylix.colors.base0D}"; accent = "#${config.lib.stylix.colors.base0D}";
@@ -76,6 +77,12 @@ let
}; };
}; };
in { in {
home.file."homepage" = {
source = "${homepage}/build";
recursive = true;
};
stylix.targets.firefox.profileNames = [ "default" ]; stylix.targets.firefox.profileNames = [ "default" ];
programs.firefox = { programs.firefox = {
enable = true; enable = true;

View File

@@ -7,6 +7,7 @@
bashls.enable = true; bashls.enable = true;
clangd.enable = true; clangd.enable = true;
gopls.enable = true; gopls.enable = true;
eslint.enable = true;
nixd = { nixd = {
enable = true; enable = true;
extraOptions = { extraOptions = {

View File

@@ -0,0 +1,85 @@
{ pkgs, config, inputs, ... }:
let
accent = "#${config.lib.stylix.colors.base0D}";
background = "#${config.lib.stylix.colors.base00}";
foreground = "#${config.lib.stylix.colors.base05}";
muted = "#${config.lib.stylix.colors.base03}";
settings = ''
{
"config": {
"title" : "Welcome Home",
"openLinksInNewTab": false,
"locale": "fr-FR",
"colors": {
"primary": "${accent}",
"background": "${background}",
"foreground": "${foreground}",
"muted": "#${muted}"
},
"folders": [
{
"name": "Bookmarks",
"links": [
{"title": "MyNixOs", "url": "https://mynixos.com", "icon": "󱄅"},
{"title": "Github", "url": "https://github.com", "icon": ""},
{"title": "Proton", "url": "https://mail.proton.me/u/0/inbox", "icon": ""},
{"title": "Cloudflare One", "url": "https://one.dash.cloudflare.com/", "icon": ""},
{"title": "Chat GPT", "url": "https://chat.openai.com/", "icon": "󰭹"},
{"title": "Nixvim", "url": "https://nix-community.github.io/nixvim/", "icon": ""},
{"title": "Hyprland Wiki", "url": "https://wiki.hyprland.org/", "icon": "󰖬"},
{"title": "Youtube", "url": "https://youtube.com", "icon": "󰗃"},
{"title": "Figma", "url": "https://figma.com", "icon": ""},
{"title": "Server", "url": "https://home.anotherhadi.com", "icon": ""}
]
},
{
"name": "Work",
"links": [
{"title": "Outlook", "url": "https://outlook.office.com/mail/", "icon": "󰴢"},
{"title": "Office", "url": "https://www.office.com/?auth=2", "icon": "󰏆"},
{"title": "Teams", "url": "https://teams.microsoft.com/_", "icon": "󰊻"}
]
}
]
}
}
'';
homepage = pkgs.buildNpmPackage {
pname = "homepage";
version = "0.0.0";
src = pkgs.fetchFromGitHub {
owner = "anotherhadi";
repo = "homepage";
rev = "b77d35ed3596eb451bd2ec78063d7cc6e73c773d";
hash = "sha256-j/40922kfAh6zqJ4IRYpr66YXNNYsxuXwZ0aiJFJea0=";
};
# npmDepsHash = lib.fakeHash;
npmDepsHash = "sha256-bG+CHTq2Rst3JMxsjAC81KhK+G7WwsTVD1eyP87g0z4=";
buildPhase = ''
npm install
cp ${
pkgs.writeText "src/routes/config.json" settings
} src/routes/config.json
npm run build
mkdir $out
mv build $out
'';
meta = {
description = "homepage";
homepage = "https://github.com/anotherhadi/homepage";
};
};
in {
home.file."homepage" = {
source = "${homepage}/build";
recursive = true;
};
home.packages = with pkgs; [ inputs.zen-browser.packages."${system}".default ];
}

View File

@@ -23,10 +23,10 @@
"image/jpeg" = "imv.desktop"; "image/jpeg" = "imv.desktop";
"image/jpg" = "imv.desktop"; "image/jpg" = "imv.desktop";
"image/webp" = "imv.desktop"; "image/webp" = "imv.desktop";
"image/gif" = "firefox.desktop"; "image/gif" = "zen.desktop";
"x-scheme-handler/http" = "firefox.desktop"; "x-scheme-handler/http" = "zen.desktop";
"x-scheme-handler/https" = "firefox.desktop"; "x-scheme-handler/https" = "zen.desktop";
"text/html" = "firefox.desktop"; "text/html" = "zen.desktop";
"application/pdf" = "zathura.desktop"; "application/pdf" = "zathura.desktop";
}; };
}; };

View File

@@ -1,4 +1,4 @@
{ pkgs, config, ... }: { { pkgs, config, inputs, ... }: {
imports = [ imports = [
./variables.nix ./variables.nix
@@ -17,7 +17,7 @@
../../home/programs/thunar ../../home/programs/thunar
../../home/programs/lazygit ../../home/programs/lazygit
../../home/programs/nh ../../home/programs/nh
../../home/programs/firefox ../../home/programs/zen
../../home/programs/server-page ../../home/programs/server-page
# Scripts # Scripts
@@ -76,7 +76,19 @@
# cava # cava
# Backup # Backup
firefox
vscode vscode
# Temp
mpv
pnpm
# FIXME: Temporary, for a course on Kubernetes
terraform
ansible
azure-cli
k3d
kubectl
]; ];
# Import my profile picture, used by the hyprpanel dashboard # Import my profile picture, used by the hyprpanel dashboard
@@ -86,5 +98,10 @@
stateVersion = "24.05"; stateVersion = "24.05";
}; };
# FIXME: Temporary, for a course on Kubernetes
networking.extraHosts = ''
127.0.0.1 super-ai-croquette.local
'';
programs.home-manager.enable = true; programs.home-manager.enable = true;
} }