adding server config to repo. setting up laptop in repo. other changes.
This commit is contained in:
45
hosts/server/configuration.nix
Normal file
45
hosts/server/configuration.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./nginx.nix
|
||||
];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "lily-server";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
PermitRootLogin = "no";
|
||||
X11Forwarding = false;
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
networking.firewall.allowedTCPPorts = [ 22 80 443 9001 9002 ];
|
||||
|
||||
users.users.lily = {
|
||||
isNormalUser = true;
|
||||
description = "Lily Luna";
|
||||
extraGroups = [ "networkmanager" "wheel" "lily" "input" "uinput" ];
|
||||
};
|
||||
users.groups.lily = { };
|
||||
|
||||
programs.nh = {
|
||||
enable = true;
|
||||
flake = "/home/lily/Programming/LiNix26";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [ vim firefox ];
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
Reference in New Issue
Block a user