implementing modules for system applications

This commit is contained in:
cnst
2024-08-18 13:49:05 +02:00
parent 38f68c3550
commit a4306380e3
101 changed files with 1105 additions and 452 deletions

View File

@@ -1,8 +0,0 @@
{
hardware = {
bluetooth = {
enable = true;
powerOnBoot = false;
};
};
}

View File

@@ -2,7 +2,8 @@
imports = [
# shared imports
./dconf
./fuse
./locale
./fonts
./security
./xdg
./zram

View File

@@ -0,0 +1,29 @@
{pkgs, ...}: {
fonts.packages = with pkgs; [
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
liberation_ttf
fira-code-symbols
font-awesome
recursive
input-fonts
(nerdfonts.override {
fonts = [
"JetBrainsMono"
"FiraCode"
"FiraMono"
"Iosevka"
"3270"
"DroidSansMono"
"SourceCodePro"
"UbuntuMono"
"Overpass"
"Monoid"
"Mononoki"
"Hack"
"IBMPlexMono"
];
})
];
}

View File

@@ -1,5 +0,0 @@
{
programs.fuse = {
userAllowOther = true;
};
}

View File

@@ -1,27 +0,0 @@
{pkgs, ...}: {
hardware = {
graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
libva
vaapiVdpau
libvdpau-va-gl
amdvlk
# mesa
mesa
# vulkan
# vulkan-tools
# vulkan-loader
# vulkan-validation-layers
# vulkan-extension-layer
];
extraPackages32 = with pkgs.pkgsi686Linux; [
vaapiVdpau
libvdpau-va-gl
];
};
};
}

View File

@@ -1,30 +0,0 @@
{
pkgs,
config,
...
}: {
hardware = {
graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
libva
vaapiVdpau
libvdpau-va-gl
intel-media-driver
nvidia-vaapi-driver
];
};
nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.beta;
# package = config.boot.kernelPackages.nvidiaPackages.stable;
modesetting.enable = true;
powerManagement = {
enable = false;
finegrained = false;
};
open = false;
nvidiaSettings = true;
};
};
}

View File

@@ -0,0 +1,19 @@
{
time.timeZone = "Europe/Stockholm";
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
LC_ADDRESS = "sv_SE.UTF-8";
LC_IDENTIFICATION = "sv_SE.UTF-8";
LC_MEASUREMENT = "sv_SE.UTF-8";
LC_MONETARY = "sv_SE.UTF-8";
LC_NAME = "sv_SE.UTF-8";
LC_NUMERIC = "sv_SE.UTF-8";
LC_PAPER = "sv_SE.UTF-8";
LC_TELEPHONE = "sv_SE.UTF-8";
LC_TIME = "sv_SE.UTF-8";
};
};
}

View File

@@ -1,8 +0,0 @@
{
hardware = {
logitech.wireless = {
enable = true;
enableGraphical = true;
};
};
}

View File

@@ -1,15 +0,0 @@
{
networking = {
networkmanager.enable = true;
hostName = "adampad";
nftables.enable = true;
firewall = {
enable = true;
interfaces = {
"enp7s0" = {
allowedTCPPorts = [22 80 443];
};
};
};
};
}

View File

@@ -1,15 +0,0 @@
{
networking = {
networkmanager.enable = true;
hostName = "cnix";
nftables.enable = true;
firewall = {
enable = true;
interfaces = {
"enp7s0" = {
allowedTCPPorts = [22 80 443];
};
};
};
};
}

View File

@@ -1,15 +0,0 @@
{
networking = {
networkmanager.enable = true;
hostName = "toothpc";
nftables.enable = true;
firewall = {
enable = true;
interfaces = {
"enp4s0" = {
allowedTCPPorts = [22 80 443];
};
};
};
};
}