diff --git a/boot.nix b/boot.nix index 9c7fc8d..f91709a 100644 --- a/boot.nix +++ b/boot.nix @@ -4,7 +4,7 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - boot.supportedFilesystems = ["zfs"]; + boot.supportedFilesystems = [ "zfs" ]; boot.zfs.forceImportRoot = false; - boot.zfs.extraPools = ["shokuhou" "mentalout"]; + boot.zfs.extraPools = [ "shokuhou" "mentalout" ]; } diff --git a/configuration.nix b/configuration.nix index 87878ef..520f971 100644 --- a/configuration.nix +++ b/configuration.nix @@ -6,7 +6,8 @@ { imports = - [ # Include the results of the hardware scan. + [ + # Include the results of the hardware scan. ./hardware-configuration.nix ./boot.nix ./networking.nix diff --git a/gui.nix b/gui.nix index d64fcf0..522ff5f 100644 --- a/gui.nix +++ b/gui.nix @@ -40,7 +40,7 @@ noto-fonts-cjk noto-fonts-emoji noto-fonts-extra - (nerdfonts.override { fonts = ["FiraCode"]; }) + (nerdfonts.override { fonts = [ "FiraCode" ]; }) ]; # Polkit is a dependency of Sway. It's responsible for handling security policies diff --git a/networking.nix b/networking.nix index 66cf775..01bc376 100644 --- a/networking.nix +++ b/networking.nix @@ -15,7 +15,7 @@ networking.interfaces = { enp4s0f1 = { - ipv4.addresses = [{ + ipv4.addresses = [{ address = "192.168.1.3"; prefixLength = 24; }]; @@ -27,7 +27,9 @@ }; networking.nameservers = [ - "192.168.1.5" "45.90.28.93" "45.90.30.93" + "192.168.1.5" + "45.90.28.93" + "45.90.30.93" ]; # This is necessary for ZFX @@ -47,7 +49,7 @@ networking.firewall = { enable = true; allowPing = true; - allowedTCPPorts = [2049]; + allowedTCPPorts = [ 2049 ]; }; services.avahi = { diff --git a/noah-home.nix b/noah-home.nix index 31095e7..4ea16c1 100644 --- a/noah-home.nix +++ b/noah-home.nix @@ -1,5 +1,5 @@ - -{ pkgs, lib, ... }: let +{ pkgs, lib, ... }: +let unstable = import { config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "jetbrains-toolbox" @@ -9,7 +9,8 @@ "plex" ]; }; -in { +in +{ home.packages = with pkgs; [ # main tool firefox-devedition diff --git a/packages.nix b/packages.nix index 69c1ee4..1f70013 100644 --- a/packages.nix +++ b/packages.nix @@ -1,5 +1,5 @@ { pkgs, lib, ... }: -let # bash script to let dbus know about important env variables and +let # bash script to let dbus know about important env variables and # propagate them to relevent services run at the end of sway config # see # https://github.com/emersion/xdg-desktop-portal-wlr/wiki/"It-doesn't-work"-Troubleshooting-Checklist @@ -27,14 +27,16 @@ let # bash script to let dbus know about important env variables and name = "configure-gtk"; destination = "/bin/configure-gtk"; executable = true; - text = let - # TODO: figure out why these bindings exist or where they're used - schema = pkgs.gsettings-desktop-schemas; - datadir = "${schema}/share/gsettings-schemas/${schema.name}"; - in '' -6 gnome_schema=org.gnome.desktop.interface - gsettings set $gnome_schema gtk-theme 'Dracula' - ''; + text = + let + # TODO: figure out why these bindings exist or where they're used + schema = pkgs.gsettings-desktop-schemas; + datadir = "${schema}/share/gsettings-schemas/${schema.name}"; + in + '' + 6 gnome_schema=org.gnome.desktop.interface + gsettings set $gnome_schema gtk-theme 'Dracula' + ''; }; in { diff --git a/services.nix b/services.nix index d3977dc..42a4387 100644 --- a/services.nix +++ b/services.nix @@ -123,7 +123,7 @@ }; services.plex = { - enable = false; + enable = true; openFirewall = false; # we proxy this with nginx group = "nas"; user = "noah"; diff --git a/shell.nix b/shell.nix index eeb2dd4..9573f74 100644 --- a/shell.nix +++ b/shell.nix @@ -1,4 +1,4 @@ -{ pkgs ? import {} }: +{ pkgs ? import { } }: pkgs.mkShell { packages = with pkgs; [ nil lua-language-server ]; } diff --git a/users.nix b/users.nix index 6ed252c..e7321b8 100644 --- a/users.nix +++ b/users.nix @@ -16,7 +16,7 @@ users.users.noah = { isNormalUser = true; shell = pkgs.fish; - extraGroups = [ "wheel" "video" "nas"]; # Enable ‘sudo’ for the user. + extraGroups = [ "wheel" "video" "nas" ]; # Enable ‘sudo’ for the user. hashedPasswordFile = "/etc/nixos/noah-password"; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDfjMaCPkTDKWEMLxL0iW3uhFHCpnoYDqrIZQUkdIWhj noah@packetlost.dev" @@ -32,5 +32,5 @@ # No more NIX_PATH, use system pkgs home-manager.useGlobalPkgs = true; - home-manager.users.noah = import ./noah-home.nix ; + home-manager.users.noah = import ./noah-home.nix; }