mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Condensed home.nix into many more modules!
This commit is contained in:
parent
3fd5341fbe
commit
4a44c06a43
14 changed files with 258 additions and 155 deletions
19
user/app/browser/brave.nix
Normal file
19
user/app/browser/brave.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Module installing librewolf as default browser
|
||||
home.packages = [ pkgs.brave ];
|
||||
|
||||
xdg.mimeApps.defaultApplications = {
|
||||
"text/html" = "brave-browser.desktop";
|
||||
"x-scheme-handler/http" = "brave-browser.desktop";
|
||||
"x-scheme-handler/https" = "brave-browser.desktop";
|
||||
"x-scheme-handler/about" = "brave-browser.desktop";
|
||||
"x-scheme-handler/unknown" = "brave-browser.desktop";
|
||||
};
|
||||
|
||||
home.sessionVariables = {
|
||||
DEFAULT_BROWSER = "${pkgs.brave}/bin/brave";
|
||||
};
|
||||
|
||||
}
|
42
user/app/browser/librewolf.nix
Normal file
42
user/app/browser/librewolf.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Module installing librewolf as default browser
|
||||
home.packages = [ pkgs.librewolf ];
|
||||
|
||||
home.file.".librewolf/librewolf.overrides.cfg".text = ''
|
||||
defaultPref("font.name.serif.x-western","Inconsolata");
|
||||
defaultPref("font.size.variable.x-western",20);
|
||||
defaultPref("browser.toolbars.bookmarks.visibility","always");
|
||||
defaultPref("privacy.resisttFingerprinting.letterboxing", true);
|
||||
defaultPref("network.http.referer.XOriginPolicy",2);
|
||||
defaultPref("privacy.clearOnShutdown.history",false);
|
||||
defaultPref("privacy.clearOnShutdown.downloads",false);
|
||||
defaultPref("privacy.clearOnShutdown.cookies",false);
|
||||
defaultPref("gfx.webrender.software.opengl",true);
|
||||
defaultPref("webgl.disabled",false);
|
||||
pref("font.name.serif.x-western","Inconsolata");
|
||||
pref("font.size.variable.x-western",20);
|
||||
pref("browser.toolbars.bookmarks.visibility","always");
|
||||
pref("privacy.resisttFingerprinting.letterboxing", true);
|
||||
pref("network.http.referer.XOriginPolicy",2);
|
||||
pref("privacy.clearOnShutdown.history",false);
|
||||
pref("privacy.clearOnShutdown.downloads",false);
|
||||
pref("privacy.clearOnShutdown.cookies",false);
|
||||
pref("gfx.webrender.software.opengl",true);
|
||||
pref("webgl.disabled",false);
|
||||
'';
|
||||
|
||||
xdg.mimeApps.defaultApplications = {
|
||||
"text/html" = "librewolf.desktop";
|
||||
"x-scheme-handler/http" = "librewolf.desktop";
|
||||
"x-scheme-handler/https" = "librewolf.desktop";
|
||||
"x-scheme-handler/about" = "librewolf.desktop";
|
||||
"x-scheme-handler/unknown" = "librewolf.desktop";
|
||||
};
|
||||
|
||||
home.sessionVariables = {
|
||||
DEFAULT_BROWSER = "${pkgs.librewolf}/bin/librewolf";
|
||||
};
|
||||
|
||||
}
|
17
user/app/dmenu-scripts/networkmanager-dmenu.nix
Normal file
17
user/app/dmenu-scripts/networkmanager-dmenu.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = [ pkgs.networkmanager_dmenu ];
|
||||
|
||||
home.file.".config/networkmanager-dmenu/config.ini".text = ''
|
||||
[dmenu]
|
||||
dmenu_command = rofi -show dmenu
|
||||
compact = True
|
||||
wifi_chars = ▂▄▆█
|
||||
list_saved = True
|
||||
|
||||
[editor]
|
||||
terminal = alacritty
|
||||
# gui_if_available = <True or False> (Default: True)
|
||||
'';
|
||||
}
|
|
@ -7,10 +7,12 @@ in
|
|||
enable = true;
|
||||
doomPrivateDir = ./.;
|
||||
};
|
||||
|
||||
home.file.".emacs.d/themes/doom-stylix-theme.el".source = config.lib.stylix.colors {
|
||||
template = builtins.readFile ./themes/doom-stylix-theme.el.mustache;
|
||||
extension = ".el";
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
git
|
||||
nodejs
|
||||
|
@ -18,6 +20,8 @@ in
|
|||
jshon
|
||||
aria
|
||||
hledger
|
||||
hunspell hunspellDicts.en_US-large
|
||||
pandoc
|
||||
nodePackages.mermaid-cli
|
||||
(python3.withPackages (p: with p; [
|
||||
pandas
|
||||
|
@ -27,6 +31,11 @@ in
|
|||
pymupdf
|
||||
markdown
|
||||
]))];
|
||||
|
||||
home.sessionVariables = {
|
||||
EDITOR = "emacsclient";
|
||||
};
|
||||
|
||||
home.file.".emacs.d/eaf" = {
|
||||
source = "${eaf}";
|
||||
recursive = true;
|
||||
|
|
|
@ -1616,10 +1616,12 @@ in
|
|||
enable = true;
|
||||
doomPrivateDir = ./.;
|
||||
};
|
||||
|
||||
home.file.".emacs.d/themes/doom-stylix-theme.el".source = config.lib.stylix.colors {
|
||||
template = builtins.readFile ./themes/doom-stylix-theme.el.mustache;
|
||||
extension = ".el";
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
git
|
||||
nodejs
|
||||
|
@ -1627,6 +1629,8 @@ in
|
|||
jshon
|
||||
aria
|
||||
hledger
|
||||
hunspell hunspellDicts.en_US-large
|
||||
pandoc
|
||||
nodePackages.mermaid-cli
|
||||
(python3.withPackages (p: with p; [
|
||||
pandas
|
||||
|
@ -1636,6 +1640,11 @@ in
|
|||
pymupdf
|
||||
markdown
|
||||
]))];
|
||||
|
||||
home.sessionVariables = {
|
||||
EDITOR = "emacsclient";
|
||||
};
|
||||
|
||||
home.file.".emacs.d/eaf" = {
|
||||
source = "${eaf}";
|
||||
recursive = true;
|
||||
|
|
8
user/app/flatpak/flatpak.nix
Normal file
8
user/app/flatpak/flatpak.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = [ pkgs.flatpak ];
|
||||
home.sessionVariables = {
|
||||
XDG_DATA_DIRS = "$XDG_DATA_DIRS:/usr/share:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share"; # lets flatpak work
|
||||
};
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
{ config, lib, pkgs, myName, myEmail, ... }:
|
||||
|
||||
{
|
||||
home.packages = [ pkgs.git ];
|
||||
programs.git.enable = true;
|
||||
programs.git.userName = myName;
|
||||
programs.git.userEmail = myEmail;
|
||||
|
|
23
user/app/keepass/keepass.nix
Normal file
23
user/app/keepass/keepass.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
(self: super:
|
||||
{
|
||||
keepmenu = super.keepmenu.overrideAttrs (oldAttrs: rec {
|
||||
pname = "keepmenu";
|
||||
version = "1.3.1";
|
||||
src = super.python3Packages.fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-AGuJY7IirzIjcu/nY9CzeOqU1liwcRijYLi8hGN/pRg=";
|
||||
};
|
||||
});
|
||||
}
|
||||
)
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
keepassxc
|
||||
keepmenu
|
||||
];
|
||||
}
|
18
user/app/virtualization/virtualization.nix
Normal file
18
user/app/virtualization/virtualization.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Various packages related to virtualization, compatability and sandboxing
|
||||
home.packages = with pkgs; [
|
||||
# Virtual Machines and wine
|
||||
libvirt
|
||||
virt-manager
|
||||
qemu_full
|
||||
lxc
|
||||
swtpm
|
||||
bottles
|
||||
|
||||
# Filesystems
|
||||
dosfstools
|
||||
];
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue