Merge branch 'main' of github.com:ooks-io/nix

This commit is contained in:
ooks-io 2024-04-01 12:41:47 +13:00
commit 47d77e241d
4 changed files with 36 additions and 2 deletions

View file

@ -9,7 +9,7 @@ in
{ {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
home.sessionVariables.TERMFILEMANAGER = lib.mkIf cfg.default "lf"; home.sessionVariables.FILEMANAGER = lib.mkIf cfg.default "lf";
xdg.configFile."lf/icons".source = ./icons; xdg.configFile."lf/icons".source = ./icons;

View file

@ -26,11 +26,12 @@ in {
padding=3,3 padding=3,3
width=100 width=100
height=100 height=100
[app-name="bat-notify"] [urgency=critical]
padding=3,3 padding=3,3
width=100 width=100
height=100 height=100
anchor=top-center anchor=top-center
border-color=${colors.base08}
''; '';
}; };
}; };

View file

@ -0,0 +1,29 @@
{ lib, config, pkgs, ... }:
let
cfg = config.systemProfile.amd;
in
{
config = lib.mkIf cfg.enable {
hardware.opengl = {
extraPackages = with pkgs; [
vulkan-tools
vulkan-loader
vulkan-extension-layer
vulkan-validation-layer
amdvlk
mesa
];
extraPackages32 = [ pkgs.driversi686Linux.amdvlk ];
};
boot = {
initrd.kernelModules = ["amdgpu"];
kernelModules = ["amdgpu"];
};
environment.systemPackages = [ pkgs.nvtopPackages.amd ];
};
}

View file

@ -13,6 +13,7 @@ in
./gaming ./gaming
./laptop ./laptop
./mediaServer ./mediaServer
./amd
]; ];
options = { options = {
@ -34,6 +35,9 @@ in
nvidia = { nvidia = {
enable = lib.mkEnableOption "Enable the nvidia profile"; enable = lib.mkEnableOption "Enable the nvidia profile";
}; };
amd = {
enable = lib.mkEnableOption "Enable the amd profile";
};
mediaServer = { mediaServer = {
enable = lib.mkEnableOption "Enable the mediaServer profile"; enable = lib.mkEnableOption "Enable the mediaServer profile";
}; };