forked from nico/dots
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
|
|
@ -14,13 +14,16 @@
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/nixos-common.nix
|
./hosts/nixos-common.nix
|
||||||
|
|
||||||
./modules/shell.nix
|
|
||||||
./modules/users.nix
|
|
||||||
./modules/hyprland.nix
|
|
||||||
./modules/applications.nix
|
./modules/applications.nix
|
||||||
|
./modules/audio.nix
|
||||||
./modules/firefox.nix
|
./modules/firefox.nix
|
||||||
|
./modules/fonts.nix
|
||||||
./modules/games.nix
|
./modules/games.nix
|
||||||
|
./modules/hyprland.nix
|
||||||
|
./modules/login.nix
|
||||||
|
./modules/shell.nix
|
||||||
./modules/stow.nix
|
./modules/stow.nix
|
||||||
|
./modules/users.nix
|
||||||
|
|
||||||
./modules/secureboot.nix
|
./modules/secureboot.nix
|
||||||
lanzaboote.nixosModules.lanzaboote
|
lanzaboote.nixosModules.lanzaboote
|
||||||
|
|
|
||||||
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.enable = true;
|
||||||
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
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;
|
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; [
|
environment.systemPackages = with pkgs; [
|
||||||
kitty
|
kitty
|
||||||
waybar
|
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