about summary refs log tree commit diff
path: root/hosts/phobos
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-17 19:09:27 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-17 19:09:27 +0200
commitad58b57df7b298bc3e25c578f590d44da3ce36c9 (patch)
tree28be43da790fa014e13a7284e5a5979537a8721a /hosts/phobos
downloadnixos-config-ad58b57df7b298bc3e25c578f590d44da3ce36c9.tar.gz
nixos-config-ad58b57df7b298bc3e25c578f590d44da3ce36c9.tar.bz2
nixos-config-ad58b57df7b298bc3e25c578f590d44da3ce36c9.zip
Initial commit
Diffstat (limited to 'hosts/phobos')
-rw-r--r--hosts/phobos/default.nix29
-rw-r--r--hosts/phobos/hardware.nix40
-rw-r--r--hosts/phobos/home.nix9
3 files changed, 78 insertions, 0 deletions
diff --git a/hosts/phobos/default.nix b/hosts/phobos/default.nix
new file mode 100644
index 0000000..cbefcba
--- /dev/null
+++ b/hosts/phobos/default.nix
@@ -0,0 +1,29 @@
+# Edit this configuration file to define what should be installed on
+# your system.  Help is available in the configuration.nix(5) man page
+# and in the NixOS manual (accessible by running ‘nixos-help’).
+
+{ config, pkgs, lib, secrets, hostname, inputs, user, ... }: {
+
+  imports = [
+    # Include the results of the hardware scan.
+    ./hardware.nix
+  ];
+
+  # Define on which hard drive you want to install Grub.
+  boot.loader.grub.device = "/dev/sdb"; # or "nodev" for efi only
+
+  # Pick only one of the below networking options.
+  networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
+  networking.wireless.networks = secrets.wifi;
+  # networking.networkmanager.enable = true;  # Easiest to use and most distros use this by default.
+
+  # Configure network proxy if necessary
+  # networking.proxy.default = "http://user:password@proxy:port/";
+  # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
+
+  environment.systemPackages = with pkgs;
+    [
+
+    ];
+}
+
diff --git a/hosts/phobos/hardware.nix b/hosts/phobos/hardware.nix
new file mode 100644
index 0000000..6194c2d
--- /dev/null
+++ b/hosts/phobos/hardware.nix
@@ -0,0 +1,40 @@
+{ config, lib, pkgs, modulesPath, ... }:
+let
+  powerMode = "performance";
+in
+{
+  imports = [ ];
+
+  boot.initrd.availableKernelModules =
+    [ "xhci_pci" "ahci" "usbhid" "sd_mod" "sdhci_pci" ];
+  boot.initrd.kernelModules = [ ];
+  boot.kernelModules = [ "kvm_intel" ];
+  boot.extraModulePackages = [ ];
+  boot.kernelParams = [ "net.ifnames=0" "biosdevname=0" "iomem=relaxed" ];
+
+  fileSystems."/" = {
+    device = "/dev/disk/by-uuid/2a0ba6f5-a4ec-4614-9bd2-11b4a66d5d82";
+    fsType = "ext4";
+  };
+
+  swapDevices = [ ];
+
+  powerManagement.cpuFreqGovernor = powerMode;
+
+  services.xserver.videoDrivers = [ "intel" ];
+  #  hardware.nvidia.modesetting.enable = true;
+  hardware.opengl.enable = true;
+  hardware.opengl.driSupport = true;
+  #services.xserver.videoDrivers = [ "nvidia" ];
+
+  /* hardware.nvidia.prime = {
+    sync.enable = true;
+
+    # Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA
+    nvidiaBusId = "PCI:1:0:0";
+
+    # Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA
+    intelBusId = "PCI:0:2:0";
+    };
+  */
+}
diff --git a/hosts/phobos/home.nix b/hosts/phobos/home.nix
new file mode 100644
index 0000000..2cb65eb
--- /dev/null
+++ b/hosts/phobos/home.nix
@@ -0,0 +1,9 @@
+{ config, lib, pkgs, inputs, user, hostname, secrets, ... }:
+{
+  home.packages = with pkgs; [
+    (minecraft.override { jre = pkgs.jdk8; })
+    jetbrains.idea-community
+    calibre
+    qtcreator
+  ];
+}