Remove the features directory

This commit is contained in:
Oliver Davies 2025-03-06 23:46:37 +00:00
parent 6585022138
commit 0f31678c52
57 changed files with 6 additions and 8 deletions

View file

@ -0,0 +1,11 @@
{ config, lib, ... }:
with lib;
{
options.homeManagerModules.copyq.enable = mkEnableOption "Enable copyq";
config = mkIf config.homeManagerModules.copyq.enable {
services.copyq.enable = true;
};
}

View file

@ -0,0 +1,13 @@
{
imports = [
./copyq.nix
./discord.nix
./dwm.nix
./espanso.nix
./flameshot.nix
./gtk.nix
./media
./slack.nix
./zoom.nix
];
}

View file

@ -0,0 +1,16 @@
{
config,
lib,
pkgs,
...
}:
with lib;
{
options.homeManagerModules.discord.enable = mkEnableOption "Enable Discord";
config = mkIf config.homeManagerModules.discord.enable {
home.packages = with pkgs; [ discord ];
};
}

View file

@ -0,0 +1,35 @@
{
config,
lib,
pkgs,
...
}:
with lib;
{
options.homeManagerModules.dwm.enable = mkEnableOption "Enable dwm";
config = mkIf config.homeManagerModules.dwm.enable {
home = {
file.".xinitrc".text = ''
systemctl --user import-environment DISPLAY
autorandr --change
copyq &
poweralertd -s &
systemctl --user start dwm-status &
exec dwm
'';
packages = with pkgs; [
dunst
poweralertd
];
};
};
}

View file

@ -0,0 +1,24 @@
{ config, lib, ... }:
with lib;
{
options.homeManagerModules.espanso.enable = mkEnableOption "Enable espanso";
config = mkIf config.homeManagerModules.espanso.enable {
services.espanso = {
enable = true;
configs = {
default = {
show_notifications = false;
toggle_key = "LEFT_ALT";
};
};
matches = {
base = import ./espanso/matches/base.nix { inherit lib; };
};
};
};
}

View file

@ -0,0 +1,86 @@
{ lib, ... }:
let
inherit (lib) removePrefix;
websiteUrl = "https://www.oliverdavies.uk";
dailyUrl = "https://dailydrupaler.com";
githubUrl = "https://github.com/opdavies";
podcastUrl = "https://beyondblockspodcast.com";
in
{
matches = [
{
trigger = ":email";
replace = "oliver@${removePrefix "https://www." websiteUrl}";
}
{
trigger = ":archive";
replace = "${websiteUrl}/archive";
}
{
trigger = ":atdc";
replace = "${websiteUrl}/atdc";
}
{
trigger = ":call";
replace = "${websiteUrl}/call";
}
{
trigger = ":coaching";
replace = "${websiteUrl}/team-coaching";
}
{
trigger = ":daily";
replace = "${dailyUrl}";
}
{
trigger = ":dot";
replace = "${githubUrl}/dotfiles";
}
{
trigger = ":gh";
replace = "${githubUrl}";
}
{
trigger = ":gt";
replace = "Great, thanks!";
}
{
trigger = ":guest";
replace = "If you'd like to be a guest on ${podcastUrl} and talk about ..., I'd love to have you on the show.";
}
{
trigger = ":lh";
replace = "http://localhost";
}
{
trigger = ":podcast";
replace = "${podcastUrl}";
}
{
trigger = ":pricing";
replace = "${websiteUrl}/pricing";
}
{
trigger = ":record";
replace = "https://savvycal.com/opdavies/beyond-blocks";
}
{
trigger = ":talks";
replace = "${websiteUrl}/presentations";
}
{
trigger = ":website";
replace = "${websiteUrl}";
}
{
trigger = ":zet";
replace = "https://zet.oliverdavies.uk";
}
{
trigger = ":zoom";
replace = "https://savvycal.com/opdavies/zoom";
}
];
}

View file

@ -0,0 +1,28 @@
{
config,
lib,
username,
...
}:
with lib;
{
options.homeManagerModules.flameshot.enable = mkEnableOption "Enable flameshot";
config = mkIf config.homeManagerModules.flameshot.enable {
services.flameshot = {
enable = true;
settings = {
General = {
disabledTrayIcon = false;
saveAfterCopy = true;
savePath = "/home/${username}/Pictures/Screenshots";
showHelp = false;
uiColor = "#60a5fa";
};
};
};
};
}

View file

@ -0,0 +1,31 @@
{
config,
lib,
pkgs,
...
}:
with lib;
{
options.homeManagerModules.gtk.enable = mkEnableOption "Enable gtk";
config = mkIf config.homeManagerModules.gtk.enable {
gtk = {
enable = true;
theme = {
name = "Arc-Dark";
package = pkgs.arc-theme;
};
iconTheme = {
name = "Arc";
package = pkgs.arc-icon-theme;
};
gtk3.extraConfig.gtk-enable-animations = false;
gtk4.extraConfig.gtk-enable-animations = false;
};
};
}

View file

@ -0,0 +1,9 @@
{
imports = [
./gimp.nix
./handbrake.nix
./kdenlive.nix
./mpv.nix
./pocket-casts.nix
];
}

View file

@ -0,0 +1,16 @@
{
config,
lib,
pkgs,
...
}:
with lib;
{
options.homeManagerModules.gimp.enable = mkEnableOption "Enable gimp";
config = mkIf config.homeManagerModules.gimp.enable {
home.packages = with pkgs; [ gimp ];
};
}

View file

@ -0,0 +1,16 @@
{
config,
lib,
pkgs,
...
}:
with lib;
{
options.homeManagerModules.handbrake.enable = mkEnableOption "Enable handbrake";
config = mkIf config.homeManagerModules.handbrake.enable {
home.packages = with pkgs; [ handbrake ];
};
}

View file

@ -0,0 +1,16 @@
{
config,
lib,
pkgs,
...
}:
with lib;
{
options.homeManagerModules.kdenlive.enable = mkEnableOption "Enable kdenlive";
config = mkIf config.homeManagerModules.kdenlive.enable {
home.packages = with pkgs; [ kdePackages.kdenlive ];
};
}

View file

@ -0,0 +1,19 @@
{ config, lib, ... }:
with lib;
{
options.homeManagerModules.mpv.enable = mkEnableOption "Enable mpv media player";
config = mkIf config.homeManagerModules.mpv.enable {
programs.mpv = {
enable = true;
# https://github.com/mpv-player/mpv/blob/master/etc/input.conf
bindings = {
"DOWN" = "add volume -5";
"UP" = "add volume 5";
};
};
};
}

View file

@ -0,0 +1,16 @@
{
config,
lib,
pkgs,
...
}:
with lib;
{
options.homeManagerModules.pocket-casts.enable = mkEnableOption "Enable Pocket Casts";
config = mkIf config.homeManagerModules.pocket-casts.enable {
home.packages = with pkgs; [ pocket-casts ];
};
}

View file

@ -0,0 +1,16 @@
{
config,
lib,
pkgs,
...
}:
with lib;
{
options.homeManagerModules.slack.enable = mkEnableOption "Enable Slack";
config = mkIf config.homeManagerModules.slack.enable {
home.packages = with pkgs; [ slack ];
};
}

View file

@ -0,0 +1,16 @@
{
config,
lib,
pkgs,
...
}:
with lib;
{
options.homeManagerModules.zoom.enable = mkEnableOption "Enable zoom";
config = mkIf config.homeManagerModules.zoom.enable {
home.packages = with pkgs; [ zoom-us ];
};
}