Compare commits

...

3 commits

40 changed files with 639 additions and 425 deletions

View file

@ -14,7 +14,7 @@
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
imports = [ imports = [
./modules ./modules
# ./options.nix
]; ];
environment.pathsToLink = [ environment.pathsToLink = [

12
home/apps/default.nix Normal file
View file

@ -0,0 +1,12 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [
./terminal
];
}

View file

@ -8,5 +8,6 @@
{ {
imports = [ imports = [
./kitty.nix ./kitty.nix
./ranger.nix
]; ];
} }

View file

@ -2,6 +2,7 @@
config, config,
lib, lib,
pkgs, pkgs,
osConfig,
... ...
}: }:

View file

@ -8,5 +8,6 @@
{ {
imports = [ imports = [
./desktop ./desktop
./apps
]; ];
} }

View file

@ -8,12 +8,20 @@
}: }:
{ {
config = lib.mkIf osConfig.desktop.shell.noctalia.enable { imports =
if true then
[
inputs.noctalia.homeModules.default
]
else
[ ];
config = {
programs.noctalia-shell =
if osConfig.desktop.shell.noctalia.enable then
{
enable = true;
}
else
{ };
}; };
imports = lib.mkIf osConfig.desktop.shell.noctalia.enable [
inputs.noctalia.homeModules.default
]
} }

View file

@ -8,19 +8,27 @@
}: }:
{ {
config = lib.mkIf osConfig.desktop.shell.walker.enable { config =
programs = { if osConfig.desktop.shell.walker.enable then
walker = { {
enable = true; programs = {
runAsService = true; walker = {
config = { enable = true;
theme = "noctalia"; runAsService = true;
config = {
theme = "noctalia";
};
};
}; };
}; }
}; else
}; { };
imports = lib.mkIf osConfig.desktop.shell.walker.enable [ imports =
inputs.walker.homeManagerModules.default if osConfig.desktop.shell.walker.enable then
] [
inputs.walker.homeManagerModules.default
]
else
[ ];
} }

View file

@ -11,6 +11,7 @@
options = { options = {
desktop = { desktop = {
hyprland = { hyprland = {
enable = lib.mkEnableOption "enable hyprland";
monitors = lib.mkOption { monitors = lib.mkOption {
default = [ default = [
",preferred,auto,1" ",preferred,auto,1"
@ -44,7 +45,7 @@
}; };
}; };
config = lib.mkIf osConfig.desktop.hyprland.enable { config = lib.mkIf osConfig.desktop.window-managers.hyprland.enable {
xdg.portal = { xdg.portal = {
enable = true; enable = true;
configPackages = [ configPackages = [
@ -97,9 +98,9 @@
(lib.mkIf (osConfig.desktop.shell.rofi.enable) "$mod, D, exec, rofi -show drun") (lib.mkIf (osConfig.desktop.shell.rofi.enable) "$mod, D, exec, rofi -show drun")
"$mod, return, exec, ${osConfig.apps.terminal.binary}" "$mod, return, exec, ${osConfig.apps.terminal.binary}"
(lib.mkIf (osConfig.desktop.utilities.grimblast.enable) ", print, exec, GRIMBLAST_EDITOR=gradia grimblast edit area") (lib.mkIf (osConfig.desktop.utilities.grimblast.enable) ", print, exec, GRIMBLAST_EDITOR=gradia grimblast edit area")
(lib.mkIf (osConfig.desktop.shell.walker.enable) ( (lib.mkIf (osConfig.desktop.shell.walker.enable && osConfig.misc.bitwarden.enable)
lib.mkIf (osConfig.misc.bitwarden.enable) "$mod, B, exec, rbw unlocked || kitty --class kitty-floating -e rbw unlock; selected=$(rbw list | walker -d); wl-copy $(rbw get \"$selected\"); sleep 30; rbw lock" "$mod, B, exec, rbw unlocked || kitty --class kitty-floating -e rbw unlock; selected=$(rbw list | walker -d); wl-copy $(rbw get \"$selected\"); sleep 30; rbw lock"
)) )
"$mod, F, fullscreen, 1" "$mod, F, fullscreen, 1"
"$shiftmod, F, fullscreen, 0" "$shiftmod, F, fullscreen, 0"
"$shiftmod, Q, killactive," "$shiftmod, Q, killactive,"

View file

@ -7,106 +7,103 @@
... ...
}: }:
let let
modifier = lib.mkIf (${osConfig.keybinds.modifier} == "Meta") "Mod"; modifier = if (osConfig.keybinds.modifier == "Meta") then "Mod" else null;
kb-layout = builtins.substring 0 2 osConfig.system.locale; kb-layout = builtins.substring 0 2 osConfig.system.locale;
in in
{ {
options = { config =
desktop.window-managers = { if osConfig.desktop.window-managers.niri.enable then
niri = { {
}; home.file = {
}; "~/.config/niri/config.kdl" = ''
input {
}; keyboard {
config = lib.mkIf osConfig.desktop.window-managers.niri.enable { xkb {
home.file = { layout "${kb-layout}"
"~/.config/niri/config.kdl" = '' }
input { repeat-delay 600
repeat-rate 20
track-layout "global"
}
touchpad {
tap
dwt
accel-profile "flat"
accel-speed 0.0
scroll-method "two-finger"
keyboard { }
xkb { mouse {
layout "${kb-layout}" accel-speed 0.5
} accel-profile "flat"
repeat-delay 600
repeat-rate 20
track-layout "global"
}
touchpad {
tap
dwt
accel-profile "flat"
accel-speed 0.0
scroll-method "two-finger"
} }
mouse { }
accel-speed 0.5
accel-profile "flat"
} gestures {
} hot-corners {
off
gestures { }
hot-corners {
off }
}
cursor {
} hide-when-typing
hide-after-inactive-ms 2000
cursor { }
hide-when-typing
hide-after-inactive-ms 2000 xwayland-satellite {
} path "xwayland-satellite"
}
xwayland-satellite {
path "xwayland-satellite" hotkey-overlay {
} hide-not-bound
}
hotkey-overlay {
hide-not-bound binds {
} ${modifier}+Down cooldown-ms=150 { focus-workspace-down; }
${modifier}+Up cooldown-ms=150 { focus-workspace-up; }
binds { ${modifier}+${osConfig.keybinds.hotkeys.terminal} { spawn "${osConfig.terminal.binary}";}
${modifier}+Down cooldown-ms=150 { focus-workspace-down; } ${modifier}+Left {focus-column-left; }
${modifier}+Up cooldown-ms=150 { focus-workspace-up; } ${modifier}+Right {focus-column-right; }
${modifier}+${osConfig.keybinds.hotkeys.terminal} { spawn "${osConfig.terminal.binary}";} ${modifier}+${osConfig.keybinds.hotkeys.browser} { spawn "${osConfig.apps.browser.default}";}
${modifier}+Left {focus-column-left; } ${modifier}+${osConfig.keybinds.hotkeys.launcher} { spawn "${osConfig.desktop.window-managers.shell.launcher.default}";}
${modifier}+Right {focus-column-right; } Print { screenshot;}
${modifier}+${osConfig.keybinds.hotkeys.browser} { spawn "${osConfig.apps.browser.default}";} ${modifier}+Shift+${osConfig.keybinds.hotkeys.close-window} { close-window; }
${modifier}+${osConfig.keybinds.hotkeys.launcher} { spawn "${osConfig.desktop.window-managers.shell.launcher.default}";} ${modifier}+Shift+${osConfig.keybinds.hotkeys.editor} { spawn "${osConfig.apps.development.editor.default}";}
Print { screenshot;} }
${modifier}+Shift+${osConfig.keybinds.hotkeys.close-window} { close-window; }
${modifier}+Shift+${osConfig.keybinds.hotkeys.editor} { spawn "${osConfig.apps.development.editor.default}";} spawn-at-startup "elephant"
} spawn-at-startup "noctalia-shell"
spawn-at-startup "elephant"
spawn-at-startup "noctalia-shell" layout {
gaps 20
focus-ring {
layout { width 5
gaps 20 }
focus-ring { border {
width 5 off
} }
border { }
off window-rule {
} geometry-corner-radius 20
} clip-to-geometry true
window-rule { }
geometry-corner-radius 20
clip-to-geometry true
} prefer-no-csd
include "noctalia.kdl"
prefer-no-csd
include "noctalia.kdl" '';
};
}
''; else
}; { };
};
} }

View file

@ -3,70 +3,68 @@
pkgs, pkgs,
lib, lib,
inputs, inputs,
osConfig,
... ...
}: }:
{ {
options = { config =
desktop.window-managers = { if osConfig.desktop.window-managers.sway.enable then
sway = { {
}; wayland.windowManager.sway = {
}; enable = true;
package = pkgs.swayfx;
config = {
modifier = "Mod4";
startup = [
{ command = "elephant"; }
];
keybindings =
let
modifier = config.wayland.windowManager.sway.config.modifier;
in
{
"${modifier}+Return" = "exec ${config.wayland.windowManager.sway.config.terminal}";
"${modifier}+Shift+q" = "kill";
"${modifier}+d" = "exec walker";
"${modifier}+o" = "exec zen";
"${modifier}+Control+right" = "exec /home/marty/.config/sway/scripts/workspaceswitcher right";
"${modifier}+Control+left" = "exec /home/marty/.config/sway/scripts/workspaceswitcher left";
"${modifier}+f" = "fullscreen";
}; "${modifier}+1" = "workspace number 1";
config = lib.mkIf osConfig.desktop.window-managers.sway.enable { "${modifier}+2" = "workspace number 2";
wayland.windowManager.sway = { "${modifier}+3" = "workspace number 3";
enable = true; "${modifier}+4" = "workspace number 4";
package = pkgs.swayfx; "${modifier}+5" = "workspace number 5";
config = { "${modifier}+6" = "workspace number 6";
modifier = "Mod4"; "${modifier}+7" = "workspace number 7";
startup = [ "${modifier}+8" = "workspace number 8";
{ command = "elephant"; } "${modifier}+9" = "workspace number 9";
]; "${modifier}+s" = "workspace number 0";
keybindings =
let
modifier = config.wayland.windowManager.sway.config.modifier;
in
{
"${modifier}+Return" = "exec ${config.wayland.windowManager.sway.config.terminal}";
"${modifier}+Shift+q" = "kill";
"${modifier}+d" = "exec walker";
"${modifier}+o" = "exec zen";
"${modifier}+Control+right" = "exec /home/marty/.config/sway/scripts/workspaceswitcher right";
"${modifier}+Control+left" = "exec /home/marty/.config/sway/scripts/workspaceswitcher left";
"${modifier}+f" = "fullscreen";
"${modifier}+1" = "workspace number 1"; "${modifier}+Shift+1" = "move container to workspace number 1";
"${modifier}+2" = "workspace number 2"; "${modifier}+Shift+2" = "move container to workspace number 2";
"${modifier}+3" = "workspace number 3"; "${modifier}+Shift+3" = "move container to workspace number 3";
"${modifier}+4" = "workspace number 4"; "${modifier}+Shift+4" = "move container to workspace number 4";
"${modifier}+5" = "workspace number 5"; "${modifier}+Shift+5" = "move container to workspace number 5";
"${modifier}+6" = "workspace number 6"; "${modifier}+Shift+6" = "move container to workspace number 6";
"${modifier}+7" = "workspace number 7"; "${modifier}+Shift+7" = "move container to workspace number 7";
"${modifier}+8" = "workspace number 8"; "${modifier}+Shift+8" = "move container to workspace number 8";
"${modifier}+9" = "workspace number 9"; "${modifier}+Shift+9" = "move container to workspace number 9";
"${modifier}+s" = "workspace number 0"; "${modifier}+Shift+s" = "move container to workspace number 0";
};
"${modifier}+Shift+1" = "move container to workspace number 1"; input = {
"${modifier}+Shift+2" = "move container to workspace number 2"; "*" = {
"${modifier}+Shift+3" = "move container to workspace number 3"; xkb_layout = builtins.substring 0 2 osConfig.system.locale;
"${modifier}+Shift+4" = "move container to workspace number 4"; };
"${modifier}+Shift+5" = "move container to workspace number 5"; };
"${modifier}+Shift+6" = "move container to workspace number 6"; defaultWorkspace = "workspace number 1";
"${modifier}+Shift+7" = "move container to workspace number 7"; terminal = osConfig.desktop.defaults.terminal.binary;
"${modifier}+Shift+8" = "move container to workspace number 8";
"${modifier}+Shift+9" = "move container to workspace number 9";
"${modifier}+Shift+s" = "move container to workspace number 0";
};
input = {
"*" = {
xkb_layout = builtins.substring 0 2 osConfig.system.locale;
}; };
checkConfig = false;
}; };
defaultWorkspace = "workspace number 1"; }
terminal = osConfig.desktop.defaults.terminal.binary; else
}; { };
checkConfig = false;
};
};
} }

View file

@ -40,7 +40,7 @@
}; };
imports = [ imports = [
./../../modules ./../../home
]; ];
programs.home-manager.enable = true; programs.home-manager.enable = true;
} }

View file

@ -16,11 +16,26 @@
}; };
config = { config = {
environment.systemPackages = with pkgs; [ environment.systemPackages =
(lib.mkIf (apps.audio.base.enable) pavucontrol) with pkgs;
(lib.mkIf (apps.audio.base.enable) playerctl) [ ]
(lib.mkIf (apps.audio.editing.enable) tenacity) ++ (
(lib.mkIf (apps.audio.editing.enable) flac) if (config.apps.audio.base.enable) then
]; [
pavucontrol
playerctl
]
else
[ ]
)
++ (
if (config.apps.audio.editing.enable) then
[
tenacity
flac
]
else
[ ]
);
}; };
} }

View file

@ -14,6 +14,7 @@
./misc ./misc
./peripherals ./peripherals
./video ./video
./sync
./terminal ./terminal
]; ];
} }

View file

@ -7,7 +7,6 @@
{ {
imports = [ imports = [
./git.nix
./editor.nix ./editor.nix
./godot.nix ./godot.nix
./languages.nix ./languages.nix

View file

@ -11,44 +11,54 @@
editor = { editor = {
vscodium.enable = lib.mkEnableOption "enable vscodium"; vscodium.enable = lib.mkEnableOption "enable vscodium";
emacs.enable = lib.mkEnableOption "enable emacs"; emacs.enable = lib.mkEnableOption "enable emacs";
default = "vscodium"; default = lib.mkOption {
default = "vscodium";
description = "default editor";
};
}; };
}; };
}; };
config = { config = {
environment.systemPackages = with pkgs; [ environment.systemPackages =
(lib.mkIf config.development.editor.vscodium.enable vscodium) with pkgs;
nixfmt [
]; nixfmt
]
++ (if config.development.editor.vscodium.enable then [ vscodium ] else [ ]);
programs = { programs = {
vscode = lib.mkIf config.development.editor.vscodium.enable { vscode =
enable = true; if config.development.editor.vscodium.enable then
package = pkgs.vscodium; {
defaultEditor = lib.mkIf (config.development.editor.default == "vscodium") true; enable = true;
profiles.default.extensions = with pkgs.vscode-extensions; [ package = pkgs.vscodium;
catppuccin.catppuccin-vsc defaultEditor = if (config.development.editor.default == "vscodium") then true else false;
catppuccin.catppuccin-vsc-icons # profiles.default.extensions = with pkgs.vscode-extensions; [
jnoortheen.nix-ide # catppuccin.catppuccin-vsc
alefragnani.project-manager # catppuccin.catppuccin-vsc-icons
naumovs.color-highlight # jnoortheen.nix-ide
geequlim.godot-tools # alefragnani.project-manager
stylelint.vscode-stylelint # naumovs.color-highlight
ecmel.vscode-html-css # geequlim.godot-tools
esbenp.prettier-vscode # stylelint.vscode-stylelint
]; # ecmel.vscode-html-css
}; # esbenp.prettier-vscode
# ];
}
else
{ };
}; };
services = { services = {
emacs = lib.mkIf config.development.editor.emacs.enable { emacs =
enable = true; if config.development.editor.emacs.enable then
install = true; {
defaultEditor = lib.mkIf (config.development.editor.default == "emacs") true; enable = true;
}; install = true;
}; defaultEditor = if (config.development.editor.default == "emacs") then true else false;
home.sessionVariables = { }
EDITOR = lib.mkDefault "codium"; else
{ };
}; };
}; };
} }

