summaryrefslogtreecommitdiff
path: root/os/cez/hardware-configuration.nix
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-06-01 19:25:59 +0530
committersinanmohd <sinan@sinanmohd.com>2024-06-01 19:26:13 +0530
commit8febb2fad131dc1ff42a2c667b26b013d64c17b8 (patch)
treecf33b3a20def6ab7836a037b5195cc617647fa9c /os/cez/hardware-configuration.nix
parent5c48d5ad41221dbfa186701ba40404bd2571c242 (diff)
repo: ./nixos -> ./os
Diffstat (limited to 'os/cez/hardware-configuration.nix')
-rw-r--r--os/cez/hardware-configuration.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/os/cez/hardware-configuration.nix b/os/cez/hardware-configuration.nix
new file mode 100644
index 0000000..b338df5
--- /dev/null
+++ b/os/cez/hardware-configuration.nix
@@ -0,0 +1,34 @@
+{ modulesPath, pkgs, ... }:
+
+{
+ imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
+
+ boot = {
+ kernelParams = [ "quiet" ];
+ loader.systemd-boot.enable = true;
+
+ plymouth = {
+ enable = true;
+ theme = "lone";
+ themePackages = with pkgs; [ adi1090x-plymouth-themes ];
+ };
+
+ initrd = {
+ systemd.enable = true;
+ kernelModules = [ "amdgpu" ];
+ luks.devices."crypt".device =
+ "/dev/disk/by-uuid/84acd784-caad-41a1-a2e4-39468d01fefd";
+ };
+ };
+
+ fileSystems = {
+ "/boot" = {
+ device = "/dev/disk/by-uuid/E37E-F611";
+ fsType = "vfat";
+ };
+ "/" = {
+ device = "/dev/disk/by-uuid/e063c9ad-b48f-4b6c-b94e-4c21d2238bce";
+ fsType = "ext4";
+ };
+ };
+}