My Nix Configuration

[modules.home] fix eval errors

Changed files
+47 -41
modules
home
profiles
programs
misc-programs
neovim
ssh
wlogout
scripts
wayland
+1 -1
modules/home/profiles/cli/default.nix
···
};
gpg.enable = mkDefault true;
helix.enable = mkDefault true;
-
nix-index = mkDefault true;
+
nix-index.enable = mkDefault true;
nushell.enable = mkDefault true;
pandoc.enable = mkDefault true;
ssh.enable = mkDefault true;
+2
modules/home/profiles/gui/default.nix
···
};
services = {
gpg-agent.enable = mkDefault true;
+
kdeconnect.enable = mkDefault true;
mako.enable = mkDefault true;
+
swayidle.enable = mkDefault true;
syncthing.enable = mkDefault true;
};
};
+1 -1
modules/home/programs/misc-programs/default.nix
···
enableFishIntegration = true;
enableZshIntegration = true;
};
-
obs = mkIf cfg.obs.enable {
+
obs-studio = mkIf cfg.obs.enable {
enable = true;
plugins = with pkgs.obs-studio-plugins; [
obs-ndi
+5 -3
modules/home/programs/neovim/default.nix
···
{
pkgs,
-
osConfig,
config,
lib,
...
···
config.programs.neovim = lib.mkIf cfg.enable {
enable = true;
-
package = osConfig.programs.neovim.finalPackage;
+
package = pkgs.py.nvim;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
+
withRuby = false;
+
withNodeJs = false;
+
withPython3 = false;
extraPackages =
[
pkgs.bottom
···
pkgs.nodejs
]
++ (
-
if config.py.profiles.graphical.enable then
+
if config.py.profiles.gui.enable then
[
pkgs.ffmpegthumbnailer
pkgs.fontpreview
+1 -1
modules/home/programs/ssh/default.nix
···
in
{
options.py.programs.ssh.enable = lib.mkEnableOption "ssh";
-
config = lib.mkEnableOption cfg.enable {
+
config = lib.mkIf cfg.enable {
programs.ssh = {
enable = true;
compression = true;
+2 -2
modules/home/programs/wlogout/default.nix
···
...
}:
let
-
cfg = config.programs.py.wlogout;
+
cfg = config.py.programs.wlogout;
pkg = config.programs.wlogout.package;
in
{
options.py.programs.wlogout.enable = lib.mkEnableOption "wlogout";
config.programs.wlogout = lib.mkIf cfg.enable {
enable = true;
-
style = import ./style.nix pkg;
+
style = import ./style.nix { inherit pkg; };
layout = [
{
label = "hibernate";
+1 -1
modules/home/programs/wlogout/style.nix
···
-
{ pkg }:
+
{ pkg, ... }:
let
icon-path = "${pkg}/share/wlogout/icons";
in
+1 -1
modules/home/scripts/default.nix
···
{ lib, config, ... }:
{
home.activation = {
-
removeLocalFonts = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
+
removeLocalFonts = config.lib.dag.entryAfter [ "writeBoundary" ] ''
unlink ${config.home.homeDirectory}/.local/share/fonts
'';
};
+33 -31
modules/home/wayland/keybindings.nix
···
cfg = config.py.gui;
in
{
-
config.wayland.windowManager.sway.config.keybindings = lib.mkOptionDefault lib.mkIf cfg.enable {
-
"${mod}+d" = "${menu}";
-
"${mod}+Shift+F" = "exec MOZ_DISABLE_RDD_SANDBOX=1 firefox";
-
"${mod}+Return" = "exec ${term}";
-
# "${mod}+Shift+Return" = "exec ${pkgs.wezterm}/bin/wezterm";
-
"${mod}+x" = "exec wlogout";
-
"${mod}+s" = null;
-
"${mod}+w" = null;
-
"XF86MonBrightnessDown" = "exec brightnessctl set 5%-";
-
"XF86MonBrightnessUp" = "exec brightnessctl set +5%";
-
"XF86AudioRaiseVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ +5%";
-
"XF86AudioLowerVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ -5%";
-
"XF86AudioMute" = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle";
-
"XF86AudioMicMute" = "exec pactl set-source-mute @DEFAULT_SOURCE@ toggle";
-
"XF86AudioPlay" = "exec playerctl play-pause";
-
"XF86AudioNext" = "exec playerctl next";
-
"XF86AudioPrev" = "exec playerctl previous";
-
"Shift+F3" = "exec ${grim} ${slurp-screen} | ${satty}";
-
"Shift+F4" = "exec ${grim} ${slurp-box} | ${satty}";
-
"${mod}+Shift+1" = "move container to workspace number 1";
-
"${mod}+Shift+2" = "move container to workspace number 2";
-
"${mod}+Shift+3" = "move container to workspace number 3";
-
"${mod}+Shift+4" = "move container to workspace number 4";
-
"${mod}+Shift+5" = "move container to workspace number 5";
-
"${mod}+Shift+6" = "move container to workspace number 6";
-
"${mod}+Shift+7" = "move container to workspace number 7";
-
"${mod}+Shift+8" = "move container to workspace number 8";
-
"${mod}+Shift+9" = "move container to workspace number 9";
-
"${mod}+Shift+0" = "move container to workspace number 10";
-
"${mod}+0" = "workspace number 10";
-
};
+
config.wayland.windowManager.sway.config.keybindings = lib.mkIf cfg.enable (
+
lib.mkOptionDefault {
+
"${mod}+d" = "${menu}";
+
"${mod}+Shift+F" = "exec MOZ_DISABLE_RDD_SANDBOX=1 firefox";
+
"${mod}+Return" = "exec ${term}";
+
# "${mod}+Shift+Return" = "exec ${pkgs.wezterm}/bin/wezterm";
+
"${mod}+x" = "exec wlogout";
+
"${mod}+s" = null;
+
"${mod}+w" = null;
+
"XF86MonBrightnessDown" = "exec brightnessctl set 5%-";
+
"XF86MonBrightnessUp" = "exec brightnessctl set +5%";
+
"XF86AudioRaiseVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ +5%";
+
"XF86AudioLowerVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ -5%";
+
"XF86AudioMute" = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle";
+
"XF86AudioMicMute" = "exec pactl set-source-mute @DEFAULT_SOURCE@ toggle";
+
"XF86AudioPlay" = "exec playerctl play-pause";
+
"XF86AudioNext" = "exec playerctl next";
+
"XF86AudioPrev" = "exec playerctl previous";
+
"Shift+F3" = "exec ${grim} ${slurp-screen} | ${satty}";
+
"Shift+F4" = "exec ${grim} ${slurp-box} | ${satty}";
+
"${mod}+Shift+1" = "move container to workspace number 1";
+
"${mod}+Shift+2" = "move container to workspace number 2";
+
"${mod}+Shift+3" = "move container to workspace number 3";
+
"${mod}+Shift+4" = "move container to workspace number 4";
+
"${mod}+Shift+5" = "move container to workspace number 5";
+
"${mod}+Shift+6" = "move container to workspace number 6";
+
"${mod}+Shift+7" = "move container to workspace number 7";
+
"${mod}+Shift+8" = "move container to workspace number 8";
+
"${mod}+Shift+9" = "move container to workspace number 9";
+
"${mod}+Shift+0" = "move container to workspace number 10";
+
"${mod}+0" = "workspace number 10";
+
}
+
);
}