split hm config

This commit is contained in:
lucy 2026-09-01 19:04:53 +02:00
commit 9ed91ad8b6
7 changed files with 66 additions and 60 deletions

View file

@ -47,7 +47,7 @@
./modules/themeing
./modules/programs
];
home-manager.users.lucy = ./modules/hosts/base/home.nix;
home-manager.users.lucy = ./modules/home/default.nix;
}
];
in

7
modules/home/default.nix Normal file
View file

@ -0,0 +1,7 @@
{
imports = [
./home.nix
./gtk.nix
./services.nix
];
}

24
modules/home/gtk.nix Normal file
View file

@ -0,0 +1,24 @@
{ pkgs, config, inputs, ... }: {
gtk = {
enable = true;
colorScheme = "dark";
theme = {
name = "adw-gtk3-dark";
package = pkgs.adw-gtk3;
};
iconTheme = {
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
};
font = {
name = config.theming.font;
package = config.theming.fontPackage;
size = 12;
};
cursorTheme.name = "macOS";
cursorTheme.size = 24;
gtk3.extraCss = builtins.readFile (config.scheme inputs.tt-gtk);
gtk4.extraCss = builtins.readFile (config.scheme inputs.tt-gtk);
};
}

19
modules/home/home.nix Normal file
View file

@ -0,0 +1,19 @@
{
pkgs,
...
}:
{
home.packages = with pkgs; [
nixd
nixfmt
clang
kdePackages.qtdeclarative
];
home.stateVersion = "26.05";
home.pointerCursor = {
enable = true;
name = "macOS";
package = pkgs.apple-cursor;
size = 24;
};
}

14
modules/home/services.nix Normal file
View file

@ -0,0 +1,14 @@
{ pkgs, config, ... }: {
services.syncthing = {
enable = true;
settings = {
devices = {
cyberia = {
id = "OOJBAJU-AAIKLHO-BKMMHBU-2NXE75Z-HE64A6V-LET4ZXB-Q2FT2Y4-GZON3AD";
};
};
};
};
services.polkit-gnome.enable = true;
dconf.settings."org/gnome/desktop/interface".color-scheme = "prefer-dark";
}

View file

@ -1,59 +0,0 @@
{
inputs,
pkgs,
config,
...
}:
let
c = config.scheme.withHashtag;
in
{
home.packages = with pkgs; [
nixd
nixfmt
clang
kdePackages.qtdeclarative
];
home.stateVersion = "26.05";
home.pointerCursor = {
enable = true;
name = "macOS";
package = pkgs.apple-cursor;
size = 24;
};
services.syncthing = {
enable = true;
settings = {
devices = {
cyberia = {
id = "OOJBAJU-AAIKLHO-BKMMHBU-2NXE75Z-HE64A6V-LET4ZXB-Q2FT2Y4-GZON3AD";
};
};
};
};
gtk = {
enable = true;
colorScheme = "dark";
theme = {
name = "adw-gtk3-dark";
package = pkgs.adw-gtk3;
};
iconTheme = {
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
};
font = {
name = config.theming.font;
package = config.theming.fontPackage;
size = 12;
};
cursorTheme.name = "macOS";
cursorTheme.size = 24;
gtk3.extraCss = builtins.readFile (config.scheme inputs.tt-gtk);
gtk4.extraCss = builtins.readFile (config.scheme inputs.tt-gtk);
};
services.polkit-gnome.enable = true; # polkit
dconf.settings."org/gnome/desktop/interface".color-scheme = "prefer-dark";
}

1
modules/programs/.#niri.nix Symbolic link
View file

@ -0,0 +1 @@
lucy@nerv.4230:1788254438