Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit079cbadd611b2aefd7c06886193c8d751e4c00da (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-11-28 10:24:16 +0200
Committer
 Syndamia <kamen@syndamia.com>
2023-11-28 10:24:16 +0200
Files97a6436b9bc6aaaf860c44ca1f8644fedc46083c
nix-079cbadd611b2aefd7c06886193c8d751e4c00da.tar
nix-079cbadd611b2aefd7c06886193c8d751e4c00da.tar.gz
nix-079cbadd611b2aefd7c06886193c8d751e4c00da.zip
Parentb2faeb64fa3ac16220d5d805fb5e5b9b25e05205 (diff)
[juno] Separated config into its own folder
3 files changed, 50 insertions, 2 deletions
-rw-r--r--.gitignore2
-rw-r--r--machines/juno/hardware-configuration.nix44
-rw-r--r--machines/juno/sysidentity.nix6
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index cd639c9..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-sysidentity.nix
-hardware-configuration.nix
diff --git a/machines/juno/hardware-configuration.nix b/machines/juno/hardware-configuration.nix
new file mode 100644
index 0000000..3318aca
--- /dev/null
+++ b/machines/juno/hardware-configuration.nix
@@ -0,0 +1,44 @@
+# 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 = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
+ boot.initrd.kernelModules = [ ];
+ boot.kernelModules = [ ];
+ boot.extraModulePackages = [ ];
+
+ fileSystems."/" =
+ { device = "/dev/disk/by-uuid/3b025495-743b-4ed1-a54f-fec741c9e6e5";
+ fsType = "ext4";
+ };
+
+ fileSystems."/boot" =
+ { device = "/dev/disk/by-uuid/9929-AA56";
+ fsType = "vfat";
+ };
+
+ fileSystems."/home" =
+ { device = "/dev/disk/by-uuid/b49844a0-d4e3-4677-8050-5b613dec785f";
+ fsType = "ext4";
+ };
+
+ swapDevices = [ { device = "/home/swapfile"; size = 16 * 1024; } ];
+
+ # 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.enp0s31f6.useDHCP = lib.mkDefault true;
+ # networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+ powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
+ hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+}
diff --git a/machines/juno/sysidentity.nix b/machines/juno/sysidentity.nix
new file mode 100644
index 0000000..1bc6575
--- /dev/null
+++ b/machines/juno/sysidentity.nix
@@ -0,0 +1,6 @@
+{
+ sysidentity = {
+ name = "juno";
+ type = "laptop";
+ };
+}