-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
296 additions
and
37 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{lib, ...}: { | ||
# Set hostname | ||
networking.hostName = lib.mkForce "isshin"; # Define your hostname. | ||
|
||
# Eanble fingerprint for framework laptop | ||
fingerprint.enable = true; | ||
|
||
amd.enable = true; | ||
|
||
# Framework specific kernel Params | ||
boot = { | ||
kernelParams = [ | ||
#"quiet" | ||
#"splash" | ||
# "ahci.mobile_lpm_policy=3" | ||
# For Power consumption | ||
# https://kvark.github.io/linux/framework/2021/10/17/framework-nixos.html | ||
# "mem_sleep_default=deep" | ||
]; | ||
# initrd.kernelModules = ["i915"]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{inputs, ...}: { | ||
imports = [ | ||
# inputs.nixos-hardware.nixosModules.framework-11th-gen-intel | ||
inputs.nixos-hardware.nixosModules.framework-13-7040-amd | ||
|
||
./configuration.nix | ||
./hardware-configuration.nix | ||
|
||
../../modules/nixos | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Do not modify this file! It was generated by ‘nixos-generate-config’ | ||
# and may be overwritten by future invocations. Please make changes | ||
# to /etc/nixos/configuration.nix instead. | ||
{ config, lib, pkgs, modulesPath, ... }: | ||
|
||
{ | ||
imports = | ||
[ (modulesPath + "/installer/scan/not-detected.nix") | ||
]; | ||
|
||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ]; | ||
boot.initrd.kernelModules = [ ]; | ||
boot.kernelModules = [ "kvm-amd" ]; | ||
boot.extraModulePackages = [ ]; | ||
|
||
fileSystems."/" = | ||
{ device = "/dev/disk/by-uuid/b01b8966-afbd-47a4-9532-c520e2789584"; | ||
fsType = "ext4"; | ||
}; | ||
|
||
fileSystems."/boot" = | ||
{ device = "/dev/disk/by-uuid/BD45-D145"; | ||
fsType = "vfat"; | ||
options = [ "fmask=0022" "dmask=0022" ]; | ||
}; | ||
|
||
swapDevices = [ ]; | ||
|
||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking | ||
# (the default) this is the recommended approach. When using systemd-networkd it's | ||
# still possible to use this option, but it's recommended to use it in conjunction | ||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. | ||
networking.useDHCP = lib.mkDefault true; | ||
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true; | ||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; | ||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
pkgs, | ||
config, | ||
lib, | ||
... | ||
}: { | ||
options = { | ||
amd.enable = lib.mkEnableOption "Setup amd tools"; | ||
}; | ||
|
||
config = lib.mkIf config.amd.enable { | ||
boot.initrd.kernelModules = ["amdgpu"]; | ||
|
||
services.xserver.videoDrivers = ["amdgpu"]; | ||
|
||
environment.systemPackages = | ||
(with pkgs; [ | ||
amdgpu_top | ||
clinfo | ||
]) | ||
++ (with pkgs.rocmPackages; [ | ||
rocminfo | ||
]); | ||
|
||
hardware.opengl = { | ||
enable = true; | ||
driSupport = true; | ||
driSupport32Bit = true; | ||
extraPackages = | ||
(with pkgs; [ | ||
amdvlk | ||
]) | ||
++ (with pkgs.rocmPackages; [ | ||
clr.icd | ||
]); | ||
}; | ||
|
||
systemd.tmpfiles.rules = let | ||
rocmEnv = pkgs.symlinkJoin { | ||
name = "rocm-combined"; | ||
paths = with pkgs.rocmPackages; [ | ||
clr | ||
hipcc | ||
hipsolver | ||
hipblas | ||
rocblas | ||
rocalution | ||
rocfft | ||
rocm-runtime | ||
rocrand | ||
rocsparse | ||
rocsolver | ||
rccl | ||
# miopen | ||
]; | ||
}; | ||
in [ | ||
"L+ /opt/rocm - - - - ${rocmEnv}" | ||
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}" | ||
]; | ||
# systemd.tmpfiles.rules = [ | ||
# ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
pkgs, | ||
lib, | ||
config, | ||
... | ||
}: { | ||
options.cachix.enable = lib.mkEnableOption "Use cachix to manage nix caches for packages"; | ||
|
||
config = lib.mkIf config.cachix.enable { | ||
environment.systemPackages = with pkgs; [ | ||
cachix | ||
]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
pkgs, | ||
config, | ||
lib, | ||
... | ||
}: { | ||
options = { | ||
intel.enable = lib.mkEnableOption "Setup intel tools"; | ||
}; | ||
|
||
config = lib.mkIf config.intel.enable { | ||
environment.systemPackages = with pkgs; [ | ||
intel-gpu-tools | ||
]; | ||
}; | ||
} |
Oops, something went wrong.