From e4a5dd80614f2899e00fffbbfb7f538b8551ff5c Mon Sep 17 00:00:00 2001 From: autumn-the-kitty-cat <147276465+autumn-the-kitty-cat@users.noreply.github.com> Date: Mon, 17 Nov 2025 23:03:24 -0500 Subject: [PATCH] refactor: switch to hostName variable | style: reorganize environment.systemPackages | style: fix whitespace formatting for udev rules | feat: add cloudflared to environment.systemPackages --- nixos/configuration.nix | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index df02d7f..90072cc 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, hostName, ... }: { imports = [ @@ -9,7 +9,7 @@ boot.loader.efi.canTouchEfiVariables = true; boot.tmp.cleanOnBoot = true; - networking.hostName = "nixos"; + networking.hostName = "${hostName}"; hardware.graphics.enable = true; @@ -20,8 +20,8 @@ i18n.defaultLocale = "en_CA.UTF-8"; services.udev.extraRules = '' - SUBSYSTEMS=="usb", ATTR{idVendor}=="*", MODE:="0666" - KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl" + SUBSYSTEMS=="usb", ATTR{idVendor}=="*", MODE:="0666" + KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl" ''; services.gnome.glib-networking.enable = true; @@ -45,6 +45,14 @@ services.printing.enable = true; + services.openssh = { + enable = true; + settings = { + PermitRootLogin = "no"; + PasswordAuthentication = false; + }; + }; + services.pulseaudio.enable = false; security.rtkit.enable = true; services.pipewire = { @@ -76,16 +84,17 @@ programs.dconf.enable = true; environment.systemPackages = with pkgs; [ - pavucontrol - wget + cloudflared + gparted networkmanagerapplet nh - gparted + pavucontrol (pkgs.catppuccin-sddm.override { flavor = "mocha"; font = "CaskaydiaCove Nerd Font"; fontSize = "12"; }) + wget ]; fonts = {