Refactor desktop Home Manager packages
This commit is contained in:
parent
20ec9fde32
commit
cf7de1eb9c
|
@ -44,27 +44,16 @@ let
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports =
|
||||||
../common
|
[
|
||||||
shared-config
|
../common
|
||||||
];
|
shared-config
|
||||||
|
]
|
||||||
|
++ pkgs.lib.optionals (!headless) [
|
||||||
|
./desktop
|
||||||
|
];
|
||||||
|
|
||||||
home.packages =
|
home.packages = shared-packages;
|
||||||
shared-packages
|
|
||||||
++ pkgs.lib.optionals (!headless) (
|
|
||||||
with pkgs;
|
|
||||||
[
|
|
||||||
build-glove80
|
|
||||||
gscan2pdf
|
|
||||||
meslo-lg
|
|
||||||
obs-studio
|
|
||||||
okular
|
|
||||||
pamixer
|
|
||||||
pavucontrol
|
|
||||||
xcape
|
|
||||||
xsel
|
|
||||||
]
|
|
||||||
);
|
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
DOCUMENTS = "$HOME/Documents";
|
DOCUMENTS = "$HOME/Documents";
|
||||||
|
|
19
nix/home/opdavies/desktop/default.nix
Normal file
19
nix/home/opdavies/desktop/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./qutebrowser.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
build-glove80
|
||||||
|
gscan2pdf
|
||||||
|
meslo-lg
|
||||||
|
obs-studio
|
||||||
|
okular
|
||||||
|
pamixer
|
||||||
|
pavucontrol
|
||||||
|
xcape
|
||||||
|
xsel
|
||||||
|
];
|
||||||
|
}
|
32
nix/home/opdavies/desktop/qutebrowser.nix
Normal file
32
nix/home/opdavies/desktop/qutebrowser.nix
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.qutebrowser = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
searchEngines = {
|
||||||
|
dp = "https://www.drupal.org/project/{}";
|
||||||
|
du = "https://www.drupal.org/u/{}";
|
||||||
|
gh = "https://github.com/search?q={}";
|
||||||
|
mn = "https://mynixos.com/search?q={}";
|
||||||
|
nx = "https://search.nixos.org/packages?query={}";
|
||||||
|
};
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
colors.webpage.darkmode.enabled = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
keyBindings = {
|
||||||
|
normal = {
|
||||||
|
"<Ctrl-d>" = "config-cycle colors.webpage.darkmode.enabled true false";
|
||||||
|
|
||||||
|
"xb" = "config-cycle statusbar.show always never";
|
||||||
|
"xt" = "config-cycle tabs.show always never";
|
||||||
|
"xx" = lib.mkMerge [
|
||||||
|
"config-cycle statusbar.show always never"
|
||||||
|
"config-cycle tabs.show always never"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue