Merge branch 'main' of github.com:jroeger23/.nixos

This commit is contained in:
Jonas Röger 2025-04-03 13:06:19 +02:00
commit 77fbd2f0b4
Signed by: jonas
GPG Key ID: 4000EB35E1AE0F07
2 changed files with 36 additions and 2 deletions

View File

@ -1,7 +1,6 @@
{pkgs, ...}: {
imports = [
# Include the results of the hardware scan.
# ./hardware-configuration.nix
./hardware-configuration.nix
../../modules/services/nextcloud-instance.nix
];
@ -50,6 +49,8 @@
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.11"; # Did you read the comment?
boot.loader.grub.device = "/dev/sda";
# Set your time zone.
time.timeZone = "Europe/Berlin";

View File

@ -0,0 +1,33 @@
# 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" "virtio_scsi" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/8682be2b-6620-46be-9350-c7ba0adb8f34";
fsType = "ext4";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/ee56aac9-2977-4234-9d0e-933fc2c59fdf"; }
];
# 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";
}