refactor: moved system modules around to be more coherent
This commit is contained in:
parent
13fc2a1450
commit
263728f6b6
16 changed files with 72 additions and 60 deletions
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
5
systems/modules/desktop.nix
Normal file
5
systems/modules/desktop.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./programs/hyprland.nix
|
||||
];
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
{ pkgs, ... }: {
|
||||
# Enable basic fonts for reasonable Unicode coverage
|
||||
fonts.enableDefaultPackages = true;
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
nerd-fonts.terminess-ttf
|
||||
];
|
||||
}
|
20
systems/modules/fonts/terminess.nix
Normal file
20
systems/modules/fonts/terminess.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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";
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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
|
||||
];
|
||||
}
|
3
systems/modules/programs/tailscale.nix
Normal file
3
systems/modules/programs/tailscale.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
services.tailscale.enable = true;
|
||||
}
|
8
systems/modules/stylix.nix
Normal file
8
systems/modules/stylix.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ inputs, ... }: {
|
||||
imports = [
|
||||
inputs.stylix.nixosModules.stylix
|
||||
./themes/catppuccin.nix
|
||||
./fonts/terminess.nix
|
||||
];
|
||||
stylix.enable = true;
|
||||
}
|
3
systems/modules/themes/catppuccin.nix
Normal file
3
systems/modules/themes/catppuccin.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{ pkgs, ... }: {
|
||||
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
|
||||
}
|
|
@ -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";
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
{
|
||||
imports = [
|
||||
./programs/firefox.nix
|
||||
#./programs/font-terminess.nix
|
||||
./programs/kitty.nix
|
||||
./programs/hyprland.nix
|
||||
./programs/waybar.nix
|
||||
./programs/dunst.nix
|
||||
];
|
||||
}
|
||||
|
|
3
users/modules/programs/dunst.nix
Normal file
3
users/modules/programs/dunst.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
services.dunst.enable = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue