feat: add laptop stuff, restructure a bit
This commit is contained in:
parent
1dcba83a6a
commit
6d05d6a323
13 changed files with 556 additions and 13 deletions
41
modules/features/layers/cursors.nix
Normal file
41
modules/features/layers/cursors.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ self, inputs, ... }: {
|
||||
flake.nixosModules.cursors = { pkgs, lib, config, ... }: {
|
||||
options.cursor-users = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = [];
|
||||
description = "List of users to configure cursors for";
|
||||
};
|
||||
|
||||
config = {
|
||||
# Install cursor packages system-wide
|
||||
environment.systemPackages = with pkgs; [
|
||||
bibata-cursors
|
||||
];
|
||||
|
||||
# Set up XDG data directories for cursor themes
|
||||
environment.pathsToLink = [ "/share/icons" ];
|
||||
|
||||
# Configure hjem for specified users - set cursor theme in user config
|
||||
hjem = lib.mkIf (config.cursor-users != []) {
|
||||
users = lib.genAttrs config.cursor-users (username: {
|
||||
enable = true;
|
||||
files = {
|
||||
# GTK cursor settings
|
||||
".config/gtk-3.0/settings.ini".text = ''
|
||||
[Settings]
|
||||
gtk-cursor-theme-name=Bibata-Modern-Ice
|
||||
gtk-cursor-theme-size=24
|
||||
'';
|
||||
# X11/Wayland cursor environment
|
||||
".config/environment.d/cursor.conf".text = ''
|
||||
XCURSOR_THEME=Bibata-Modern-Ice
|
||||
XCURSOR_SIZE=24
|
||||
HYPRCURSOR_THEME=Bibata-Modern-Ice
|
||||
HYPRCURSOR_SIZE=24
|
||||
'';
|
||||
};
|
||||
});
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue