configuration.nix/system/default.nix

108 lines
2.2 KiB
Nix
Raw Normal View History

2023-04-04 09:17:30 +05:30
{ config, lib, pkgs, ... }: {
2023-03-15 22:11:59 +05:30
imports = [
2023-04-04 09:17:30 +05:30
./hardware
2023-04-07 20:36:59 +05:30
./programs
2023-03-15 22:11:59 +05:30
./persistence.nix
./plymouth.nix
./secureboot.nix
./services.nix
./virtualisation.nix
];
2023-04-07 19:53:00 +05:30
boot.cleanTmpDir = true;
2023-03-15 22:11:59 +05:30
console.useXkbConfig = true;
2023-03-28 19:31:00 +05:30
environment.sessionVariables = {
NIXOS_OZONE_WL = "1";
};
2023-04-07 19:53:00 +05:30
fonts = {
enableDefaultFonts = true;
fontDir.enable = true;
fonts = with pkgs; [
cantarell-fonts
liberation_ttf
(nerdfonts.override { fonts = [ "FiraCode" ]; })
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
];
};
2023-03-15 22:11:59 +05:30
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
LC_ALL = "en_US.UTF-8";
};
2023-03-29 21:48:55 +05:30
supportedLocales = [ "en_US.UTF-8/UTF-8" ];
2023-03-15 22:11:59 +05:30
};
2023-04-07 13:45:51 +05:30
location.provider = "geoclue2";
2023-03-15 22:11:59 +05:30
networking = {
hostName = "Skipper";
2023-03-16 21:10:20 +05:30
networkmanager = {
enable = true;
2023-03-16 21:11:08 +05:30
dns = "systemd-resolved";
2023-03-16 21:10:20 +05:30
wifi = {
2023-03-16 21:10:49 +05:30
backend = "iwd";
2023-03-16 21:10:20 +05:30
powersave = false;
};
2023-03-21 21:27:40 +05:30
extraConfig = ''
[device]
wifi.iwd.autoconnect=yes
'';
2023-03-16 21:10:20 +05:30
};
2023-03-15 22:11:59 +05:30
useDHCP = lib.mkDefault false;
2023-03-16 21:10:49 +05:30
wireless.iwd.enable = true;
2023-03-15 22:11:59 +05:30
};
security = {
apparmor = {
enable = true;
enableCache = true;
};
audit.enable = true;
auditd.enable = true;
2023-03-24 13:05:51 +05:30
pam.u2f = {
enable = true;
authFile = "/etc/u2f_keys";
cue = true;
2023-03-23 23:37:53 +05:30
};
2023-03-15 22:11:59 +05:30
polkit.enable = true;
rtkit.enable = true;
tpm2 = {
enable = true;
abrmd.enable = true;
pkcs11.enable = true;
tctiEnvironment.enable = true;
};
sudo = {
2023-03-29 21:48:55 +05:30
package = pkgs.sudo.override { withInsults = true; };
2023-03-15 22:11:59 +05:30
extraConfig = ''
Defaults lecture="never"
'';
wheelNeedsPassword = true;
};
};
sound.enable = true;
time.timeZone = "Asia/Kolkata";
2023-04-07 19:53:00 +05:30
xdg.portal = {
2023-03-15 22:11:59 +05:30
enable = true;
2023-04-07 13:43:48 +05:30
extraPortals = with pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal-hyprland ];
2023-03-15 22:11:59 +05:30
};
system.stateVersion = "23.05";
}