This commit is contained in:
shibazaki 2025-04-09 17:32:25 +02:00
parent d0c832e426
commit 574222c251
4 changed files with 53 additions and 10 deletions

35
flake.lock generated
View File

@ -735,6 +735,22 @@
"type": "github"
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1647297614,
"narHash": "sha256-ulGq3W5XsrBMU/u5k9d4oPy65pQTkunR4HKKtTq0RwY=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "73ad5f9e147c0d2a2061f1d4bd91e05078dc0b58",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nmd": {
"flake": false,
"locked": {
@ -3630,12 +3646,31 @@
"type": "github"
}
},
"rocm": {
"inputs": {
"nixpkgs": "nixpkgs_4"
},
"locked": {
"lastModified": 1687959333,
"narHash": "sha256-NqM5vMtpznX/Ws4Ca7LDFKFSX6srFd82aaFIZXwssg4=",
"owner": "nixos-rocm",
"repo": "nixos-rocm",
"rev": "242305cac651e136928ddae922a4edec723ddf59",
"type": "github"
},
"original": {
"owner": "nixos-rocm",
"repo": "nixos-rocm",
"type": "github"
}
},
"root": {
"inputs": {
"home-manager": "home-manager",
"hyprland": "hyprland",
"nixpkgs": "nixpkgs",
"nvf": "nvf",
"rocm": "rocm",
"stylix": "stylix"
}
},

View File

@ -20,14 +20,12 @@
url = "github:danth/stylix"; # stylix follows unstable automatically
inputs.nixpkgs.follows = "nixpkgs";
};
rocm = {
url = "github:nixos-rocm/nixos-rocm";
};
};
outputs = {
self,
nixpkgs,
home-manager,
...
} @ inputs: let
outputs = {nixpkgs, ...} @ inputs: let
system = "x86_64-linux";
pkgs = import nixpkgs {
@ -39,7 +37,7 @@
in {
nixosConfigurations = {
shibazaki = nixpkgs.lib.nixosSystem {
system = system;
inherit system;
specialArgs = {
inherit inputs pkgs;
userSettings = {
@ -52,7 +50,7 @@
];
};
twelve = nixpkgs.lib.nixosSystem {
system = system;
inherit system;
specialArgs = {
inherit inputs pkgs;
userSettings = {
@ -65,7 +63,7 @@
];
};
nine = nixpkgs.lib.nixosSystem {
system = system;
inherit system;
specialArgs = {
inherit inputs pkgs;
userSettings = {

View File

@ -8,5 +8,10 @@
vulkan-validation-layers
mesa
libxkbcommon
clinfo
];
hardware.opengl.extraPackages = with pkgs; [
rocmPackages.clr.icd
];
}

View File

@ -1,4 +1,4 @@
{...}: {
{pkgs, ...}: {
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
@ -19,6 +19,11 @@
nixpkgs.config.allowUnfree = true;
boot.loader.systemd-boot.enable = true;
boot.initrd.kernelModules = ["amdgpu"];
programs.nix-ld.enable = true;
hardware.opengl.extraPackages = with pkgs; [
rocmPackages.clr
];
}