mirror of
https://github.com/alyssadev/nixos.git
synced 2025-10-14 04:59:39 +10:00
update
This commit is contained in:
parent
ae314607e0
commit
974b0e57f1
3 changed files with 73 additions and 7 deletions
35
system/aly-server.nix
Normal file
35
system/aly-server.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
({ config, pkgs, ... }: {
|
||||
system.stateVersion = "25.05";
|
||||
virtualisation.hypervGuest.enable = true;
|
||||
boot.blacklistedKernelModules = [ "hyperv_fb" ];
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
cargo rustc just git wget gcc gnumake autoconf automake pkg-config cifs-utils
|
||||
];
|
||||
programs.nixvim.enable = true;
|
||||
programs.nixvim.defaultEditor = true;
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
time.timeZone = "Australia/Brisbane";
|
||||
users.users.aly = {
|
||||
isNormalUser = true;
|
||||
description = "aly";
|
||||
hashedPassword = "$y$j9T$Q.yFJjo9LMA8o.7Ac5uSr/$Y8pYIPSzCXHSd4nAlUohaaohwpquK6XEIjxFKq3J4s/";
|
||||
openssh.authorizedKeys.keys = import ../data/authorized_keys.nix;
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
};
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
X11Forwarding = true;
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = true;
|
||||
};
|
||||
openFirewall = true;
|
||||
};
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue