summaryrefslogtreecommitdiff
path: root/hosts/template
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2024-09-17 18:14:22 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2024-09-17 18:14:22 +0200
commitfe0e613928323f9dc538f1bdea8138456abffc4b (patch)
tree019728342ae0f3329ab9ff631c02e55e4472f18a /hosts/template
create nix configuration
Diffstat (limited to 'hosts/template')
-rw-r--r--hosts/template/default.nix26
-rw-r--r--hosts/template/hardware.nix31
2 files changed, 57 insertions, 0 deletions
diff --git a/hosts/template/default.nix b/hosts/template/default.nix
new file mode 100644
index 0000000..0433557
--- /dev/null
+++ b/hosts/template/default.nix
@@ -0,0 +1,26 @@
+{ ... }:
+{
+ imports = [
+ ./hardware.nix
+ ../../modules/hyprland/monitor.nix
+ ];
+
+ networking.hostName = "template";
+
+ boot.loader = {
+ grub = {
+ enable = true;
+ device = "/dev/vda";
+ };
+ };
+
+ hyprland.monitors = {
+ default = {
+ resolution = "preferred";
+ position = "auto";
+ scale = 1;
+ };
+ };
+
+ system.stateVersion = "24.05";
+}
diff --git a/hosts/template/hardware.nix b/hosts/template/hardware.nix
new file mode 100644
index 0000000..0705cb6
--- /dev/null
+++ b/hosts/template/hardware.nix
@@ -0,0 +1,31 @@
+# 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 + "/profiles/qemu-guest.nix")
+ ];
+
+ boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
+ boot.initrd.kernelModules = [ ];
+ boot.kernelModules = [ "kvm-intel" ];
+ boot.extraModulePackages = [ ];
+
+ fileSystems."/" =
+ { device = "/dev/disk/by-uuid/ca998991-940e-4566-a005-0047b6a246fa";
+ fsType = "btrfs";
+ };
+
+ swapDevices = [ ];
+
+ # 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.enp1s0.useDHCP = lib.mkDefault true;
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+}