From 5076a3d4bbc82394ec33374262ef6e9f29fb27dc Mon Sep 17 00:00:00 2001 From: Jet Pham Date: Mon, 18 Aug 2025 19:10:10 -0700 Subject: [PATCH] feat: fix bat formatting for jj feat: add signal update zellij --- configuration.nix | 38 ++++++++++++++++++++++++++++++++++++-- home.nix | 23 +++++++++++++++++++---- 2 files changed, 55 insertions(+), 6 deletions(-) diff --git a/configuration.nix b/configuration.nix index ebf4d32..31bf2fc 100644 --- a/configuration.nix +++ b/configuration.nix @@ -124,7 +124,7 @@ users.users.jet = { isNormalUser = true; description = "Jet"; - extraGroups = [ "networkmanager" "wheel" ]; + extraGroups = [ "networkmanager" "wheel" "podman" ]; }; # Allow unfree packages @@ -140,6 +140,8 @@ helix # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. wget vim + podman + podman-compose ]; environment.variables.EDITOR = "helix"; @@ -160,6 +162,25 @@ # Enable the OpenSSH daemon. # services.openssh.enable = true; + # Enable Podman with rootless support + virtualisation = { + containers.enable = true; + oci-containers.backend = "podman"; + podman = { + enable = true; + autoPrune.enable = true; + # Create a `docker` alias for podman, to use it as a drop-in replacement + dockerCompat = true; + # Required for containers under podman-compose to be able to talk to each other. + defaultNetwork.settings.dns_enabled = true; + }; + }; + + # Create podman group + users.groups.podman = { + name = "podman"; + }; + # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ]; @@ -168,10 +189,23 @@ # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions - # on your system were taken. It‘s perfectly fine and recommended to leave + # on your system were taken. It's perfectly fine and recommended to leave # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "25.05"; # Did you read the comment? + # Set user profile picture for GNOME + system.activationScripts.script.text = '' + mkdir -p /var/lib/AccountsService/{icons,users} + cp /home/jet/Documents/nixos-config/cat.png /var/lib/AccountsService/icons/jet + echo -e "[User]\nIcon=/var/lib/AccountsService/icons/jet\n" > /var/lib/AccountsService/users/jet + + chown root:root /var/lib/AccountsService/users/jet + chmod 0600 /var/lib/AccountsService/users/jet + + chown root:root /var/lib/AccountsService/icons/jet + chmod 0444 /var/lib/AccountsService/icons/jet + ''; + } diff --git a/home.nix b/home.nix index 2d37ac4..f19deca 100644 --- a/home.nix +++ b/home.nix @@ -73,6 +73,14 @@ direnv mullvad-vpn gnomeExtensions.hide-top-bar + signal-desktop + podman-tui + dive + passt + dbeaver-bin + insomnia + tree + logseq ]; programs.zellij = { @@ -83,11 +91,11 @@ # Default shell (using bash as configured in your system) default_shell = "bash"; default_layout = "compact"; - copy_on_select = false; pane_frames = false; - # Mouse and interaction settings + # Mouse and interaction settings - enable for proper pane handling mouse_mode = true; + copy_on_select = true; show_startup_tips = false; show_release_notes = false; @@ -176,8 +184,9 @@ push-new-bookmarks = true; }; ui = { + default-command = "log"; editor = "hx"; - pager = "bat"; + pager = "bat --style=plain"; }; }; }; @@ -202,4 +211,10 @@ "${pkgs.code-cursor}/share/applications/cursor.desktop" ]; }; -} \ No newline at end of file + + # Enable rootless Podman with Home Manager + services.podman = { + enable = true; + autoUpdate.enable = true; + }; +}