This commit is contained in:
martyTF 2026-03-29 08:16:58 +02:00
parent 00da286651
commit a9a77e75fe
12 changed files with 307 additions and 3 deletions

7
modules/README.md Normal file
View file

@ -0,0 +1,7 @@
# MODULES
todo:
- [ ] move home-manager stuff to ../home
- [ ] add server stuff
-> seperate home manager stuff from normal nix stuff, use home manager purely for dotfiles, use modules to install stuff

View file

@ -0,0 +1,3 @@
# HOME
only for dotfiles, no longer installing stuff from here

29
modules/desktop/niri.nix Normal file
View file

@ -0,0 +1,29 @@
{
config,
pkgs,
lib,
...
}:
{
options = {
desktop = {
niri = {
enable = lib.mkEnableOption "enable niri";
};
};
};
config = lib.mkIf config.desktop.niri.enable {
# Enable the gnome-keyring secrets vault.
# Will be exposed through DBus to programs willing to store secrets.
services.gnome.gnome-keyring.enable = true;
environment.systemPackages = with pkgs; [
xwayland-satellite
niri
];
programs.niri = {
enable = true;
};
};
}

33
modules/desktop/sway.nix Normal file
View file

@ -0,0 +1,33 @@
{
config,
pkgs,
lib,
...
}:
{
options = {
desktop = {
sway = {
enable = lib.mkEnableOption "enable sway";
};
};
};
config = lib.mkIf config.desktop.sway.enable {
environment.systemPackages = with pkgs; [
grim # screenshot functionality
slurp # screenshot functionality
wl-clipboard # wl-copy and wl-paste for copy/paste from stdin / stdout
];
# Enable the gnome-keyring secrets vault.
# Will be exposed through DBus to programs willing to store secrets.
services.gnome.gnome-keyring.enable = true;
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
package = null;
};
};
}

View file

@ -62,7 +62,6 @@
inactive_text_alpha = 0.5;
hide_window_decorations = "no";
themeFile = "Catppuccin-Mocha";
# tab bar