View file

@ -12,9 +12,14 @@
}; };
}; };
config = lib.mkIf config.apps.development.godot.enable { config = {
systemPackages = with pkgs; [ environment.systemPackages =
godot if config.apps.development.godot.enable then
]; with pkgs;
[
godot
]
else
[ ];
}; };
} }

View file

@ -8,13 +8,15 @@
{ {
options = { options = {
apps.development.languages = { apps.development.languages = {
python = lib.mkEnableOption "enable python"; python.enable = lib.mkEnableOption "enable python";
}; };
}; };
config = { config = {
environment.systemPackages = with pkgs; [ environment.systemPackages =
(lib.mkIf lib.mkIf config.development.languages.python.enable virtualenv) with pkgs;
]; [
]
++ (if config.apps.development.languages.python.enable then [ virtualenv ] else [ ]);
}; };
} }

View file

@ -6,8 +6,65 @@
}: }:
{ {
imports = [ options = {
./steam.nix apps.gaming = {
./minecraft.nix enable = lib.mkEnableOption "enable gaming";
]; steam.enable = lib.mkEnableOption "enable steam";
minecraft.enable = lib.mkEnableOption "enable minecraft";
};
};
config = {
environment.systemPackages =
with pkgs;
[ ]
++ (
if (config.apps.gaming.enable) then
[
cartridges
lutris
]
else
[ ]
)
++ (
if (config.apps.gaming.minecraft.enable) then
[ prismlauncher ]
else
[ ]
)
++ (
if (config.apps.gaming.steam.enable) then
[ adwsteamgtk ]
else
[ ]
);
programs = {
steam =
if config.apps.gaming.steam.enable then
{
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
gamescopeSession.enable = true;
protontricks.enable = true;
extraCompatPackages = with pkgs; [
proton-ge-bin
];
extraPackages = with pkgs; [
gamescope
];
}
else
{ };
gamescope = {
enable = true;
capSysNice = true;
};
};
};
} }

View file

@ -1,20 +0,0 @@
{
config,
lib,
pkgs,
...
}:
{
options = {
apps.gaming = {
minecraft.enable = lib.mkEnableOption "enable minecraft";
};
};
config = lib.mkIf config.apps.gaming.minecraft.enable {
environment.systemPackages = with pkgs; [
prismlauncher
];
};
}

View file

@ -1,41 +0,0 @@
{
config,
lib,
pkgs,
...
}:
{
options = {
apps.gaming = {
steam.enable = lib.mkEnableOption "enable steam";
};
};
config = lib.mkIf config.apps.gaming.steam.enable {
environment.systemPackages = with pkgs; [
adwsteamgtk
];
programs = {
steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
gamescopeSession.enable = true;
protontricks.enable = true;
extraCompatPackages = with pkgs; [
proton-ge-bin
];
extraPackages = with pkgs; [
gamescope
];
};
gamescope = {
enable = true;
capSysNice = true;
};
};
};
}

View file

@ -15,10 +15,25 @@
}; };
config = { config = {
environment.systemPackages = with pkgs; [ environment.systemPackages =
(lib.mkIf (apps.image.base.enable) nomacs) with pkgs;
(lib.mkIf (apps.image.editing.enable) gimp3-with-plugins) [ ]
(lib.mkIf (apps.image.editing.enable) krita) ++ (
]; if (config.apps.image.base.enable) then
[ nomacs ]
else
[ ]
)
++ (
if (config.apps.image.editing.enable) then
[
gimp3-with-plugins
krita
]
else
[ ]
);
}; };
} }

View file

@ -26,9 +26,19 @@
}; };
config = { config = {
environment.systemPackages = [ environment.systemPackages =
(lib.mkIf config.apps.internet.browsers.zen-browser.enable config.apps.internet.browsers.zen-browser.package) [ ]
(lib.mkIf config.apps.internet.browsers.tor-browser.enable config.apps.internet.browsers.tor-browser.package) ++ (
]; if config.apps.internet.browsers.zen-browser.enable then
[ config.apps.internet.browsers.zen-browser.package ]
else
[ ]
)
++ (
if config.apps.internet.browsers.tor-browser.enable then
[ config.apps.internet.browsers.tor-browser.package ]
else
[ ]
);
}; };
} }

View file

@ -16,16 +16,43 @@
}; };
config = { config = {
environment.systemPackages = with pkgs; [ environment.systemPackages =
(lib.mkIf (config.apps.misc.obsidian.enable) obsidian) with pkgs;
(lib.mkIf (config.apps.misc.bitwarden.enable) rbw ( [
lib.mkIf (config.desktop.shell.rofi.enable) pinentry-curses rofi-rbw libsecret
)) gcr_4
(lib.mkIf (config.apps.misc.blender.enable) blender) pass
libsecret ]
gcr_4 ++ (
pass if (config.apps.misc.obsidian.enable) then
];
[ obsidian ]
else
[ ]
)
++ (
if (config.apps.misc.bitwarden.enable) then
[ rbw ]
++ (
if (config.desktop.shell.rofi.enable) then
[
pinentry-curses
rofi-rbw
]
else
[ ]
)
else
[ ]
)
++ (
if (config.apps.misc.blender.enable) then
[ blender ]
else
[ ]
);
programs = { programs = {
seahorse.enable = true; seahorse.enable = true;
}; };

View file

@ -31,22 +31,30 @@
}; };
config = { config = {
programs = { programs = {
kdeconnect = lib.mkIf config.apps.sync.kde-connect.enable { kdeconnect =
enable = true; if config.apps.sync.kde-connect.enable then
}; {
enable = true;
}
else
{ };
}; };
services = { services = {
syncthing = lib.mkIf config.apps.sync.syncthing.enable { syncthing =
enable = true; if config.apps.sync.syncthing.enable then
tray.enable = true; {
guiAddress = "0.0.0.0:8384"; enable = true;
settings = { tray.enable = true;
devices = config.apps.sync.syncthing.devices; guiAddress = "0.0.0.0:8384";
folders = config.apps.sync.syncthing.folders; settings = {
}; devices = config.apps.sync.syncthing.devices;
overrideDevices = lib.mkIf (config.apps.sync.syncthing.devices == { }) false; folders = config.apps.sync.syncthing.folders;
overrideFolders = lib.mkIf (config.apps.sync.syncthing.folders == { }) false; };
}; overrideDevices = if (config.apps.sync.syncthing.devices == { }) then false else true;
overrideFolders = if (config.apps.sync.syncthing.folders == { }) then false else true;
}
else
{ };
}; };
}; };
} }

View file

@ -19,15 +19,20 @@
bc bc
openssl openssl
] ]
++ lib.mkIf config.apps.terminal.toys [ ++ (
if config.apps.terminal.toys then
[
asciiquarium-transparent asciiquarium-transparent
cava cava
bunnyfetch bunnyfetch
nerdfetch nerdfetch
fastfetch fastfetch
cmatrix cmatrix
astroterm astroterm
]; ]
else
[ ]
);
}; };
} }

View file

