we just gettin started
just a few more modules, like bitwarden, syncthing, screenshots
This commit is contained in:
parent
6b87cd99c8
commit
5fa40025d0
23 changed files with 227 additions and 61 deletions
|
|
@ -9,7 +9,7 @@
|
|||
imports = [
|
||||
./development
|
||||
./terminal
|
||||
./window_manager
|
||||
./syncthing
|
||||
./desktop
|
||||
./misc
|
||||
];
|
||||
}
|
||||
|
|
|
|||
21
modules/desktop/audio.nix
Normal file
21
modules/desktop/audio.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
options = {
|
||||
desktop = {
|
||||
audio.enable = lib.mkEnableOption "enable audio";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktop.audio.enable {
|
||||
home.packages = with pkgs; [
|
||||
pavucontrol
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -10,6 +10,8 @@
|
|||
./hyprland.nix
|
||||
./walker.nix
|
||||
./waybar.nix
|
||||
./rofi.nix
|
||||
./wallpaper.nix
|
||||
./screenshot.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
{
|
||||
options = {
|
||||
window_manager = {
|
||||
hyprland= {
|
||||
desktop = {
|
||||
hyprland = {
|
||||
enable = lib.mkEnableOption "enable hyprland";
|
||||
monitors = lib.mkOption {
|
||||
default = [
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.window_manager.hyprland.enable {
|
||||
config = lib.mkIf config.desktop.hyprland.enable {
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
configPackages = [ pkgs.xdg-desktop-portal-hyprland ];
|
||||
|
|
@ -35,22 +35,23 @@
|
|||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
settings = {
|
||||
monitor = config.window_manager.hyprland.monitors;
|
||||
monitor = config.desktop.hyprland.monitors;
|
||||
exec-once = [
|
||||
(lib.mkIf (config.window_manager.walker.enable) "elephant")
|
||||
(lib.mkIf (config.window_manager.waybar.enable) "waybar")
|
||||
(lib.mkIf (config.window_manager.wallpaper.enable) "waypaper --restore --random")
|
||||
(lib.mkIf (config.desktop.walker.enable) "elephant")
|
||||
(lib.mkIf (config.desktop.waybar.enable) "waybar")
|
||||
(lib.mkIf (config.desktop.wallpaper.enable) "waypaper --restore --random")
|
||||
];
|
||||
"$mod" = "SUPER";
|
||||
"$shiftmod" = "SUPER_SHIFT";
|
||||
bind = [
|
||||
(lib.mkIf (config.window_manager.walker.enable) "$mod, D, exec, walker")
|
||||
(lib.mkIf (config.desktop.walker.enable) "$mod, D, exec, walker")
|
||||
(lib.mkIf (config.desktop.rofi.enable) "$mod, D, exec, rofi -show drun")
|
||||
(lib.mkIf (config.terminal.kitty.enable) "$mod, return, exec, kitty")
|
||||
"$shiftmod, Q, killactive,"
|
||||
];
|
||||
input = {
|
||||
kb_layout = "de";
|
||||
numlock_by_default = config.window_manager.hyprland.numlock;
|
||||
numlock_by_default = config.desktop.hyprland.numlock;
|
||||
follow_mouse = 2;
|
||||
mouse_refocus = false;
|
||||
accel_profile = "flat";
|
||||
29
modules/desktop/rofi.nix
Normal file
29
modules/desktop/rofi.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
options = {
|
||||
desktop = {
|
||||
rofi.enable = lib.mkEnableOption "enable rofi";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktop.rofi.enable {
|
||||
programs = {
|
||||
rofi = {
|
||||
enable = true;
|
||||
modes = [
|
||||
"drun"
|
||||
"run"
|
||||
"ssh"
|
||||
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
22
modules/desktop/screenshot.nix
Normal file
22
modules/desktop/screenshot.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
options = {
|
||||
desktop = {
|
||||
grimshot.enable = lib.mkEnableOption "enable grimshot";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktop.grimshot.enable {
|
||||
home.packages = with pkgs; [
|
||||
grimblast
|
||||
gradia
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -8,12 +8,12 @@
|
|||
|
||||
{
|
||||
options = {
|
||||
window_manager = {
|
||||
desktop = {
|
||||
walker.enable = lib.mkEnableOption "enable walker";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.window_manager.walker.enable {
|
||||
config = lib.mkIf config.desktop.walker.enable {
|
||||
programs = {
|
||||
walker = {
|
||||
enable = true;
|
||||
|
|
@ -8,12 +8,12 @@
|
|||
|
||||
{
|
||||
options = {
|
||||
window_manager = {
|
||||
desktop = {
|
||||
wallpaper.enable = lib.mkEnableOption "enable wallpapers";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.window_manager.wallpaper.enable {
|
||||
config = lib.mkIf config.desktop.wallpaper.enable {
|
||||
home.packages = with pkgs; [
|
||||
waypaper
|
||||
swww
|
||||
|
|
@ -7,12 +7,12 @@
|
|||
|
||||
{
|
||||
options = {
|
||||
window_manager = {
|
||||
desktop = {
|
||||
waybar.enable = lib.mkEnableOption "enable waybar";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.window_manager.waybar.enable {
|
||||
config = lib.mkIf config.desktop.waybar.enable {
|
||||
programs = {
|
||||
waybar = {
|
||||
enable = true;
|
||||
22
modules/misc/bitwarden.nix
Normal file
22
modules/misc/bitwarden.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
options = {
|
||||
misc = {
|
||||
bitwarden.enable = lib.mkEnableOption "enable bitwarden";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.misc.bitwarden.enable {
|
||||
home.packages = with pkgs; [
|
||||
rbw
|
||||
pinentry-curses
|
||||
(lib.mkIf (config.desktop.rofi.enable) rofi-rbw)
|
||||
];
|
||||
};
|
||||
}
|
||||
13
modules/misc/default.nix
Normal file
13
modules/misc/default.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./bitwarden.nix
|
||||
./syncthing.nix
|
||||
];
|
||||
}
|
||||
39
modules/misc/syncthing.nix
Normal file
39
modules/misc/syncthing.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
options = {
|
||||
syncthing.devices = lib.mkOption {
|
||||
default = { };
|
||||
description = ''
|
||||
set syncthing devices
|
||||
'';
|
||||
};
|
||||
syncthing.folders = lib.mkOption {
|
||||
default = { };
|
||||
description = ''
|
||||
set syncthing folders
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
services = {
|
||||
syncthing = {
|
||||
enable = true;
|
||||
tray.enable = true;
|
||||
guiAddress = "0.0.0.0:8384";
|
||||
settings = {
|
||||
devices = config.syncthing.devices;
|
||||
folders = config.syncthing.folders;
|
||||
};
|
||||
overrideDevices = lib.mkIf (config.syncthing.devices == { }) false;
|
||||
overrideFolders = lib.mkIf (config.syncthing.folders == { }) false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
options = {
|
||||
};
|
||||
|
||||
config = {
|
||||
services = {
|
||||
syncthing = {
|
||||
enable = true;
|
||||
tray.enable = true;
|
||||
guiAddress = "0.0.0.0:8384";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -8,8 +8,9 @@
|
|||
{
|
||||
imports = [
|
||||
./kitty.nix
|
||||
./ranger.nix
|
||||
./file-manager.nix
|
||||
./fish.nix
|
||||
./toys.nix
|
||||
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,10 @@
|
|||
{
|
||||
options = {
|
||||
terminal = {
|
||||
ranger.enable = lib.mkEnableOption "enable ranger";
|
||||
ranger = {
|
||||
enable = lib.mkEnableOption "enable ranger";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -18,5 +21,9 @@
|
|||
enable = true;
|
||||
};
|
||||
};
|
||||
home.packages = with pkgs; [
|
||||
unzip
|
||||
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -21,6 +21,6 @@
|
|||
fastfetch
|
||||
cmatrix
|
||||
astroterm
|
||||
]
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue