Change starship prompt, update inputs, add nvidia module
This commit is contained in:
parent
bd5a2e3ec5
commit
7730cbef59
9 changed files with 93 additions and 25 deletions
|
|
@ -66,10 +66,13 @@
|
|||
cantarell-fonts
|
||||
];
|
||||
|
||||
virtualisation.podman = {
|
||||
enable = true;
|
||||
dockerCompat = true;
|
||||
defaultNetwork.settings.dns_enabled = true;
|
||||
virtualisation = {
|
||||
containers.enable = true;
|
||||
podman = {
|
||||
enable = true;
|
||||
dockerCompat = true;
|
||||
defaultNetwork.settings.dns_enabled = true;
|
||||
};
|
||||
};
|
||||
|
||||
services.upower.enable = true;
|
||||
|
|
|
|||
|
|
@ -17,6 +17,14 @@
|
|||
Enables dashvim package.
|
||||
'';
|
||||
};
|
||||
jetbrains = lib.mkOption {
|
||||
default = false;
|
||||
example = true;
|
||||
type = lib.types.bool;
|
||||
description = ''
|
||||
Enables jetbrains toolbox.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -26,6 +34,7 @@
|
|||
colorscheme = config.mods.stylix.colorscheme;
|
||||
};
|
||||
home.packages = with pkgs; [
|
||||
(lib.mkIf config.mods.coding.jetbrains jetbrains-toolbox)
|
||||
#basics
|
||||
gitui
|
||||
gcc
|
||||
|
|
|
|||
|
|
@ -1,6 +1,14 @@
|
|||
{ lib, config, options, pkgs, ... }: {
|
||||
|
||||
options.mods = {
|
||||
nvidia.enable = lib.mkOption {
|
||||
default = false;
|
||||
type = lib.types.bool;
|
||||
example = true;
|
||||
description = ''
|
||||
Enables nvidia support.
|
||||
'';
|
||||
};
|
||||
amdgpu.enable = lib.mkOption {
|
||||
default = false;
|
||||
type = lib.types.bool;
|
||||
|
|
@ -40,6 +48,7 @@
|
|||
"amdgpu.ppfeaturemask=0xffffffff"
|
||||
];
|
||||
};
|
||||
|
||||
hardware = {
|
||||
graphics =
|
||||
let
|
||||
|
|
@ -60,5 +69,15 @@
|
|||
(lib.lists.optionals config.mods.vapi.rocm.enable rocm_packages);
|
||||
};
|
||||
};
|
||||
});
|
||||
} // lib.optionalAttrs (options?hardware.graphics) (lib.mkIf config.mods.nvidia.enable {
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
# powerManagement.enable = false;
|
||||
# powerManagement.finegrained = true;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
}));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,9 +65,10 @@
|
|||
truncation_symbol = "…/";
|
||||
};
|
||||
git_branch = {
|
||||
always_show_remote = true;
|
||||
symbol = "";
|
||||
style = "bg:#5256c3 fg:#${scheme.base05}";
|
||||
format = "[ ](bg:#5256c3 fg:prev_bg)[$symbol $branch ]($style)";
|
||||
format = "[ ](bg:#5256c3 fg:prev_bg)[$symbol ($remote_name )$branch ]($style)";
|
||||
};
|
||||
git_status = {
|
||||
staged = "+\${count} (fg:#C4A000)";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue