adding server config to repo. setting up laptop in repo. other changes.

This commit is contained in:
2026-01-31 10:37:44 -06:00
parent 11af2f699f
commit 4d7713173d
13 changed files with 515 additions and 18 deletions

View 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";
}