Remove the features directory
This commit is contained in:
parent
6585022138
commit
0f31678c52
57 changed files with 6 additions and 8 deletions
11
nix/modules/home-manager/desktop/copyq.nix
Normal file
11
nix/modules/home-manager/desktop/copyq.nix
Normal 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;
|
||||
};
|
||||
}
|
13
nix/modules/home-manager/desktop/default.nix
Normal file
13
nix/modules/home-manager/desktop/default.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
imports = [
|
||||
./copyq.nix
|
||||
./discord.nix
|
||||
./dwm.nix
|
||||
./espanso.nix
|
||||
./flameshot.nix
|
||||
./gtk.nix
|
||||
./media
|
||||
./slack.nix
|
||||
./zoom.nix
|
||||
];
|
||||
}
|
16
nix/modules/home-manager/desktop/discord.nix
Normal file
16
nix/modules/home-manager/desktop/discord.nix
Normal 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 ];
|
||||
};
|
||||
}
|
35
nix/modules/home-manager/desktop/dwm.nix
Normal file
35
nix/modules/home-manager/desktop/dwm.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
24
nix/modules/home-manager/desktop/espanso.nix
Normal file
24
nix/modules/home-manager/desktop/espanso.nix
Normal 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; };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
86
nix/modules/home-manager/desktop/espanso/matches/base.nix
Normal file
86
nix/modules/home-manager/desktop/espanso/matches/base.nix
Normal 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";
|
||||
}
|
||||
];
|
||||
}
|
28
nix/modules/home-manager/desktop/flameshot.nix
Normal file
28
nix/modules/home-manager/desktop/flameshot.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
31
nix/modules/home-manager/desktop/gtk.nix
Normal file
31
nix/modules/home-manager/desktop/gtk.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
9
nix/modules/home-manager/desktop/media/default.nix
Normal file
9
nix/modules/home-manager/desktop/media/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
imports = [
|
||||
./gimp.nix
|
||||
./handbrake.nix
|
||||
./kdenlive.nix
|
||||
./mpv.nix
|
||||
./pocket-casts.nix
|
||||
];
|
||||
}
|
16
nix/modules/home-manager/desktop/media/gimp.nix
Normal file
16
nix/modules/home-manager/desktop/media/gimp.nix
Normal 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 ];
|
||||
};
|
||||
}
|
16
nix/modules/home-manager/desktop/media/handbrake.nix
Normal file
16
nix/modules/home-manager/desktop/media/handbrake.nix
Normal 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 ];
|
||||
};
|
||||
}
|
16
nix/modules/home-manager/desktop/media/kdenlive.nix
Normal file
16
nix/modules/home-manager/desktop/media/kdenlive.nix
Normal 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 ];
|
||||
};
|
||||
}
|
19
nix/modules/home-manager/desktop/media/mpv.nix
Normal file
19
nix/modules/home-manager/desktop/media/mpv.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
16
nix/modules/home-manager/desktop/media/pocket-casts.nix
Normal file
16
nix/modules/home-manager/desktop/media/pocket-casts.nix
Normal 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 ];
|
||||
};
|
||||
}
|
16
nix/modules/home-manager/desktop/slack.nix
Normal file
16
nix/modules/home-manager/desktop/slack.nix
Normal 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 ];
|
||||
};
|
||||
}
|
16
nix/modules/home-manager/desktop/zoom.nix
Normal file
16
nix/modules/home-manager/desktop/zoom.nix
Normal 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 ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue