commit d302ab2e9bf6c5435c19cdf7cc1be8edf858de70 Author: Khaïs COLIN Date: Thu Aug 22 09:37:38 2024 +0000 initial commit diff --git a/configuration.nix b/configuration.nix new file mode 100644 index 0000000..9a1d890 --- /dev/null +++ b/configuration.nix @@ -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"; +} diff --git a/hardware-configuration.nix b/hardware-configuration.nix new file mode 100644 index 0000000..08ea065 --- /dev/null +++ b/hardware-configuration.nix @@ -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"; }; + +}