Add some more hardware bits before reinstalling
diff --git a/modules/cpu.nix b/modules/cpu.nix
new file mode 100644
index 0000000..28a52f7
--- /dev/null
+++ b/modules/cpu.nix
@@ -0,0 +1,5 @@
+{
+ config = {
+ powerManagement.cpuFreqGovernor = "ondemand";
+ };
+}
diff --git a/modules/filesystems.nix b/modules/filesystems.nix
index 2c30ee9..bb2b28a 100644
--- a/modules/filesystems.nix
+++ b/modules/filesystems.nix
@@ -13,5 +13,19 @@
fsType = "tmpfs";
options = ["defaults" "size=4G" "mode=755"];
};
+
+ fileSystems."/boot" = {
+ device = "/dev/disk/by-label/boot";
+ fsType = "vfat";
+ };
+
+ fileSystems."/nix" = {
+ device = "/dev/disk/by-label/nixos";
+ fsType = "ext4";
+ };
+
+ swapDevices = [
+ {device = "/dev/disk/by-label/swap";}
+ ];
};
}
diff --git a/modules/networking.nix b/modules/networking.nix
new file mode 100644
index 0000000..28ba47f
--- /dev/null
+++ b/modules/networking.nix
@@ -0,0 +1,16 @@
+{
+ config = {
+ networking.hostName = "python";
+
+ networking.wireless.iwd.enable = true;
+ networking.wireless.iwd.settings = {
+ Settings = {
+ AutoConnect = true;
+ AlwaysRandomizeAddress = true;
+ };
+ };
+ networking.search = [
+ "python.local"
+ ];
+ };
+}
diff --git a/modules/nix.nix b/modules/nix.nix
index 999068c..83954ce 100644
--- a/modules/nix.nix
+++ b/modules/nix.nix
@@ -16,5 +16,17 @@
options = "--delete-older-than 7d";
};
};
+
+ # This value determines the NixOS release from which the default
+ # settings for stateful data, like file locations and database versions
+ # on your system were taken. It‘s perfectly fine and recommended to leave
+ # this value at the release version of the first install of this system.
+ # Before changing this value read the documentation for this option
+ # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
+ system.stateVersion = "22.05"; # Did you read the comment?
+ };
+
+ home = {
+ home.stateVersion = "22.05";
};
}