mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
changed format
This commit is contained in:
33 files changed
+52
-140
No files matched your search
@@ -1,8 +1,4 @@
|
|||||||
{
|
{ pkgs, system, ... }:
|
||||||
pkgs,
|
|
||||||
system,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
packages = import ./packages.nix { inherit pkgs; };
|
packages = import ./packages.nix { inherit pkgs; };
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
{
|
{ pkgs }:
|
||||||
pkgs,
|
|
||||||
}:
|
|
||||||
|
|
||||||
with pkgs;
|
with pkgs;
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
{
|
{ config, lib, modulesPath, ... }:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
modulesPath,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
{
|
{ pkgs, inputs, system, ... }:
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
system,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
packages = import ./packages.nix { inherit pkgs inputs system; };
|
packages = import ./packages.nix { inherit pkgs inputs system; };
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
{
|
{ pkgs, inputs, system, ... }:
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
system,
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
uxplay-fixed = pkgs.uxplay.override {
|
uxplay-fixed = pkgs.uxplay.override {
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../home/git.nix
|
../home/git.nix
|
||||||
|
|||||||
@@ -1,14 +1,8 @@
|
|||||||
{
|
{ pkgs, config, lib, ... }:
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) mkAfter;
|
inherit (lib) mkAfter;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
nix.enable = false;
|
nix.enable = false;
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
{
|
{ pkgs, ... }:
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
system.primaryUser = "sohryu";
|
system.primaryUser = "sohryu";
|
||||||
users.users.sohryu = {
|
users.users.sohryu = {
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
{
|
{ pkgs, lib, ... }:
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
base = ''
|
base = ''
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
{
|
{ pkgs, ... }:
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hyprland.nix
|
./hyprland.nix
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hyprland/env.nix
|
./hyprland/env.nix
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
env = [
|
env = [
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
exec-once = [
|
exec-once = [
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
monitor = ",preferred,auto,1";
|
monitor = ",preferred,auto,1";
|
||||||
@@ -119,6 +118,5 @@
|
|||||||
showEmptyWorkspace = 0;
|
showEmptyWorkspace = 0;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
ipc = "noctalia-shell ipc call";
|
ipc = "noctalia-shell ipc call";
|
||||||
in
|
in
|
||||||
@@ -12,7 +11,6 @@ in
|
|||||||
];
|
];
|
||||||
|
|
||||||
bind = [
|
bind = [
|
||||||
|
|
||||||
# workspace
|
# workspace
|
||||||
"CTRL $mainMod, right, workspace, r+1"
|
"CTRL $mainMod, right, workspace, r+1"
|
||||||
"CTRL $mainMod, left, workspace, r-1"
|
"CTRL $mainMod, left, workspace, r-1"
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
windowrule = [
|
windowrule = [
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
{
|
{ pkgs, inputs, ... }:
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ./hypr/default.nix ];
|
imports = [ ./hypr/default.nix ];
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
{
|
{ pkgs, ... }:
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../home/git.nix
|
../home/git.nix
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
{
|
{ pkgs, ... }:
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@@ -59,6 +56,5 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
environment.etc."xdg/menus/applications.menu".text =
|
environment.etc."xdg/menus/applications.menu".text =
|
||||||
builtins.readFile
|
builtins.readFile "${pkgs.kdePackages.plasma-workspace}/etc/xdg/menus/plasma-applications.menu";
|
||||||
"${pkgs.kdePackages.plasma-workspace}/etc/xdg/menus/plasma-applications.menu";
|
|
||||||
}
|
}
|
||||||
@@ -1,8 +1,4 @@
|
|||||||
{
|
{ pkgs, inputs, ... }:
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
{
|
{ pkgs, ... }:
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
{
|
{ pkgs, ... }:
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
{
|
{ pkgs, ... }:
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
hardware.graphics.extraPackages = with pkgs; [
|
hardware.graphics.extraPackages = with pkgs; [
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
{
|
{ config, lib, pkgs, ... }:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
driver = config.elars.hardware.graphics.driver;
|
driver = config.elars.hardware.graphics.driver;
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
{
|
{ pkgs, ... }:
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
let
|
||||||
wayland-intel-vaapi-driver = pkgs.intel-vaapi-driver.overrideAttrs (oldAttrs: {
|
wayland-intel-vaapi-driver = pkgs.intel-vaapi-driver.overrideAttrs (oldAttrs: {
|
||||||
version = "2.4.4-wayland-fix";
|
version = "2.4.4-wayland-fix";
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
{
|
{ config, ... }:
|
||||||
config,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
|
|||||||
@@ -15,9 +15,7 @@ static PFN_vkGetPhysicalDeviceProperties2 g_next_gdp2 = NULL;
|
|||||||
|
|
||||||
static int is_intel_below_14(uint32_t vendorID, uint32_t apiVersion)
|
static int is_intel_below_14(uint32_t vendorID, uint32_t apiVersion)
|
||||||
{
|
{
|
||||||
return vendorID == INTEL_VENDOR_ID
|
return vendorID == INTEL_VENDOR_ID && VK_API_VERSION_MAJOR(apiVersion) == 1 && VK_API_VERSION_MINOR(apiVersion) < 4;
|
||||||
&& VK_API_VERSION_MAJOR(apiVersion) == 1
|
|
||||||
&& VK_API_VERSION_MINOR(apiVersion) < 4;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VKAPI_ATTR VkResult VKAPI_CALL
|
VKAPI_ATTR VkResult VKAPI_CALL
|
||||||
@@ -40,18 +38,21 @@ HaVK14_CreateInstance(const VkInstanceCreateInfo *pCreateInfo,
|
|||||||
link->function == VK_LAYER_LINK_INFO))
|
link->function == VK_LAYER_LINK_INFO))
|
||||||
link = (VkLayerInstanceCreateInfo *)link->pNext;
|
link = (VkLayerInstanceCreateInfo *)link->pNext;
|
||||||
|
|
||||||
if (!link) return VK_ERROR_INITIALIZATION_FAILED;
|
if (!link)
|
||||||
|
return VK_ERROR_INITIALIZATION_FAILED;
|
||||||
g_next_gipa = link->u.pLayerInfo->pfnNextGetInstanceProcAddr;
|
g_next_gipa = link->u.pLayerInfo->pfnNextGetInstanceProcAddr;
|
||||||
link->u.pLayerInfo = link->u.pLayerInfo->pNext;
|
link->u.pLayerInfo = link->u.pLayerInfo->pNext;
|
||||||
PFN_vkCreateInstance next_ci =
|
PFN_vkCreateInstance next_ci =
|
||||||
(PFN_vkCreateInstance)g_next_gipa(NULL, "vkCreateInstance");
|
(PFN_vkCreateInstance)g_next_gipa(NULL, "vkCreateInstance");
|
||||||
VkResult res = next_ci(pCreateInfo, pAllocator, pInstance);
|
VkResult res = next_ci(pCreateInfo, pAllocator, pInstance);
|
||||||
if (res != VK_SUCCESS) return res;
|
if (res != VK_SUCCESS)
|
||||||
|
return res;
|
||||||
g_next_gdp = (PFN_vkGetPhysicalDeviceProperties)
|
g_next_gdp = (PFN_vkGetPhysicalDeviceProperties)
|
||||||
g_next_gipa(*pInstance, "vkGetPhysicalDeviceProperties");
|
g_next_gipa(*pInstance, "vkGetPhysicalDeviceProperties");
|
||||||
g_next_gdp2 = (PFN_vkGetPhysicalDeviceProperties2)
|
g_next_gdp2 = (PFN_vkGetPhysicalDeviceProperties2)
|
||||||
g_next_gipa(*pInstance, "vkGetPhysicalDeviceProperties2");
|
g_next_gipa(*pInstance, "vkGetPhysicalDeviceProperties2");
|
||||||
if (!g_next_gdp2) {
|
if (!g_next_gdp2)
|
||||||
|
{
|
||||||
g_next_gdp2 = (PFN_vkGetPhysicalDeviceProperties2)
|
g_next_gdp2 = (PFN_vkGetPhysicalDeviceProperties2)
|
||||||
g_next_gipa(*pInstance, "vkGetPhysicalDeviceProperties2KHR");
|
g_next_gipa(*pInstance, "vkGetPhysicalDeviceProperties2KHR");
|
||||||
}
|
}
|
||||||
@@ -63,8 +64,10 @@ VKAPI_ATTR void VKAPI_CALL
|
|||||||
HaVK14_GetPhysicalDeviceProperties(VkPhysicalDevice device,
|
HaVK14_GetPhysicalDeviceProperties(VkPhysicalDevice device,
|
||||||
VkPhysicalDeviceProperties *props)
|
VkPhysicalDeviceProperties *props)
|
||||||
{
|
{
|
||||||
if (g_next_gdp) g_next_gdp(device, props);
|
if (g_next_gdp)
|
||||||
if (props && is_intel_below_14(props->vendorID, props->apiVersion)) {
|
g_next_gdp(device, props);
|
||||||
|
if (props && is_intel_below_14(props->vendorID, props->apiVersion))
|
||||||
|
{
|
||||||
props->apiVersion = HASVK14_API_VERSION;
|
props->apiVersion = HASVK14_API_VERSION;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -73,20 +76,26 @@ VKAPI_ATTR void VKAPI_CALL
|
|||||||
HaVK14_GetPhysicalDeviceProperties2(VkPhysicalDevice device,
|
HaVK14_GetPhysicalDeviceProperties2(VkPhysicalDevice device,
|
||||||
VkPhysicalDeviceProperties2 *props2)
|
VkPhysicalDeviceProperties2 *props2)
|
||||||
{
|
{
|
||||||
if (g_next_gdp2) g_next_gdp2(device, props2);
|
if (g_next_gdp2)
|
||||||
if (!props2) return;
|
g_next_gdp2(device, props2);
|
||||||
|
if (!props2)
|
||||||
|
return;
|
||||||
VkPhysicalDeviceProperties *props = &props2->properties;
|
VkPhysicalDeviceProperties *props = &props2->properties;
|
||||||
if (!is_intel_below_14(props->vendorID, props->apiVersion)) return;
|
if (!is_intel_below_14(props->vendorID, props->apiVersion))
|
||||||
|
return;
|
||||||
|
|
||||||
props->apiVersion = HASVK14_API_VERSION;
|
props->apiVersion = HASVK14_API_VERSION;
|
||||||
VkBaseOutStructure *s = (VkBaseOutStructure *)props2->pNext;
|
VkBaseOutStructure *s = (VkBaseOutStructure *)props2->pNext;
|
||||||
while (s) {
|
while (s)
|
||||||
if (s->sType == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_PROPERTIES) {
|
{
|
||||||
|
if (s->sType == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_PROPERTIES)
|
||||||
|
{
|
||||||
VkPhysicalDeviceVulkan12Properties *p12 =
|
VkPhysicalDeviceVulkan12Properties *p12 =
|
||||||
(VkPhysicalDeviceVulkan12Properties *)s;
|
(VkPhysicalDeviceVulkan12Properties *)s;
|
||||||
p12->conformanceVersion = (VkConformanceVersion){1, 4, 1, 1};
|
p12->conformanceVersion = (VkConformanceVersion){1, 4, 1, 1};
|
||||||
}
|
}
|
||||||
if (s->sType == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES) {
|
if (s->sType == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES)
|
||||||
|
{
|
||||||
VkPhysicalDeviceDriverProperties *drv =
|
VkPhysicalDeviceDriverProperties *drv =
|
||||||
(VkPhysicalDeviceDriverProperties *)s;
|
(VkPhysicalDeviceDriverProperties *)s;
|
||||||
drv->conformanceVersion = (VkConformanceVersion){1, 4, 1, 1};
|
drv->conformanceVersion = (VkConformanceVersion){1, 4, 1, 1};
|
||||||
@@ -100,7 +109,8 @@ HaVK14_GetInstanceProcAddr(VkInstance instance, const char *pName)
|
|||||||
{
|
{
|
||||||
|
|
||||||
#define INTERCEPT(fn) \
|
#define INTERCEPT(fn) \
|
||||||
if (strcmp(pName, "vk" #fn) == 0) return (PFN_vkVoidFunction)HaVK14_##fn;
|
if (strcmp(pName, "vk" #fn) == 0) \
|
||||||
|
return (PFN_vkVoidFunction)HaVK14_##fn;
|
||||||
|
|
||||||
INTERCEPT(GetInstanceProcAddr)
|
INTERCEPT(GetInstanceProcAddr)
|
||||||
INTERCEPT(EnumerateInstanceVersion)
|
INTERCEPT(EnumerateInstanceVersion)
|
||||||
@@ -108,7 +118,8 @@ HaVK14_GetInstanceProcAddr(VkInstance instance, const char *pName)
|
|||||||
INTERCEPT(GetPhysicalDeviceProperties)
|
INTERCEPT(GetPhysicalDeviceProperties)
|
||||||
INTERCEPT(GetPhysicalDeviceProperties2)
|
INTERCEPT(GetPhysicalDeviceProperties2)
|
||||||
|
|
||||||
if (strcmp(pName, "vkGetPhysicalDeviceProperties2KHR") == 0) {
|
if (strcmp(pName, "vkGetPhysicalDeviceProperties2KHR") == 0)
|
||||||
|
{
|
||||||
return (PFN_vkVoidFunction)HaVK14_GetPhysicalDeviceProperties2;
|
return (PFN_vkVoidFunction)HaVK14_GetPhysicalDeviceProperties2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
{
|
{ pkgs, ... }:
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
services.printing = {
|
services.printing = {
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
{
|
{ pkgs, ... }:
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.gnupg.agent = {
|
programs.gnupg.agent = {
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
{
|
{ pkgs, ... }:
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
fonts = {
|
fonts = {
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
{
|
{ pkgs, ... }:
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
fonts.packages = [
|
fonts.packages = [
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
{
|
{ pkgs, ... }:
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
users.users.elars = {
|
users.users.elars = {
|
||||||
|
|||||||
Reference in new issue
Block a user