mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-15 06:30:10 +03:00
123
This commit is contained in:
@@ -9,6 +9,7 @@ let
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
||||
imports = [
|
||||
(./. + "/${xlib.device.type}.nix")
|
||||
];
|
||||
@@ -47,6 +48,7 @@ let
|
||||
users."${xlib.device.username}" = homeModule;
|
||||
users.root = rootModule;
|
||||
sharedModules = [ inputs.plasma-manager.homeManagerModules.plasma-manager ];
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
};
|
||||
};
|
||||
in
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
config,
|
||||
pkgs,
|
||||
xlib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
grampsPath = "${xlib.dirs.wsl-storage}/gramps";
|
||||
last-stable = import inputs.nixpkgs-last-unstable { system = "x86_64-linux"; };
|
||||
in
|
||||
{
|
||||
xdg = {
|
||||
@@ -23,6 +25,6 @@ in
|
||||
};
|
||||
};
|
||||
home.packages = [
|
||||
pkgs.gramps
|
||||
last-stable.gramps
|
||||
];
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
config,
|
||||
pkgs,
|
||||
xlib,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
||||
@@ -32,8 +32,8 @@ let
|
||||
|
||||
hardware = {
|
||||
graphics.enable = true;
|
||||
amdgpu.opencl.enable = true;
|
||||
amdgpu.amdvlk.enable = true;
|
||||
# amdgpu.opencl.enable = true;
|
||||
# amdgpu.amdvlk.enable = true;
|
||||
};
|
||||
|
||||
networking = {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"https://cache.nixos.org"
|
||||
"https://nix-community.cachix.org"
|
||||
"https://nixos-cache-proxy.cofob.dev" # https://gist.github.com/cofob/9b1fd205e6d961a45c225ae9f0af1394
|
||||
"https://nixos.snix.store" # https://nixos.snix.store/
|
||||
#"https://nixos.snix.store" # https://nixos.snix.store/
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
work = import inputs.nixpkgs-master { system = "x86_64-linux"; };
|
||||
in
|
||||
# let
|
||||
# work = import inputs.nixpkgs-master { system = "x86_64-linux"; };
|
||||
# in
|
||||
{
|
||||
environment.systemPackages = [
|
||||
work.openai-whisper
|
||||
pkgs.openai-whisper
|
||||
|
||||
# (work.openai-whisper.override {
|
||||
# torch = pkgs.python313Packages.torch-bin; # Используй бинарный torch с ROCm, чтобы обойти сборочную хуйню
|
||||
@@ -20,5 +20,5 @@ in
|
||||
# systemd.tmpfiles.rules = ["L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"];
|
||||
# hardware.graphics.extraPackages = with pkgs.rocmPackages; [ clr clr.icd ];
|
||||
|
||||
nixpkgs.config.rocmSupport = true;
|
||||
#nixpkgs.config.rocmSupport = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user