@ -13,13 +13,25 @@
}; };
}; };
config = lib.mkIf config.apps.terminal.kitty.enable { config = {
terminal = lib.mkIf (config.apps.terminal.default == "kitty") { # apps.terminal =
package = pkgs.kitty; # if (config.apps.terminal.default == "kitty") then
binary = "${pkgs.kitty}/bin/kitty"; # {
}; # package = pkgs.kitty;
environment.systemPackages = with pkgs; [ # binary = "${pkgs.kitty}/bin/kitty";
kitty # }
]; # else
# { };
environment.systemPackages =
with pkgs;
[ ]
++ (
if config.apps.terminal.kitty.enable then
[
kitty
]
else
[ ]
);
}; };
} }

View file

@ -18,8 +18,16 @@ in
}; };
config = { config = {
environment.systemPackages = with pkgs; [ environment.systemPackages =
(lib.mkIf (tt.ranger.enable) ranger) with pkgs;
]; [
]
++ (
if tt.ranger.enable then
[ ranger ]
else
[ ]
);
}; };
} }

View file

@ -16,11 +16,32 @@
}; };
config = { config = {
environment.systemPackages = with pkgs; [ environment.systemPackages =
(lib.mkIf (apps.video.base.enable) mpv) with pkgs;
(lib.mkIf (apps.video.editing.enable) kdePackages.kdenlive) [ ]
(lib.mkIf (apps.video.media.enable) jellyfin-desktop) ++ (
(lib.mkIf (apps.video.media.enable) pipeline) if config.apps.video.base.enable then
];
[ mpv ]
else
[ ]
)
++ (
if config.apps.video.editing.enable then
[ kdePackages.kdenlive ]
else
[ ]
)
++ (
if config.apps.video.media.enable then
[
jellyfin-desktop
pipeline
]
else
[ ]
);
}; };
} }

View file

@ -30,22 +30,35 @@
programs = { programs = {
uwsm = { uwsm = {
waylandCompositors = { waylandCompositors = {
hyprland = lib.mkIf config.desktop.window-managers.hyprland.enable { hyprland =
prettyName = "Hyprland"; if config.desktop.window-managers.hyprland.enable then
comment = "Hyprland"; {
binPath = "${config.programs.hyprland.package}/bin/start-hyprland"; prettyName = "Hyprland";
}; comment = "Hyprland";
sway = lib.mkIf config.desktop.window-managers.sway.enable { binPath = "${config.programs.hyprland.package}/bin/start-hyprland";
prettyName = "Sway"; }
comment = "Sway"; else
binPath = "${config.programs.sway.package}/bin/sway --session"; { };
}; sway =
niri = lib.mkIf config.desktop.window-managers.niri.enable { if config.desktop.window-managers.sway.enable then
prettyName = "Niri"; {
comment = "Niri"; prettyName = "Sway";
binPath = "${config.programs.niri.package}/bin/niri-session"; comment = "Sway";
}; binPath = "${config.programs.sway.package}/bin/sway --session";
}
else
{ };
niri =
if config.desktop.window-managers.niri.enable then
{
prettyName = "Niri";
comment = "Niri";
binPath = "${config.programs.niri.package}/bin/niri-session";
}
else
{ };
}; };
}; };
}; };
xdg.portal.enable = true;
} }

View file

@ -12,20 +12,23 @@
walker.enable = lib.mkEnableOption "enable walker"; walker.enable = lib.mkEnableOption "enable walker";
rofi.enable = lib.mkEnableOption "enable rofi"; rofi.enable = lib.mkEnableOption "enable rofi";
launcher = lib.mkOption { launcher = lib.mkOption {
default = (lib.mkIf config.desktop.shell.walker.enable "walker"); default = (if config.desktop.shell.walker.enable then "walker" else null);
description = "default launcher"; description = "default launcher";
}; };
}; };
}; };
config = { config = {
programs = { environment.systemPackages =
walker = lib.mkIf config.desktop.shell.walker.enable { with pkgs;
enable = true; [
}; ]
}; ++ (
environment.systemPackages = with pkgs; [ if config.desktop.shell.rofi.enable then
(lib.mkIf (config.desktop.shell.rofi.enable) rofi)
]; [ rofi ]
else
[ ]
);
}; };
} }

View file

@ -12,13 +12,4 @@
noctalia.enable = lib.mkEnableOption "enable noctalia"; noctalia.enable = lib.mkEnableOption "enable noctalia";
}; };
}; };
imports = lib.mkIf config.desktop.shell.noctalia.enable [
inputs.noctalia.homeModules.default
];
config = lib.mkIf config.desktop.shell.noctalia.enable {
desktop.shell.swww.enable = lib.mkDefault false;
programs.noctalia-shell = {
enable = true;
};
};
} }

View file

@ -13,10 +13,20 @@
}; };
}; };
config = lib.mkIf config.desktop.shell.swww.enable { config =
environment.systemPackages = with pkgs; [
waypaper {
swww environment.systemPackages =
]; with pkgs;
}; [ ]
++ (
if config.desktop.shell.swww.enable then
[
waypaper
swww
]
else
[ ]
);
};
} }

View file

@ -12,11 +12,15 @@
}; };
}; };
config = lib.mkIf config.desktop.shell.waybar.enable { config = {
programs = { programs =
waybar = { if config.desktop.shell.waybar.enable then
enable = true; {
}; waybar = {
}; enable = true;
};
}
else
{ };
}; };
} }

View file

@ -13,10 +13,21 @@
}; };
}; };
config = lib.mkIf config.desktop.utilities.grimblast.enable { config =
environment.systemPackages = with pkgs; [
grimblast {
gradia environment.systemPackages =
]; with pkgs;
}; [ ]
++ (
if config.desktop.utilities.grimblast.enable then
with pkgs;
[
grimblast
gradia
]
else
[ ]
);
};
} }

View file

@ -14,14 +14,20 @@
}; };
}; };
}; };
config = lib.mkIf config.desktop.window-managers.hyprland.enable { config =
programs.hyprland = {
enable = true; {
withUWSM = true; programs.hyprland =
xwayland.enable = true; if config.desktop.window-managers.hyprland.enable then
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland; {
portalPackage = enable = true;
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland; withUWSM = true;
xwayland.enable = true;
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
portalPackage =
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
}
else
{ };
}; };
};
} }

View file

@ -13,13 +13,24 @@
}; };
}; };
}; };
config = lib.mkIf config.desktop.window-managers.niri.enable { config = {
services.gnome.gnome-keyring.enable = true; environment.systemPackages =
environment.systemPackages = with pkgs; [ with pkgs;
xwayland-satellite [ ]
]; ++ (
programs.niri = { if config.desktop.window-managers.niri.enable then
enable = true; [
}; xwayland-satellite
]
else
[ ]
);
programs.niri =
if config.desktop.window-managers.niri.enable then
{
enable = true;
}
else
{ };
}; };
} }

View file

@ -13,12 +13,15 @@
}; };
}; };
}; };
config = lib.mkIf config.desktop.window-managers.sway.enable { config = {
services.gnome.gnome-keyring.enable = true; programs.sway =
programs.sway = { if config.desktop.window-managers.sway.enable then
enable = true; {
wrapperFeatures.gtk = true; enable = true;
package = null; wrapperFeatures.gtk = true;
}; package = null;
}
else
{ };
}; };
} }

View file

@ -8,6 +8,7 @@
{ {
imports = [ imports = [
./boot.nix ./boot.nix
./git.nix
./shell.nix ./shell.nix
./networking.nix ./networking.nix
./localization.nix ./localization.nix

View file

@ -10,7 +10,7 @@
programs = { programs = {
git = { git = {
enable = true; enable = true;
settings = { config = {
init = { init = {
defaultBranch = "main"; defaultBranch = "main";
}; };

View file

@ -2,7 +2,7 @@
{ {
networking = { networking = {
domain = config.domain; domain = "maty.tf";
networkmanager.enable = true; networkmanager.enable = true;
firewall = { firewall = {
enable = true; enable = true;