zen
This commit is contained in:
parent
d6313c6cb1
commit
f3721e14bb
7 changed files with 143 additions and 74 deletions
69
flake.lock
generated
69
flake.lock
generated
|
|
@ -192,6 +192,27 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-parts": {
|
"flake-parts": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": [
|
||||||
|
"nur",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1733312601,
|
||||||
|
"narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-parts_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
"stylix",
|
"stylix",
|
||||||
|
|
@ -712,11 +733,33 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"stylix",
|
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1743128178,
|
||||||
|
"narHash": "sha256-h/05pQp7KTy83UqwfZQpuJGB5oEWYf+5kVM7RGBi47k=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "NUR",
|
||||||
|
"rev": "e8dc75a445e7d58d4b4b5be1d13a3b1e32a5c027",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "NUR",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nur_2": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-parts": "flake-parts_2",
|
||||||
|
"nixpkgs": [
|
||||||
|
"stylix",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"treefmt-nix": "treefmt-nix_2"
|
||||||
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1741693509,
|
"lastModified": 1741693509,
|
||||||
"narHash": "sha256-emkxnsZstiJWmGACimyAYqIKz2Qz5We5h1oBVDyQjLw=",
|
"narHash": "sha256-emkxnsZstiJWmGACimyAYqIKz2Qz5We5h1oBVDyQjLw=",
|
||||||
|
|
@ -764,6 +807,7 @@
|
||||||
"impermanence": "impermanence",
|
"impermanence": "impermanence",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"nixpkgs-stable": "nixpkgs-stable",
|
"nixpkgs-stable": "nixpkgs-stable",
|
||||||
|
"nur": "nur",
|
||||||
"rose-pine-hyprcursor": "rose-pine-hyprcursor",
|
"rose-pine-hyprcursor": "rose-pine-hyprcursor",
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
"stylix": "stylix",
|
"stylix": "stylix",
|
||||||
|
|
@ -836,7 +880,7 @@
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"nur": "nur",
|
"nur": "nur_2",
|
||||||
"systems": "systems_3",
|
"systems": "systems_3",
|
||||||
"tinted-foot": "tinted-foot",
|
"tinted-foot": "tinted-foot",
|
||||||
"tinted-kitty": "tinted-kitty",
|
"tinted-kitty": "tinted-kitty",
|
||||||
|
|
@ -986,6 +1030,27 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"treefmt-nix": {
|
"treefmt-nix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nur",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1733222881,
|
||||||
|
"narHash": "sha256-JIPcz1PrpXUCbaccEnrcUS8jjEb/1vJbZz5KkobyFdM=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"rev": "49717b5af6f80172275d47a418c9719a31a78b53",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"treefmt-nix_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"stylix",
|
"stylix",
|
||||||
|
|
|
||||||
15
flake.nix
15
flake.nix
|
|
@ -54,6 +54,11 @@
|
||||||
url = "github:LunaCOLON3/zen-browser-nix";
|
url = "github:LunaCOLON3/zen-browser-nix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nur = {
|
||||||
|
url = "github:nix-community/NUR";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
|
|
@ -61,6 +66,8 @@
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
home-manager,
|
home-manager,
|
||||||
|
nur,
|
||||||
|
zen-browser,
|
||||||
...
|
...
|
||||||
}@inputs:
|
}@inputs:
|
||||||
let
|
let
|
||||||
|
|
@ -81,7 +88,13 @@
|
||||||
let
|
let
|
||||||
config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) (import ./unfree.nix).allowed;
|
config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) (import ./unfree.nix).allowed;
|
||||||
in
|
in
|
||||||
import nixpkgs { inherit system config; };
|
import nixpkgs {
|
||||||
|
inherit system config;
|
||||||
|
overlays = [
|
||||||
|
nur.overlays.default
|
||||||
|
zen-browser.overlay
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
makeHost =
|
makeHost =
|
||||||
host: system:
|
host: system:
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
./env.nix
|
./env.nix
|
||||||
|
|
||||||
#zen-browser (WIP)
|
#zen-browser (WIP)
|
||||||
# ./firefox
|
./firefox
|
||||||
|
|
||||||
./alacritty.nix
|
./alacritty.nix
|
||||||
./clipman.nix
|
./clipman.nix
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ pkgs, ...}: {
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,74 +1,48 @@
|
||||||
{zen-browser, system, pkgs, lib, ...}: {
|
{
|
||||||
|
zen-browser,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
imports = [ zen-browser.homeManagerModules.zen-browser ];
|
imports = [ zen-browser.homeManagerModules.zen-browser ];
|
||||||
|
|
||||||
home.file.".mozilla/native-messaging-hosts".source = lib.mkForce "/home/lilith/.mozilla/native-messaging-hosts";
|
home.file.".mozilla/native-messaging-hosts".source =
|
||||||
|
lib.mkForce /home/lilith/.mozilla/native-messaging-hosts;
|
||||||
|
|
||||||
programs.zen-browser = {
|
programs.zen-browser = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
nativeMessagingHosts = with pkgs; [
|
nativeMessagingHosts = lib.mkForce (
|
||||||
tridactyl-native
|
with pkgs;
|
||||||
keepassxc
|
[
|
||||||
];
|
tridactyl-native
|
||||||
|
keepassxc
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
policies = {
|
profiles.lilith = {
|
||||||
Homepage = {
|
id = 0;
|
||||||
URL = "https://duckduckgo.com";
|
name = "Lilith";
|
||||||
StartPage = "homepage";
|
isDefault = true;
|
||||||
|
|
||||||
|
search = {
|
||||||
|
force = true;
|
||||||
|
default = "DuckDuckGo";
|
||||||
|
privateDefault = "DuckDuckGo";
|
||||||
|
order = [ "DuckDuckGo" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
DisablePocket = true;
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
DisableFirefoxAccounts = true;
|
ublock-origin
|
||||||
DisableAccounts = true;
|
keepassxc-browser
|
||||||
DisableFormHistory = true;
|
tridactyl
|
||||||
OfferToSaveLogins = false;
|
];
|
||||||
PasswordManagerEnabled = false;
|
|
||||||
|
|
||||||
DisableSetDesktopBackground = true;
|
settings = {
|
||||||
DisableTelemetry = true;
|
"zen.experimental-no-window-controls" = true;
|
||||||
DisableFirefoxScreenshots = true;
|
"zen.sidebar.data" = "";
|
||||||
|
"browser.translations.automaticallyPopup" = false;
|
||||||
OverrideFirstRunPage = "https://duckduckgo.com";
|
|
||||||
OverridePostUpdatePage = "https://duckduckgo.com";
|
|
||||||
NewTabPage = false;
|
|
||||||
|
|
||||||
DontCheckDefaultBrowser = true;
|
|
||||||
DisplayBookmarksToolbar = "never";
|
|
||||||
|
|
||||||
SearchBar = "unified";
|
|
||||||
SearchSuggestEnabled = false;
|
|
||||||
DownloadDirectory = "/home/lilith/sync/inbox";
|
|
||||||
|
|
||||||
ExtensionSettings = {
|
|
||||||
# uBlock Origin:
|
|
||||||
"uBlock0@raymondhill.net" = {
|
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
|
|
||||||
installation_mode = "force_installed";
|
|
||||||
};
|
|
||||||
|
|
||||||
"keepassxc-browser@keepassxc.org" = {
|
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/keepassxc-browser/latest.xpi";
|
|
||||||
installation_mode = "force_installed";
|
|
||||||
};
|
|
||||||
|
|
||||||
"sponsorBlocker@ajay.app" = {
|
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/file/4292214/sponsorblock-5.6.xpi";
|
|
||||||
installation_mode = "force_installed";
|
|
||||||
};
|
|
||||||
|
|
||||||
"tridactyl.vim@cmcaine.co.uk" = {
|
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/file/4261352/tridactyl_vim-1.24.1.xpi";
|
|
||||||
installation_mode = "force_installed";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
SearchEngines = {
|
|
||||||
Default = "DuckDuckGo";
|
|
||||||
};
|
|
||||||
|
|
||||||
Preferences = {
|
|
||||||
"browser.newtab.extensionControlled" = false;
|
|
||||||
"browser.translations.neverTranslateLanguages" = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,6 @@
|
||||||
./users.nix
|
./users.nix
|
||||||
./zsh.nix
|
./zsh.nix
|
||||||
|
|
||||||
./virtulization.nix
|
./virtualization.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,10 @@
|
||||||
steam = {
|
steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
gamescopeSession.enable = true;
|
gamescopeSession.enable = true;
|
||||||
|
|
||||||
|
remotePlay.openFirewall = true;
|
||||||
|
dedicatedServer.openFirewall = true;
|
||||||
|
localNetworkGameTransfers.openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
gamemode.enable = true;
|
gamemode.enable = true;
|
||||||
|
|
@ -32,5 +36,17 @@
|
||||||
protontricks
|
protontricks
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# SteamVR kernel patch for AMDGPU
|
||||||
|
boot.kernelPatches = [
|
||||||
|
{
|
||||||
|
name = "amdgpu-ignore-ctx-privileges";
|
||||||
|
patch = pkgs.fetchpatch {
|
||||||
|
name = "cap_sys_nice_begone.patch";
|
||||||
|
url = "https://github.com/Frogging-Family/community-patches/raw/master/linux61-tkg/cap_sys_nice_begone.mypatch";
|
||||||
|
hash = "sha256-Y3a0+x2xvHsfLax/uwycdJf3xLxvVfkfDVqjkxNaYEo=";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue