Grapple4139

flake.nix

Sep 4th, 2023 (edited)
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | Software | 0 0
  1. {
  2. inputs.nixpkgs.url = github:NixOS/nixpkgs;
  3. inputs.disko.url = github:nix-community/disko;
  4. inputs.disko.inputs.nixpkgs.follows = "nixpkgs";
  5.  
  6. outputs = { self, nixpkgs, disko, ... }@attrs: {
  7. nixosConfigurations.aldebaran = nixpkgs.lib.nixosSystem {
  8. system = "x86_64-linux";
  9. specialArgs = attrs;
  10. modules = [
  11. ({modulesPath, ... }: {
  12. imports = [
  13. (modulesPath + "/installer/scan/not-detected.nix")
  14. (modulesPath + "/profiles/qemu-guest.nix")
  15. disko.nixosModules.disko
  16. ];
  17.  
  18. disko.devices = import ./disk-config.nix {
  19. lib = nixpkgs.lib;
  20. };
  21.  
  22. boot.loader.grub = {
  23. devices = [ "/dev/vda" ];
  24. efiSupport = true;
  25. efiInstallAsRemovable = true;
  26. };
  27.  
  28. services.openssh = {
  29. enable = true;
  30. settings = {
  31. PermitRootLogin = "yes";
  32. };
  33. };
  34.  
  35. users.users.root.openssh.authorizedKeys.keys = [
  36. "[email protected]·<cut>·user@fedora-laptop"
  37. ];
  38. })
  39. ];
  40. };
  41. };
  42. }
Advertisement
Add Comment
Please, Sign In to add comment