❄️ Dotfiles for our NixOS system configuration.

chore: formatting

Chloe 64dea74b 04566a8d

+2 -2
modules/base/nix.nix
···
# Optimize symlinks.
optimise.automatic = true;
-
+
settings = {
# Literally a CVE waiting to happen.
accept-flake-config = false;
···
};
};
-
# Allow unfree packages.
+
# Allow unfree packages.
# This is sadly not enough as I still have to pass the --impure flag. Yawn.
nixpkgs.config.allowUnfree = true;
}
+1 -1
modules/darwin/environment/default.nix
···
imports = [
./locale.nix
];
-
}
+
}
+1 -1
modules/darwin/environment/locale.nix
···
AppleMetricUnits = 1;
AppleTemperatureUnit = "Celsius";
};
-
}
+
}
+1 -1
modules/darwin/extras.nix
···
imports = [
inputs.home-manager.darwinModules.home-manager
];
-
}
+
}
+2 -2
modules/darwin/homebrew.nix
···
# Enable Homebrew
homebrew = {
enable = true;
-
+
# Update Homebrew and upgrade all packages on activation
onActivation = {
autoUpdate = true;
···
};
# Taps (third-party repositories)
-
taps = [];
+
taps = [ ];
# Formulae (CLI tools)
brews = [
+1 -1
modules/darwin/legacy.nix
···
# See https://nix-darwin.github.io/nix-darwin/manual/#opt-system.primaryUser.
system.primaryUser = "chloe";
-
}
+
}
+1 -1
modules/darwin/nix.nix
···
"x86-64-darwin"
];
};
-
}
+
}
+1 -1
modules/darwin/packages.nix
···
environment.systemPackages = with pkgs; [
nh
];
-
}
+
}
+1 -1
modules/darwin/preferences/default.nix
···
./keyboard.nix
./trackpad.nix
];
-
}
+
}
+1 -1
modules/darwin/preferences/dock.nix
···
tilesize = 52;
minimize-to-application = true;
};
-
}
+
}
+1 -1
modules/darwin/preferences/finder.nix
···
ShowPathbar = true;
FXEnableExtensionChangeWarning = false;
};
-
}
+
}
+1 -1
modules/darwin/preferences/keyboard.nix
···
{
system.keyboard.enableKeyMapping = true;
-
}
+
}
+1 -1
modules/darwin/preferences/trackpad.nix
···
Clicking = true;
Dragging = true;
};
-
}
+
}
+1 -1
modules/darwin/security/default.nix
···
imports = [
./pam.nix
];
-
}
+
}
+1 -1
modules/darwin/security/pam.nix
···
{
# Enable Touch ID authentication for sudo
security.pam.services.sudo_local.touchIdAuth = true;
-
}
+
}
+1 -1
modules/nixos/boot/default.nix
···
./grub.nix
./systemd-boot.nix
];
-
}
+
}
+9 -7
modules/nixos/boot/systemd-boot.nix
···
};
};
-
config = lib.mkIf (config.settings.bootloader.enable && config.settings.bootloader.systemd-boot.enable) {
-
boot.loader = {
-
timeout = 2;
-
systemd-boot.enable = true;
-
efi.canTouchEfiVariables = true;
-
};
-
};
+
config =
+
lib.mkIf (config.settings.bootloader.enable && config.settings.bootloader.systemd-boot.enable)
+
{
+
boot.loader = {
+
timeout = 2;
+
systemd-boot.enable = true;
+
efi.canTouchEfiVariables = true;
+
};
+
};
}
+1 -1
modules/nixos/environment/default.nix
···
imports = [
./locale.nix
];
-
}
+
}
+1 -1
modules/nixos/extras.nix
···
imports = [
inputs.home-manager.nixosModules.home-manager
];
-
}
+
}
+7 -2
modules/nixos/hardware/bluetooth.nix
···
-
{ lib, config, types, ... }:
+
{
+
lib,
+
config,
+
types,
+
...
+
}:
{
options.hardware.bluetooth.enable = {
···
config = {
hardware.bluetooth.enable = lib.mkIf config.hardware.bluetooth.enable true;
};
-
}
+
}
+1 -1
modules/nixos/hardware/video.nix
···
enable32Bit = true;
};
};
-
}
+
}
+1 -1
modules/nixos/headless.nix
···
AllowHibernation=no
'';
};
-
}
+
}
+1 -1
modules/nixos/networking/default.nix
···
./networkmanager.nix
./tailscale.nix
];
-
}
+
}
+6 -1
modules/nixos/networking/firewall.nix
···
-
{ lib, config, pkgs, ... }:
+
{
+
lib,
+
config,
+
pkgs,
+
...
+
}:
{
options.settings.firewall = {
+1 -1
modules/nixos/networking/networkmanager.nix
···
# On rebuilds, NetworkManager's wait online process often fails, so we disable it.
systemd.services.NetworkManager-wait-online.enable = false;
-
}
+
}
+5 -3
modules/nixos/networking/tailscale.nix
···
};
};
};
-
+
config = lib.mkIf config.settings.tailscale.enable {
settings.firewall.allowedUDPPorts = [ config.services.tailscale.port ];
···
enable = true;
permitCertUid = "root";
useRoutingFeatures = lib.mkDefault "server";
-
extraUpFlags = config.settings.tailscale.defaultFlags ++ lib.optionals config.settings.tailscale.isServer [ "--advertise-exit-node" ];
+
extraUpFlags =
+
config.settings.tailscale.defaultFlags
+
++ lib.optionals config.settings.tailscale.isServer [ "--advertise-exit-node" ];
};
# A server cannot be a client and vice versa
···
}
];
};
-
}
+
}
+1 -1
modules/nixos/polkit.nix
···
{
security.polkit.enable = true; # Enable PolKit for system authentication in 1Password
-
}
+
}
+1 -1
modules/nixos/programs/kdeconnect.nix
···
config = lib.mkIf config.settings.desktop.kde.enable {
programs.kdeconnect.enable = true;
};
-
}
+
}
+1 -1
modules/nixos/programs/nh.nix
···
{
programs.nh.enable = true;
-
}
+
}
+1 -1
modules/nixos/programs/nix-ld.nix
···
{
programs.nix-ld.enable = true;
-
}
+
}
+7 -2
modules/nixos/programs/solaar.nix
···
-
{ lib, config, inputs, ... }:
+
{
+
lib,
+
config,
+
inputs,
+
...
+
}:
{
imports = [
···
batteryIcons = "symbolic";
};
};
-
}
+
}
+1 -1
modules/nixos/services/default.nix
···
./flatpak.nix
./ssh.nix
];
-
}
+
}
+1 -1
modules/nixos/services/flatpak.nix
···
config = {
services.flatpak.enable = config.settings.profiles.graphical.enable;
};
-
}
+
}
+2 -2
modules/nixos/services/ssh.nix
···
default = true;
description = "Enable SSH service";
};
-
+
passwordAuthentication = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Allow password authentication";
};
-
+
permitRootLogin = lib.mkOption {
type = lib.types.str;
default = "no";
+1 -1
modules/nixos/users.nix
···
];
shell = pkgs.zsh;
-
+
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEJOAijXc0QNfeoCsQkaB7ybm9G+4EpFthOGy+fy+YbT"
];
+1 -1
modules/shared/default.nix
···
imports = [
./profiles.nix
];
-
}
+
}
+1 -1
modules/wsl/default.nix
···
# Windows manages the firewall for us, so disable NixOS specific firewall settings.
settings.firewall.enable = false;
-
+
# Allow opening files and links in Windows from WSL
environment.variables.BROWSER = "wsl-open";
};
+1 -1
modules/wsl/extras.nix
···
imports = [
inputs.nixos-wsl.nixosModules.default
];
-
}
+
}