Compare commits
6 commits
5eb724a0c4
...
bdbc0e7614
Author | SHA1 | Date | |
---|---|---|---|
bdbc0e7614 | |||
a8ec1a644c | |||
018242e2a5 | |||
d48773e9af | |||
e2df40e518 | |||
98be8e8da4 |
14 changed files with 100 additions and 33 deletions
|
@ -1,5 +0,0 @@
|
||||||
_: {
|
|
||||||
programs.imv = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
_: {
|
|
||||||
programs.mpv = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,13 +0,0 @@
|
||||||
_: {
|
|
||||||
programs.zathura = {
|
|
||||||
enable = true;
|
|
||||||
options = {
|
|
||||||
selection-clipboard = "clipboard";
|
|
||||||
font = "Fira Sans 12";
|
|
||||||
recolor = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
xdg.mimeApps.defaultApplications = {
|
|
||||||
"application/pdf" = "org.pwmt.zathura.desktop";
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -51,8 +51,16 @@
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
hardware.opengl.enable = true;
|
hardware.opengl = {
|
||||||
hardware.opengl.driSupport = true;
|
enable = true;
|
||||||
|
driSupport = true;
|
||||||
|
extraPackages = with pkgs; [
|
||||||
|
intel-media-driver
|
||||||
|
vaapiVdpau
|
||||||
|
libvdpau-va-gl
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
virtualisation.virtualbox.host.enable = true;
|
virtualisation.virtualbox.host.enable = true;
|
||||||
users.extraGroups.vboxusers.members = [ "ephase" ];
|
users.extraGroups.vboxusers.members = [ "ephase" ];
|
||||||
|
|
|
@ -1,8 +1,17 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
config.modules = {
|
config.modules = {
|
||||||
cli.neovim.enable = true;
|
application = {
|
||||||
cli.vifm.enable = true;
|
zathura.enable = true;
|
||||||
video.kdenlive.enable = false;
|
};
|
||||||
|
cli = {
|
||||||
|
neovim.enable = true;
|
||||||
|
vifm.enable = true;
|
||||||
|
zsh.enable = true;
|
||||||
|
};
|
||||||
|
video = {
|
||||||
|
kdenlive.enable = false;
|
||||||
|
mpv.enable = true;
|
||||||
|
};
|
||||||
web.firefox.enable = true;
|
web.firefox.enable = true;
|
||||||
web.qutebrowser.enable = true;
|
web.qutebrowser.enable = true;
|
||||||
web.webcord.enable = true;
|
web.webcord.enable = true;
|
||||||
|
|
18
modules/home-manager/application/imv/default.nix
Normal file
18
modules/home-manager/application/imv/default.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{ lib, config, ... }:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.application.zathura;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.application.imv = {
|
||||||
|
enable = mkEnableOption "enable IMV image viewer";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.imv = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
xdg.mimeApps.defaultApplications = {
|
||||||
|
"image/*" = "imv-dir.desktop";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
23
modules/home-manager/application/zathura/default.nix
Normal file
23
modules/home-manager/application/zathura/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{ lib, config, ... }:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.application.zathura;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.application.zathura = {
|
||||||
|
enable = mkEnableOption "enable Zathura PDF viewer";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.zathura = {
|
||||||
|
enable = true;
|
||||||
|
options = {
|
||||||
|
selection-clipboard = "clipboard";
|
||||||
|
font = "Fira Sans 12";
|
||||||
|
recolor = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
xdg.mimeApps.defaultApplications = {
|
||||||
|
"application/pdf" = "org.pwmt.zathura.desktop";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,12 +1,15 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./application/imv
|
||||||
|
./application/zathura
|
||||||
./cli/neovim
|
./cli/neovim
|
||||||
./cli/vifm
|
./cli/vifm
|
||||||
./cli/zsh
|
./cli/zsh
|
||||||
./desktop/sway
|
./desktop/sway
|
||||||
./gaming/lutris
|
./gaming/lutris
|
||||||
./video/kdenlive
|
./video/kdenlive
|
||||||
|
./video/mpv
|
||||||
./web/firefox
|
./web/firefox
|
||||||
./web/qutebrowser/default.nix
|
./web/qutebrowser/default.nix
|
||||||
./web/webcord
|
./web/webcord
|
||||||
|
|
24
modules/home-manager/video/mpv/default.nix
Normal file
24
modules/home-manager/video/mpv/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{ lib, config, ... }:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.video.mpv;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.video.mpv = {
|
||||||
|
enable = mkEnableOption "enable MPV video player";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.mpv = {
|
||||||
|
enable = true;
|
||||||
|
config = {
|
||||||
|
hwdec = "auto-safe";
|
||||||
|
vo = "gpu";
|
||||||
|
profile = "gpu-hq";
|
||||||
|
gpu-context = "wayland";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
xdg.mimeApps.defaultApplications = {
|
||||||
|
"video/*" = "mpv.desktop";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -40,4 +40,7 @@
|
||||||
"browser.startup.homepage_override.mstone" = "ignore";
|
"browser.startup.homepage_override.mstone" = "ignore";
|
||||||
|
|
||||||
"browser.aboutHomeSnippets.updateUrl" = "";
|
"browser.aboutHomeSnippets.updateUrl" = "";
|
||||||
|
|
||||||
|
# Restore session when restart
|
||||||
|
"browser.sessionstore.resume_session_once" = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,10 +15,11 @@
|
||||||
"browser.urlbar.suggest.trending" = false;
|
"browser.urlbar.suggest.trending" = false;
|
||||||
"browser.urlbar.suggest.weather" = false;
|
"browser.urlbar.suggest.weather" = false;
|
||||||
"browser.urlbar.suggest.searches" = false;
|
"browser.urlbar.suggest.searches" = false;
|
||||||
|
"browser.urlbar.suggest.topsites" = false;
|
||||||
|
|
||||||
# Disable Search Keyword
|
# Enable Search Keyword
|
||||||
# When you mistype some url, Firefox starts a search even from urlbar. This
|
# When you mistype some url, Firefox starts a search even from urlbar. This
|
||||||
# feature is useful for quick searching, but may harm your privacy, when it's
|
# feature is useful for quick searching, but may harm your privacy, when it's
|
||||||
# unintended.
|
# unintended.
|
||||||
"keyword.enabled" = false;
|
"keyword.enabled" = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,5 +30,7 @@
|
||||||
|
|
||||||
# disable funsking malwares
|
# disable funsking malwares
|
||||||
"browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.havePinned" = "";
|
"browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.havePinned" = "";
|
||||||
|
"browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.searchEngines" = "";
|
||||||
|
"browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts" = false;
|
||||||
"browser.newtabpage.pinned" = "";
|
"browser.newtabpage.pinned" = "";
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,6 +61,8 @@ in
|
||||||
"Bing".metaData.hidden = true;
|
"Bing".metaData.hidden = true;
|
||||||
"Google".metaData.hidden = true;
|
"Google".metaData.hidden = true;
|
||||||
"Amazon.fr".metaData.hidden = true;
|
"Amazon.fr".metaData.hidden = true;
|
||||||
|
"Facebook".metaData.hidden = true;
|
||||||
|
"youtube".metaData.hidden = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
settings = merge [
|
settings = merge [
|
||||||
|
|
|
@ -67,9 +67,6 @@
|
||||||
] ++ (if hostConfig.desktop then
|
] ++ (if hostConfig.desktop then
|
||||||
[
|
[
|
||||||
../home-manager/foot.nix
|
../home-manager/foot.nix
|
||||||
../home-manager/zathura.nix
|
|
||||||
../home-manager/imv.nix
|
|
||||||
../home-manager/mpv
|
|
||||||
]
|
]
|
||||||
else []
|
else []
|
||||||
) ++ lib.optional (
|
) ++ lib.optional (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue