Make configuration more modular
This commit is contained in:
parent
2995c006ed
commit
384da2a640
17 changed files with 97 additions and 72 deletions
lib/nixos/home-manager
|
@ -7,37 +7,12 @@
|
|||
imports = [
|
||||
./modules/alacritty.nix
|
||||
./modules/autorandr.nix
|
||||
./modules/copyq.nix
|
||||
./modules/dunst.nix
|
||||
./modules/espanso.nix
|
||||
./modules/feh.nix
|
||||
./modules/flameshot.nix
|
||||
./modules/i3.nix
|
||||
./modules/rofi.nix
|
||||
];
|
||||
|
||||
services.dunst = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
global = {
|
||||
follow = "keyboard";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.copyq.enable = true;
|
||||
|
||||
services.flameshot = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
General = {
|
||||
disabledTrayIcon = false;
|
||||
saveAfterCopy = true;
|
||||
savePath = "/home/${username}/Pictures/Screenshots";
|
||||
showHelp = false;
|
||||
uiColor = "#60a5fa";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.feh.enable = true;
|
||||
|
||||
programs.rofi.enable = true;
|
||||
}
|
||||
|
|
3
lib/nixos/home-manager/modules/copyq.nix
Normal file
3
lib/nixos/home-manager/modules/copyq.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
services.copyq.enable = true;
|
||||
}
|
11
lib/nixos/home-manager/modules/dunst.nix
Normal file
11
lib/nixos/home-manager/modules/dunst.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
services.dunst = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
global = {
|
||||
follow = "keyboard";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
3
lib/nixos/home-manager/modules/feh.nix
Normal file
3
lib/nixos/home-manager/modules/feh.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
programs.feh.enable = true;
|
||||
}
|
15
lib/nixos/home-manager/modules/flameshot.nix
Normal file
15
lib/nixos/home-manager/modules/flameshot.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{username, ...}: {
|
||||
services.flameshot = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
General = {
|
||||
disabledTrayIcon = false;
|
||||
saveAfterCopy = true;
|
||||
savePath = "/home/${username}/Pictures/Screenshots";
|
||||
showHelp = false;
|
||||
uiColor = "#60a5fa";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
3
lib/nixos/home-manager/modules/rofi.nix
Normal file
3
lib/nixos/home-manager/modules/rofi.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
programs.rofi.enable = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue