From 528cf24849239b7daeeba468a169f342dc9ef824 Mon Sep 17 00:00:00 2001 From: mc-fucker Date: Thu, 24 Feb 2022 20:26:11 +0100 Subject: [PATCH] added mc6 --- systems/mc6/configuration.nix | 16 ++++++++++++++++ systems/mc6/hardware-configuration.nix | 7 +++++++ 2 files changed, 23 insertions(+) create mode 100644 systems/mc6/configuration.nix create mode 100644 systems/mc6/hardware-configuration.nix diff --git a/systems/mc6/configuration.nix b/systems/mc6/configuration.nix new file mode 100644 index 0000000..f4d5497 --- /dev/null +++ b/systems/mc6/configuration.nix @@ -0,0 +1,16 @@ +{ ... }: { + imports = [ + ./hardware-configuration.nix + ./modules/generic.nix + + + ]; + + #boot.cleanTmpDir = true; + #zramSwap.enable = true; + networking.hostName = "mc6"; + services.openssh.enable = true; + #users.users.root.openssh.authorizedKeys.keys = [ + # "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFyGaBZIZYjiBhOFD2drvG316B9NUVSbMpTIhOCQur8P" + #]; +} diff --git a/systems/mc6/hardware-configuration.nix b/systems/mc6/hardware-configuration.nix new file mode 100644 index 0000000..7ac1c80 --- /dev/null +++ b/systems/mc6/hardware-configuration.nix @@ -0,0 +1,7 @@ +{ modulesPath, ... }: +{ + imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; + boot.loader.grub.device = "/dev/sda"; + boot.initrd.kernelModules = [ "nvme" ]; + fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; }; +}