summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/nixedo/default.nix64
-rw-r--r--hosts/nixedo/hardware.nix42
-rw-r--r--hosts/template/default.nix26
-rw-r--r--hosts/template/hardware.nix31
4 files changed, 163 insertions, 0 deletions
diff --git a/hosts/nixedo/default.nix b/hosts/nixedo/default.nix
new file mode 100644
index 0000000..2b422d2
--- /dev/null
+++ b/hosts/nixedo/default.nix
@@ -0,0 +1,64 @@
+{ lib, pkgs, ... }:
+{
+ imports = [
+ ./hardware.nix
+ ../../modules/hyprland/monitor.nix
+ ];
+
+ networking.hostName = "nixedo";
+
+ boot.loader = {
+ efi.canTouchEfiVariables = true;
+ grub = {
+ enable = true;
+ device = "nodev";
+ efiSupport = true;
+ };
+ };
+
+ hyprland.monitors = {
+ default = {
+ resolution = "preferred";
+ position = "auto";
+ scale = 1;
+ };
+
+ eDP-1 = {
+ resolution = "preferred";
+ position = "auto";
+ scale = 1;
+ bar.enable = true;
+ };
+ };
+
+ webtray.instances = {
+ element = {
+ url = "https://chat.nathanreiner.xyz";
+ autoStart = true;
+ openInWindow = false;
+ };
+ syncthing-tray = {
+ url = "http://localhost:8384";
+ autoStart = true;
+ openInWindow = false;
+ };
+ };
+
+ networking.networkmanager.fccUnlockScripts = [
+ {
+ id = "105b:e0ab";
+ path = "${pkgs.modemmanager}/share/ModemManager/fcc-unlock.available.d/105b:e0ab";
+ }
+ ];
+
+ systemd.services.ModemManager = {
+ enable = lib.mkForce true;
+ path = [ pkgs.libqmi ];
+ wantedBy = [
+ "multi-user.target"
+ "network.target"
+ ];
+ };
+
+ system.stateVersion = "24.05";
+}
diff --git a/hosts/nixedo/hardware.nix b/hosts/nixedo/hardware.nix
new file mode 100644
index 0000000..82d6b9e
--- /dev/null
+++ b/hosts/nixedo/hardware.nix
@@ -0,0 +1,42 @@
+# 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" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
+ boot.initrd.kernelModules = [ ];
+ boot.kernelModules = [ "kvm-intel" ];
+ boot.extraModulePackages = [ ];
+
+ fileSystems."/" =
+ { device = "/dev/disk/by-uuid/5701475d-62a8-4db1-afa6-68ed94c62fc5";
+ fsType = "btrfs";
+ };
+
+ boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/96f26456-b3da-4e96-b922-8ca24d842d60";
+
+ fileSystems."/boot" =
+ { device = "/dev/disk/by-uuid/9FFE-8996";
+ fsType = "vfat";
+ options = [ "fmask=0022" "dmask=0022" ];
+ };
+
+ 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.enp2s0f1.useDHCP = lib.mkDefault true;
+ # networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
+ # networking.interfaces.wwp0s20f0u6c2.useDHCP = lib.mkDefault true;
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+ hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+}
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";
+}