Compare commits
No commits in common. "bdbc0e76146d06b2fc788d9887ea9988522fafd6" and "5eb724a0c4fdfc5c9ff0b54e723d37d21c15d49a" have entirely different histories.
bdbc0e7614
...
5eb724a0c4
14 changed files with 33 additions and 100 deletions
5
home-manager/imv.nix
Normal file
5
home-manager/imv.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
_: {
|
||||||
|
programs.imv = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
5
home-manager/mpv/default.nix
Normal file
5
home-manager/mpv/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
_: {
|
||||||
|
programs.mpv = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
13
home-manager/zathura.nix
Normal file
13
home-manager/zathura.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
_: {
|
||||||
|
programs.zathura = {
|
||||||
|
enable = true;
|
||||||
|
options = {
|
||||||
|
selection-clipboard = "clipboard";
|
||||||
|
font = "Fira Sans 12";
|
||||||
|
recolor = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
xdg.mimeApps.defaultApplications = {
|
||||||
|
"application/pdf" = "org.pwmt.zathura.desktop";
|
||||||
|
};
|
||||||
|
}
|
|
@ -51,16 +51,8 @@
|
||||||
|
|
||||||
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 = {
|
hardware.opengl.enable = true;
|
||||||
enable = true;
|
hardware.opengl.driSupport = 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,17 +1,8 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
config.modules = {
|
config.modules = {
|
||||||
application = {
|
cli.neovim.enable = true;
|
||||||
zathura.enable = true;
|
cli.vifm.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;
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
{ 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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,23 +0,0 @@
|
||||||
{ 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,15 +1,12 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
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
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
{ 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,7 +40,4 @@
|
||||||
"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,11 +15,10 @@
|
||||||
"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;
|
|
||||||
|
|
||||||
# Enable Search Keyword
|
# Disable 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" = true;
|
"keyword.enabled" = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,5 @@
|
||||||
|
|
||||||
# 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,8 +61,6 @@ 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,6 +67,9 @@
|
||||||
] ++ (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