initial commit

This commit is contained in:
Khaïs COLIN 2024-08-22 09:37:38 +00:00
commit d302ab2e9b
2 changed files with 27 additions and 0 deletions

18
configuration.nix Normal file
View file

@ -0,0 +1,18 @@
{ pkgs, ... }: {
imports = [
./hardware-configuration.nix
];
environment.systemPackages = with pkgs; [
neovim
git
];
boot.tmp.cleanOnBoot = true;
zramSwap.enable = true;
networking.hostName = "quasar";
networking.domain = "";
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKQNIDqvhcfLKIDJybVI0o32CSDZpBXxjRxXj6OVQ93E khais@nixos'' ];
system.stateVersion = "23.11";
}

View file

@ -0,0 +1,9 @@
{ modulesPath, ... }:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.loader.grub.device = "/dev/sda";
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
boot.initrd.kernelModules = [ "nvme" ];
fileSystems."/" = { device = "/dev/sda3"; fsType = "ext4"; };
}