This commit is contained in:
Grigory Shipunov 2023-01-14 12:57:53 +01:00
parent 9ff003a4c1
commit eabc64290a
Signed by: 0xa
GPG key ID: 91FA5E5BF9AA901C
6 changed files with 40 additions and 18 deletions

30
flake.lock generated
View file

@ -8,11 +8,11 @@
"rust-analyzer-src": "rust-analyzer-src" "rust-analyzer-src": "rust-analyzer-src"
}, },
"locked": { "locked": {
"lastModified": 1673245426, "lastModified": 1673677311,
"narHash": "sha256-C/qvJD9K+JfOtSavRnFv703S9f6RAVMVUlzVq8a9Bv8=", "narHash": "sha256-V7vEMy7vzvD9wyz/822G8rLV+3jkum5EsfAIy9gds1I=",
"owner": "nix-community", "owner": "nix-community",
"repo": "fenix", "repo": "fenix",
"rev": "918a43f74c47473dc979fd5b25746121e6afb48f", "rev": "39e4f1d72376620d76fefe4cdf52a448f12c90aa",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -74,11 +74,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1673163619, "lastModified": 1673612960,
"narHash": "sha256-B33PFBL64ZgTWgMnhFL3jgheAN/DjHPsZ1Ih3z0VE5I=", "narHash": "sha256-DWR7hrbecJKmUJCswk9MXZta710mq+3jZwTvHU/UfyY=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "8c54d842d9544361aac5f5b212ba04e4089e8efe", "rev": "e285dd0ca97c264003867c7329f0d1f4f028739c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -106,11 +106,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1673134516, "lastModified": 1673540789,
"narHash": "sha256-mAZQKqkNQbBmJnmUU0blOfkKlgMSSVyPHdeWeuKad8U=", "narHash": "sha256-xqnxBOK3qctIeUVxecydrEDbEXjsvHCPGPbvsl63M/U=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "f6f44561884c3470e2b783683d5dbac42dfc833b", "rev": "0f213d0fee84280d8c3a97f7469b988d6fe5fcdf",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -133,11 +133,11 @@
"rust-analyzer-src": { "rust-analyzer-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1673119177, "lastModified": 1673611648,
"narHash": "sha256-Eabe5SOI5XHRrjcFIgGXE0P5CxHlha07IaBBagM0Ap8=", "narHash": "sha256-Qptnat6M6twwJiXSMt0cJlZdZreExeyzY7cdCG0LicM=",
"owner": "rust-lang", "owner": "rust-lang",
"repo": "rust-analyzer", "repo": "rust-analyzer",
"rev": "1bd1a095936f2c16493743a05f6f14285c98ec8a", "rev": "a119352adab65d0cab25c13ae0fd7676bed7100f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -155,11 +155,11 @@
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {
"lastModified": 1673147300, "lastModified": 1673481602,
"narHash": "sha256-gR9OEfTzWfL6vG0qkbn1TlBAOlg4LuW8xK/u0V41Ihc=", "narHash": "sha256-P80X38fOM2MtoYdgkyuksGOQPDhIhNJW2W2jMeMIZzE=",
"owner": "Mic92", "owner": "Mic92",
"repo": "sops-nix", "repo": "sops-nix",
"rev": "2253120d2a6147e57bafb5c689e086221df8032f", "rev": "32187b33ac6ec9b628dcd08dd941a715e6241dda",
"type": "github" "type": "github"
}, },
"original": { "original": {

16
hosts/toaster/amd.nix Normal file
View file

@ -0,0 +1,16 @@
{ pkgs, config, ... }: {
boot.initrd.kernelModules = [ "amdgpu" ];
hardware.opengl = {
driSupport = true;
driSupport32Bit = true;
extraPackages = with pkgs; [
rocm-opencl-icd
rocm-opencl-runtime
amdvlk
];
extraPackages32 = with pkgs; [
driversi686Linux.amdvlk
];
};
}

View file

@ -1,5 +1,6 @@
{ ... }: { { pkgs, ... }: {
imports = [ imports = [
./amd.nix
./hardware-configuration.nix ./hardware-configuration.nix
./network-vpns.nix ./network-vpns.nix
./network.nix ./network.nix
@ -8,6 +9,9 @@
]; ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
yt-dlp
];
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;

View file

@ -94,6 +94,7 @@
LP_ENABLE_SCREEN_TITLE=1 LP_ENABLE_SCREEN_TITLE=1
LP_ENABLE_TEMP=0 LP_ENABLE_TEMP=0
LP_ENABLE_SVN=0 LP_ENABLE_SVN=0
LP_BATTERY_THRESHOLD=15
LP_SSH_COLORS=1 LP_SSH_COLORS=1
''; '';
}; };

View file

@ -10,11 +10,12 @@
direnv direnv
(nix-direnv.override { enableFlakes = true; }) (nix-direnv.override { enableFlakes = true; })
# rust # rust
(inputs.fenix.packages."x86_64-linux".complete.toolchain) (inputs.fenix.packages."x86_64-linux".stable.toolchain)
# nix # nix
rnix-lsp rnix-lsp
nil nil
nixpkgs-fmt nixpkgs-fmt
nix-index
# julia # julia
julia-bin julia-bin
# hardware # hardware

View file

@ -138,7 +138,7 @@
lock = "udisksctl lock -b"; lock = "udisksctl lock -b";
}; };
qt5 = { qt = {
enable = true; enable = true;
platformTheme = "gnome"; platformTheme = "gnome";
style = "adwaita-dark"; style = "adwaita-dark";