nix: reorganise hyprland module into smaller modules
This commit is contained in:
parent
6d6d635fdd
commit
51de9e32c2
5 changed files with 46 additions and 24 deletions
13
modules/audio.nix
Normal file
13
modules/audio.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Enable sound.
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
}
|
||||
14
modules/fonts.nix
Normal file
14
modules/fonts.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# install basic fonts
|
||||
fonts = {
|
||||
fontDir.enable = true;
|
||||
packages = with pkgs; [
|
||||
noto-fonts # most langs and emojis
|
||||
noto-fonts-cjk-sans # gets japanese and chinese langs
|
||||
nerdfonts # programming fonts
|
||||
corefonts # basic web fonts
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -19,29 +19,8 @@
|
|||
xdg.portal.enable = true;
|
||||
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||
|
||||
# install basic fonts
|
||||
fonts = {
|
||||
fontDir.enable = true; # fixes some programs
|
||||
packages = with pkgs; [
|
||||
noto-fonts # most langs and emojis
|
||||
noto-fonts-cjk-sans # gets japanese and chinese langs
|
||||
nerdfonts # programming fonts
|
||||
corefonts # basic web fonts
|
||||
];
|
||||
};
|
||||
|
||||
programs.hyprlock.enable = true;
|
||||
|
||||
# Enable sound.
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
kitty
|
||||
waybar
|
||||
|
|
|
|||
13
modules/login.nix
Normal file
13
modules/login.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# display manager
|
||||
programs.regreet = {
|
||||
enable = true;
|
||||
settings = {
|
||||
GTK = {
|
||||
application_prefer_dark_theme = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue