From c636397e6062b4d9471a4b5f4e9cf7d34a257131 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 2 Sep 2023 22:05:18 +0530 Subject: flake: init --- hosts/cez/configuration.nix | 40 ++++++++++++++++++++++++++++++++++++ hosts/cez/hardware-configuration.nix | 38 ++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 hosts/cez/configuration.nix create mode 100644 hosts/cez/hardware-configuration.nix (limited to 'hosts/cez') diff --git a/hosts/cez/configuration.nix b/hosts/cez/configuration.nix new file mode 100644 index 0000000..ac2d2ea --- /dev/null +++ b/hosts/cez/configuration.nix @@ -0,0 +1,40 @@ +{ config, pkgs, ... }: + +let + user = config.userdata.user; +in +{ + imports = [ + ./hardware-configuration.nix + ../../modules/wayland.nix + ../../modules/sshfs.nix + ../common.nix + ]; + + boot = { + initrd.luks.reusePassphrases = true; + consoleLogLevel = 3; + kernelPackages = pkgs.linuxPackages_latest; + }; + sound = { + enable = true; + extraConfig = '' + defaults.pcm.card 1 + defaults.ctl.card 1 + ''; + }; + + networking = { + hostName = "cez"; + dhcpcd.wait = "background"; + wireless.iwd.enable = true; + }; + + services = { + getty.autologinUser = user; + pipewire = { + enable = true; + pulse.enable = true; + }; + }; +} diff --git a/hosts/cez/hardware-configuration.nix b/hosts/cez/hardware-configuration.nix new file mode 100644 index 0000000..70ad4aa --- /dev/null +++ b/hosts/cez/hardware-configuration.nix @@ -0,0 +1,38 @@ +{ modulesPath, ... }: + +{ + imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; + + boot = { + kernelModules = [ "kvm-amd" ]; + initrd = { + availableKernelModules = [ + "nvme" + "xhci_pci" + "ahci" + "usb_storage" + "sd_mod" + "sdhci_pci" + ]; + luks.devices = { + "cryptroot".device = "/dev/disk/by-uuid/445abd75-6887-4b10-8483-a4be94f1fffd"; + "crypthome".device = "/dev/disk/by-uuid/b1f57828-d0c3-4b0b-9d32-5e7e96651eda"; + }; + }; + }; + + fileSystems = { + "/" = { + device = "/dev/disk/by-uuid/1df57eaf-50cd-405d-85ef-ccd1f2649227"; + fsType = "ext4"; + }; + "/boot" = { + device = "/dev/disk/by-uuid/EE3C-1135"; + fsType = "vfat"; + }; + "/home" = { + device = "/dev/disk/by-uuid/c6649ef3-f96d-4a11-ae20-d8d937d8a8e4"; + fsType = "ext4"; + }; + }; +} -- cgit v1.2.3