Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- inputs.nixpkgs.url = github:NixOS/nixpkgs;
- inputs.disko.url = github:nix-community/disko;
- inputs.disko.inputs.nixpkgs.follows = "nixpkgs";
- outputs = { self, nixpkgs, disko, ... }@attrs: {
- nixosConfigurations.aldebaran = nixpkgs.lib.nixosSystem {
- system = "x86_64-linux";
- specialArgs = attrs;
- modules = [
- ({modulesPath, ... }: {
- imports = [
- (modulesPath + "/installer/scan/not-detected.nix")
- (modulesPath + "/profiles/qemu-guest.nix")
- disko.nixosModules.disko
- ];
- disko.devices = import ./disk-config.nix {
- lib = nixpkgs.lib;
- };
- boot.loader.grub = {
- devices = [ "/dev/vda" ];
- efiSupport = true;
- efiInstallAsRemovable = true;
- };
- services.openssh = {
- enable = true;
- settings = {
- PermitRootLogin = "yes";
- };
- };
- users.users.root.openssh.authorizedKeys.keys = [
- "[email protected]·<cut>·user@fedora-laptop"
- ];
- })
- ];
- };
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment