refactor: switch to hostName variable | style: reorganize environment.systemPackages | style: fix whitespace formatting for udev rules | feat: add cloudflared to environment.systemPackages

This commit is contained in:
autumn-the-kitty-cat
2025-11-17 23:03:24 -05:00
parent e109b48cf6
commit e4a5dd8061
+16 -7
View File
@@ -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 = {