commit 2e768daefaaee2c78abd8c37e9a9437e78670656 Author: System administrator Date: Tue Mar 17 18:20:35 2026 +0000 Initial commit diff --git a/configuration.nix b/configuration.nix new file mode 100644 index 0000000..aa82f7f --- /dev/null +++ b/configuration.nix @@ -0,0 +1,34 @@ +{ config, pkgs, lib, ... }: { + imports = [ + ./hardware-configuration.nix + + + ]; + + # Workaround for https://github.com/NixOS/nix/issues/8502 + services.logrotate.checkConfig = false; + + boot.tmp.cleanOnBoot = true; + zramSwap.enable = true; + networking.hostName = "nixos; + networking.domain = ""; + services.openssh.enable = true; + users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII0OjmlFPbz/H0sv+Y7L+rHR7KCD9lL7HIevEnqy48qH ashisgreat22@github.com'' ]; + system.stateVersion = "23.11"; + + + + + environment.systemPackages = with pkgs; [ + vim # Do not forget to add an editor, also! + wget + git + nano + kitty.terminfo + ]; + + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + + + +} diff --git a/hardware-configuration.nix b/hardware-configuration.nix new file mode 100644 index 0000000..d634744 --- /dev/null +++ b/hardware-configuration.nix @@ -0,0 +1,9 @@ +{ modulesPath, ... }: +{ + imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; + boot.loader.grub.device = "/dev/vda"; + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ]; + boot.initrd.kernelModules = [ "nvme" ]; + fileSystems."/" = { device = "/dev/vda1"; fsType = "ext4"; }; + +} diff --git a/nixos/configuration.nix b/nixos/configuration.nix new file mode 100644 index 0000000..2fb08ab --- /dev/null +++ b/nixos/configuration.nix @@ -0,0 +1,19 @@ +{ ... }: { + imports = [ + ./hardware-configuration.nix + + + ]; + + # Workaround for https://github.com/NixOS/nix/issues/8502 + services.logrotate.checkConfig = false; + + boot.tmp.cleanOnBoot = true; + zramSwap.enable = true; + networking.hostName = "ubuntu"; + networking.domain = ""; + services.openssh.enable = true; + users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII0OjmlFPbz/H0sv+Y7L+rHR7KCD9lL7HIevEnqy48qH ashisgreat22@github.com'' ]; + system.stateVersion = "23.11"; + +} diff --git a/nixos/hardware-configuration.nix b/nixos/hardware-configuration.nix new file mode 100644 index 0000000..d634744 --- /dev/null +++ b/nixos/hardware-configuration.nix @@ -0,0 +1,9 @@ +{ modulesPath, ... }: +{ + imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; + boot.loader.grub.device = "/dev/vda"; + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ]; + boot.initrd.kernelModules = [ "nvme" ]; + fileSystems."/" = { device = "/dev/vda1"; fsType = "ext4"; }; + +}