aaaa
This commit is contained in:
parent
1d34736ebf
commit
eda4ade7e7
|
@ -1,44 +1,59 @@
|
||||||
{
|
# {
|
||||||
pkgs,
|
# pkgs,
|
||||||
lib,
|
# lib,
|
||||||
inputs,
|
# inputs,
|
||||||
...
|
# ...
|
||||||
}: let
|
# }: let
|
||||||
sshKeys = import ../../crypto/ssh-keys.nix;
|
# sshKeys = import ../../crypto/ssh-keys.nix;
|
||||||
in {
|
# in {
|
||||||
|
# imports = [
|
||||||
|
# ./hardware-configuration.nix
|
||||||
|
# ../../common/base.nix
|
||||||
|
# ];
|
||||||
|
|
||||||
|
# networking = {
|
||||||
|
# hostName = "vulpecula";
|
||||||
|
|
||||||
|
# firewall = {
|
||||||
|
# allowedTCPPorts = [
|
||||||
|
# # 2342
|
||||||
|
# # 8080 # ?
|
||||||
|
# # 9000
|
||||||
|
# # 9002
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
|
# # nix.settings.trusted-users = ["root" "@wheel"]; # TODO
|
||||||
|
|
||||||
|
# users.users.tasia = {
|
||||||
|
# isNormalUser = true;
|
||||||
|
# description = "Tasia";
|
||||||
|
# extraGroups = ["networkmanager" "wheel"];
|
||||||
|
# initialPassword = "correcthorsebatterystaple";
|
||||||
|
# openssh.authorizedKeys.keys = [
|
||||||
|
# sshKeys.tasia.yaseen
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
|
||||||
|
# environment.systemPackages = with pkgs; [
|
||||||
|
# ];
|
||||||
|
|
||||||
|
# # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
|
# system.stateVersion = "24.05";
|
||||||
|
# }
|
||||||
|
{ ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../common/base.nix
|
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
networking = {
|
boot.tmp.cleanOnBoot = true;
|
||||||
hostName = "vulpecula";
|
zramSwap.enable = true;
|
||||||
|
networking.hostName = "vulpecula";
|
||||||
firewall = {
|
networking.domain = "";
|
||||||
allowedTCPPorts = [
|
services.openssh.enable = true;
|
||||||
# 2342
|
users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILLyDLtqUhEQwIsPx0XgQ9OJb2+XxL+2ra4goNJEgwf0 tasia@yaseen'' ];
|
||||||
# 8080 # ?
|
|
||||||
# 9000
|
|
||||||
# 9002
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# nix.settings.trusted-users = ["root" "@wheel"]; # TODO
|
|
||||||
|
|
||||||
users.users.tasia = {
|
|
||||||
isNormalUser = true;
|
|
||||||
description = "Tasia";
|
|
||||||
extraGroups = ["networkmanager" "wheel"];
|
|
||||||
initialPassword = "correcthorsebatterystaple";
|
|
||||||
openssh.authorizedKeys.keys = [
|
|
||||||
sshKeys.tasia.yaseen
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
];
|
|
||||||
|
|
||||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,19 +8,19 @@
|
||||||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" ];
|
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" "virtio_pci" "virtio_scsi" "sd_mod" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ "nvme" ];
|
||||||
boot.kernelModules = [ ];
|
boot.kernelModules = [ ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/d20e3fab-fca2-4656-90a6-01d7af7f928b";
|
{ device = "/dev/disk/by-uuid/c56e47f8-ae8e-4ffa-b721-7257295a90a6";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/mnt" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/f50b489b-d2fb-48f8-a8d8-c687339ed3f2";
|
{ device = "/dev/disk/by-uuid/c69a328c-0416-48f5-ad1e-cd03e45fe1ab";
|
||||||
fsType = "ext4";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
@ -33,5 +33,5 @@
|
||||||
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
|
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
}
|
boot.loader.grub.device = "/dev/sda";
|
||||||
|
}
|
Loading…
Reference in a new issue