···11{ pkgs, lib, ... }:
22-let # bash script to let dbus know about important env variables and
33- # propagate them to relevent services run at the end of sway config
44- # see
55- # https://github.com/emersion/xdg-desktop-portal-wlr/wiki/"It-doesn't-work"-Troubleshooting-Checklist
66- # note: this is pretty much the same as /etc/sway/config.d/nixos.conf but also restarts
77- # some user services to make sure they have the correct environment variables
88- dbus-sway-environment = pkgs.writeTextFile {
99- name = "dbus-sway-environment";
1010- destination = "/bin/dbus-sway-environment";
1111- executable = true;
1212-1313- text = ''
1414- dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
1515- systemctl --user stop pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
1616- systemctl --user start pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
1717- '';
1818- };
1919-2020- # currently, there is some friction between sway and gtk:
2121- # https://github.com/swaywm/sway/wiki/GTK-3-settings-on-Wayland
2222- # the suggested way to set gtk settings is with gsettings
2323- # for gsettings to work, we need to tell it where the schemas are
2424- # using the XDG_DATA_DIR environment variable
2525- # run at the end of sway config
2626- configure-gtk = pkgs.writeTextFile {
2727- name = "configure-gtk";
2828- destination = "/bin/configure-gtk";
2929- executable = true;
3030- text = let
3131- # TODO: figure out why these bindings exist or where they're used
3232- schema = pkgs.gsettings-desktop-schemas;
3333- datadir = "${schema}/share/gsettings-schemas/${schema.name}";
3434- in ''
3535- 6 gnome_schema=org.gnome.desktop.interface
3636- gsettings set $gnome_schema gtk-theme 'Dracula'
3737- '';
3838- };
3939-in {
4040-22+{
413 # List packages installed in system profile. To search, run:
424 # $ nix search wget
435 environment.systemPackages = with pkgs; [
···5719 vis
5820 rc
59216060-6161- # Sway stuff
6262- wdisplays
6363- mako
6464- bemenu
6565- wl-clipboard
6666- slurp
6767- grim
6868- swayidle
6969- swaylock
7070- adwaita-icon-theme
7171- dracula-theme
7272- glib
7322 xdg-utils
7474- wayland
7575- configure-gtk
7676- dbus-sway-environment
7777- dbus
7823 ];
79248025 # Fix dynamically linked libraries for unpackaged binaries
···9035 };
91369237 # Logseq uses an ancient version of Electron, so we enable that
9393- nixpkgs.config.permittedInsecurePackages = [ "electron-25.9.0" ];
3838+ #nixpkgs.config.permittedInsecurePackages = [ "electron-25.9.0" ];
94399540 # Whitelist some unfree packages
9641 nixpkgs.config.allowUnfreePredicate = pkg:
9797- builtins.elem (lib.getName pkg) [
9898- "discord"
9999- "spotify"
100100- "obsidian"
101101- "tailscale"
102102- ];
4242+ builtins.elem (lib.getName pkg) [ ];
10343}
+2-18
services.nix
···11{ ... }: {
22 # Some programs need SUID wrappers, can be configured further or are
33 # started in user sessions.
44- # programs.mtr.enable = true;
55- programs.gnupg.agent = {
66- enable = true;
77- enableSSHSupport = false;
88- };
44+ programs.mtr.enable = true;
95106 # Fish shell, the best
117 programs.fish.enable = true;
128139 # List services that you want to enable:
14101515- # Enable the OpenSSH daemon.
1616- services.openssh.enable = true;
1717-1818- # This option is for enabling the bolt daemon for managing Thunderbolt/USB4 Devices.
1919- services.hardware.bolt.enable = true;
2020-2121- # Tailscale
2222- services.tailscale = {
2323- enable = true;
2424- useRoutingFeatures = "client";
2525- };
2626-2711 # Containers and VMs
2812 virtualisation = {
2913 podman = {
3030- enable = true;
1414+ enable = false;
3115 dockerCompat = true;
3216 defaultNetwork.settings.dns_enabled = true;
3317 };