From c958be676389ee9d1fd2962b33f6645f1a3235cd Mon Sep 17 00:00:00 2001 From: smad Date: Fri, 24 Oct 2025 13:33:18 +0200 Subject: [PATCH] add amon + emacs --- hosts/worker/hardware-configuration-amon.nix | 31 ++++++++++++++++++++ modules/home-manager/emacs.nix | 6 ++++ 2 files changed, 37 insertions(+) create mode 100644 hosts/worker/hardware-configuration-amon.nix create mode 100644 modules/home-manager/emacs.nix diff --git a/hosts/worker/hardware-configuration-amon.nix b/hosts/worker/hardware-configuration-amon.nix new file mode 100644 index 0000000..fc7c5f3 --- /dev/null +++ b/hosts/worker/hardware-configuration-amon.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 = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/d38b7915-7d9f-4ffb-bff1-624902450344"; + fsType = "ext4"; + }; + + 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..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.ens18.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +} diff --git a/modules/home-manager/emacs.nix b/modules/home-manager/emacs.nix new file mode 100644 index 0000000..5a67402 --- /dev/null +++ b/modules/home-manager/emacs.nix @@ -0,0 +1,6 @@ +{ + + programs.emacs = { + enable = true; + }; +}