refactor: moved system modules around to be more coherent

This commit is contained in:
Mohammad Rafiq 2025-03-09 18:58:41 +08:00
parent 13fc2a1450
commit 263728f6b6
16 changed files with 72 additions and 60 deletions

View file

@ -5,10 +5,29 @@
extraGroups = ["networkmanager" "wheel"];
};
# Enable basic fonts for reasonable Unicode coverage
fonts.enableDefaultPackages = true;
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = ["nix-command" "flakes"];
environment.systemPackages = with pkgs; [
git
];
time.timeZone = "Asia/Singapore";
i18n.defaultLocale = "en_SG.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_SG.UTF-8";
LC_IDENTIFICATION = "en_SG.UTF-8";
LC_MEASUREMENT = "en_SG.UTF-8";
LC_MONETARY = "en_SG.UTF-8";
LC_NAME = "en_SG.UTF-8";
LC_NUMERIC = "en_SG.UTF-8";
LC_PAPER = "en_SG.UTF-8";
LC_TELEPHONE = "en_SG.UTF-8";
LC_TIME = "en_SG.UTF-8";
};
}

View file

@ -0,0 +1,5 @@
{
imports = [
./programs/hyprland.nix
];
}

View file

@ -1,8 +0,0 @@
{ pkgs, ... }: {
# Enable basic fonts for reasonable Unicode coverage
fonts.enableDefaultPackages = true;
fonts.packages = with pkgs; [
nerd-fonts.terminess-ttf
];
}

View file

@ -0,0 +1,20 @@
{ pkgs, config, ... }: {
fonts.packages = with pkgs; [
nerd-fonts.terminess-ttf
];
stylix.fonts = {
serif = config.stylix.fonts.monospace;
sansSerif = config.stylix.fonts.monospace;
emoji = config.stylix.fonts.monospace;
monospace = {
package = pkgs.nerd-fonts.terminess-ttf;
name = "Terminess Nerd Font Mono";
};
sizes = {
applications = 16;
desktop = 12;
popups = 12;
terminal = 16;
};
};
}

View file

@ -1,17 +0,0 @@
{
time.timeZone = "Asia/Singapore";
i18n.defaultLocale = "en_SG.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_SG.UTF-8";
LC_IDENTIFICATION = "en_SG.UTF-8";
LC_MEASUREMENT = "en_SG.UTF-8";
LC_MONETARY = "en_SG.UTF-8";
LC_NAME = "en_SG.UTF-8";
LC_NUMERIC = "en_SG.UTF-8";
LC_PAPER = "en_SG.UTF-8";
LC_TELEPHONE = "en_SG.UTF-8";
LC_TIME = "en_SG.UTF-8";
};
}

View file

@ -3,6 +3,10 @@
# Anything system-specific should not be here.
#
{
imports = [
./programs/tailscale.nix
];
networking = {
# Enable networkManager
# TODO: Look into the networkManager options.
@ -35,5 +39,4 @@
# TODO: look into openssh and tailscale settings.
services.openssh.enable = true;
services.tailscale.enable = true;
}

View file

@ -1,22 +0,0 @@
{ inputs, pkgs, config, ... }: {
imports = [ inputs.stylix.nixosModules.stylix ];
stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
fonts = {
serif = config.stylix.fonts.monospace;
sansSerif = config.stylix.fonts.monospace;
emoji = config.stylix.fonts.monospace;
monospace = {
package = pkgs.nerd-fonts.terminess-ttf;
name = "Terminess Nerd Font Mono";
};
sizes = {
applications = 16;
desktop = 12;
popups = 12;
terminal = 16;
};
};
};
}

View file

@ -8,7 +8,4 @@
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
};
environment.systemPackages = with pkgs; [
dunst
];
}

View file

@ -0,0 +1,3 @@
{
services.tailscale.enable = true;
}

View file

@ -0,0 +1,8 @@
{ inputs, ... }: {
imports = [
inputs.stylix.nixosModules.stylix
./themes/catppuccin.nix
./fonts/terminess.nix
];
stylix.enable = true;
}

View file

@ -0,0 +1,3 @@
{ pkgs, ... }: {
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
}

View file

@ -1,14 +1,12 @@
{
imports = [
./hw-nemesis.nix
./modules/common.nix # Common options for all systems
./modules/systemd-boot.nix # Systemd-boot as bootloader
./modules/locale.nix # SG locale settings
./modules/fonts.nix # Fonts
./modules/networking.nix # Common networking settings
./modules/hyprland.nix # Hyprland compositor
./modules/nvidia.nix # Nvidia settings
./modules/personalisation.nix
./modules/bootloaders/systemd-boot.nix
./modules/common.nix
./modules/hardware/nvidia.nix
./modules/networking.nix
./modules/desktop.nix
./modules/stylix.nix
];
networking.hostName = "nemesis";

View file

@ -2,9 +2,9 @@
{
imports = [
./programs/firefox.nix
#./programs/font-terminess.nix
./programs/kitty.nix
./programs/hyprland.nix
./programs/waybar.nix
./programs/dunst.nix
];
}

View file

@ -0,0 +1,3 @@
{
services.dunst.enable = true;
}