add video driver
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" "sdhci_pci" ];
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = [ "kvm-amd" "amdgpu" ];
|
||||||
boot.kernelParams = [ "psmouse.synaptics_intertouch=0" ];
|
boot.kernelParams = [ "psmouse.synaptics_intertouch=0" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
@@ -47,4 +47,17 @@
|
|||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
|
hardware.opengl.driSupport = true;
|
||||||
|
# For 32 bit applications
|
||||||
|
hardware.opengl.driSupport32Bit = true;
|
||||||
|
|
||||||
|
hardware.opengl.extraPackages = with pkgs; [
|
||||||
|
amdvlk
|
||||||
|
];
|
||||||
|
# For 32 bit applications
|
||||||
|
# Only available on unstable
|
||||||
|
hardware.opengl.extraPackages32 = with pkgs; [
|
||||||
|
driversi686Linux.amdvlk
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ in {
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
alsaUtils
|
alsaUtils
|
||||||
alacritty
|
alacritty
|
||||||
|
enlightenment.terminology
|
||||||
bitwarden
|
bitwarden
|
||||||
chromium
|
chromium
|
||||||
cryptomator
|
cryptomator
|
||||||
@@ -92,10 +93,6 @@ in {
|
|||||||
wtype
|
wtype
|
||||||
apache-directory-studio
|
apache-directory-studio
|
||||||
firefox
|
firefox
|
||||||
|
|
||||||
|
|
||||||
onlyoffice-bin
|
|
||||||
# kexi
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# nixpkgs.config.permittedInsecurePackages = [
|
# nixpkgs.config.permittedInsecurePackages = [
|
||||||
|
|||||||
@@ -5,81 +5,81 @@
|
|||||||
// -*- mode: json -*-
|
// -*- mode: json -*-
|
||||||
|
|
||||||
{
|
{
|
||||||
"layer": "top",
|
"layer": "top",
|
||||||
"position": "top",
|
"position": "top",
|
||||||
|
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"sway/workspaces",
|
"sway/workspaces",
|
||||||
"custom/right-arrow-dark"
|
"custom/right-arrow-dark"
|
||||||
],
|
],
|
||||||
"modules-center": [
|
"modules-center": [
|
||||||
"custom/left-arrow-dark",
|
"custom/left-arrow-dark",
|
||||||
"clock#1",
|
"clock#1",
|
||||||
"custom/left-arrow-light",
|
"custom/left-arrow-light",
|
||||||
"custom/left-arrow-dark",
|
"custom/left-arrow-dark",
|
||||||
"clock#2",
|
"clock#2",
|
||||||
"custom/right-arrow-dark",
|
"custom/right-arrow-dark",
|
||||||
"custom/right-arrow-light",
|
"custom/right-arrow-light",
|
||||||
"clock#3",
|
"clock#3",
|
||||||
"custom/right-arrow-dark"
|
"custom/right-arrow-dark"
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"custom/left-arrow-dark",
|
"custom/left-arrow-dark",
|
||||||
"network",
|
"network",
|
||||||
"custom/left-arrow-light",
|
"custom/left-arrow-light",
|
||||||
"custom/left-arrow-dark",
|
"custom/left-arrow-dark",
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
"custom/left-arrow-light",
|
"custom/left-arrow-light",
|
||||||
"custom/left-arrow-dark",
|
"custom/left-arrow-dark",
|
||||||
"memory",
|
"memory",
|
||||||
"custom/left-arrow-light",
|
"custom/left-arrow-light",
|
||||||
"custom/left-arrow-dark",
|
"custom/left-arrow-dark",
|
||||||
"cpu",
|
"cpu",
|
||||||
"custom/left-arrow-light",
|
"custom/left-arrow-light",
|
||||||
"custom/left-arrow-dark",
|
"custom/left-arrow-dark",
|
||||||
"battery",
|
"battery",
|
||||||
"custom/left-arrow-light",
|
"custom/left-arrow-light",
|
||||||
"custom/left-arrow-dark",
|
"custom/left-arrow-dark",
|
||||||
"disk",
|
"disk",
|
||||||
"custom/left-arrow-light",
|
"custom/left-arrow-light",
|
||||||
"custom/left-arrow-dark",
|
"custom/left-arrow-dark",
|
||||||
"tray"
|
"tray"
|
||||||
],
|
],
|
||||||
|
|
||||||
"custom/left-arrow-dark": {
|
"custom/left-arrow-dark": {
|
||||||
"format": "",
|
"format": "",
|
||||||
"tooltip": false
|
"tooltip": false
|
||||||
},
|
},
|
||||||
"custom/left-arrow-light": {
|
"custom/left-arrow-light": {
|
||||||
"format": "",
|
"format": "",
|
||||||
"tooltip": false
|
"tooltip": false
|
||||||
},
|
},
|
||||||
"custom/right-arrow-dark": {
|
"custom/right-arrow-dark": {
|
||||||
"format": "",
|
"format": "",
|
||||||
"tooltip": false
|
"tooltip": false
|
||||||
},
|
},
|
||||||
"custom/right-arrow-light": {
|
"custom/right-arrow-light": {
|
||||||
"format": "",
|
"format": "",
|
||||||
"tooltip": false
|
"tooltip": false
|
||||||
},
|
},
|
||||||
|
|
||||||
"sway/workspaces": {
|
"sway/workspaces": {
|
||||||
"disable-scroll": true,
|
"disable-scroll": true,
|
||||||
"format": "{name}"
|
"format": "{name}"
|
||||||
},
|
},
|
||||||
|
|
||||||
"clock#1": {
|
"clock#1": {
|
||||||
"format": "{:%a}",
|
"format": "{:%a}",
|
||||||
"tooltip": false
|
"tooltip": false
|
||||||
},
|
},
|
||||||
"clock#2": {
|
"clock#2": {
|
||||||
"format": "{:%H:%M}",
|
"format": "{:%H:%M}",
|
||||||
"tooltip": false
|
"tooltip": false
|
||||||
},
|
},
|
||||||
"clock#3": {
|
"clock#3": {
|
||||||
"format": "{:%d.%m}",
|
"format": "{:%d.%m}",
|
||||||
"tooltip": false
|
"tooltip": false
|
||||||
},
|
},
|
||||||
|
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
"format": "{icon}{volume}%",
|
"format": "{icon}{volume}%",
|
||||||
@@ -101,37 +101,37 @@
|
|||||||
"format-disconnected": "Disconnected ",
|
"format-disconnected": "Disconnected ",
|
||||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||||
},
|
},
|
||||||
"memory": {
|
"memory": {
|
||||||
"interval": 5,
|
"interval": 5,
|
||||||
"format": "{}%"
|
"format": "{}%"
|
||||||
},
|
},
|
||||||
"cpu": {
|
"cpu": {
|
||||||
"interval": 5,
|
"interval": 5,
|
||||||
"format": "{usage:2}%"
|
"format": "{usage:2}%"
|
||||||
},
|
},
|
||||||
"battery": {
|
"battery": {
|
||||||
"states": {
|
"states": {
|
||||||
"good": 95,
|
"good": 95,
|
||||||
"warning": 30,
|
"warning": 30,
|
||||||
"critical": 15
|
"critical": 15
|
||||||
},
|
},
|
||||||
"format": "{icon} {capacity}%",
|
"format": "{icon} {capacity}%",
|
||||||
"format-icons": [
|
"format-icons": [
|
||||||
"",
|
"",
|
||||||
"",
|
"",
|
||||||
"",
|
"",
|
||||||
"",
|
"",
|
||||||
""
|
""
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"disk": {
|
"disk": {
|
||||||
"interval": 5,
|
"interval": 5,
|
||||||
"format": "{percentage_used:2}%",
|
"format": "{percentage_used:2}%",
|
||||||
"path": "/home/"
|
"path": "/home/"
|
||||||
},
|
},
|
||||||
"tray": {
|
"tray": {
|
||||||
"icon-size": 20
|
"icon-size": 20
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user