79 lines
1.7 KiB
Nix
79 lines
1.7 KiB
Nix
{ inputs, pkgs, ... }: {
|
|
imports = [
|
|
./boot
|
|
./hardware
|
|
./programs
|
|
./services
|
|
./network
|
|
./persistence
|
|
./virtualisation
|
|
./security.nix
|
|
];
|
|
|
|
nodeconfig.facts = {
|
|
wireguard-ip = "10.10.10.2";
|
|
};
|
|
|
|
# required for nixos-rebuild if target-host is of different arch. (even if --build-host is used)
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
|
|
console.useXkbConfig = true;
|
|
|
|
environment.sessionVariables = {
|
|
VDPAU_DRIVER = "va_gl";
|
|
NIXOS_OZONE_WL = 1;
|
|
};
|
|
|
|
fonts = let smc-fonts = inputs.smc-fonts.packages.${pkgs.system}.default; in {
|
|
packages = with pkgs; [
|
|
cantarell-fonts
|
|
dejavu_fonts
|
|
liberation_ttf
|
|
noto-fonts-cjk-sans
|
|
noto-fonts-emoji
|
|
nerd-fonts.fira-code
|
|
(smc-fonts.override { fonts = [ "chilanka" ]; })
|
|
];
|
|
};
|
|
|
|
gtk.iconCache.enable = true;
|
|
|
|
i18n = {
|
|
defaultLocale = "en_IN.UTF-8";
|
|
extraLocaleSettings = {
|
|
LC_ADDRESS = "en_IN.UTF-8";
|
|
LC_IDENTIFICATION = "en_IN.UTF-8";
|
|
LC_MEASUREMENT = "en_IN.UTF-8";
|
|
LC_MONETARY = "en_IN.UTF-8";
|
|
LC_NAME = "en_IN.UTF-8";
|
|
LC_NUMERIC = "en_IN.UTF-8";
|
|
LC_PAPER = "en_IN.UTF-8";
|
|
LC_TELEPHONE = "en_IN.UTF-8";
|
|
LC_TIME = "en_IN.UTF-8";
|
|
LC_ALL = "en_IN.UTF-8";
|
|
};
|
|
supportedLocales = [ "ml_IN/UTF-8" "en_IN/UTF-8" "en_US.UTF-8/UTF-8" ];
|
|
};
|
|
|
|
services.xserver.xkb = {
|
|
layout = "us";
|
|
options = "rupeesign:4";
|
|
variant = "altgr-intl";
|
|
};
|
|
|
|
time.timeZone = "Asia/Kolkata";
|
|
|
|
xdg.portal = {
|
|
enable = true;
|
|
xdgOpenUsePortal = true;
|
|
config.common.default = [ "gtk" ];
|
|
};
|
|
|
|
system = {
|
|
switch = {
|
|
enable = false;
|
|
enableNg = true;
|
|
};
|
|
stateVersion = "23.11";
|
|
};
|
|
}
|