From bef5b0a873c73d62145b204cb02a794eb0fe228e Mon Sep 17 00:00:00 2001 From: zuma Date: Thu, 6 Feb 2025 17:37:52 +0100 Subject: [PATCH] Added starship (but it's a fail) and some programs --- commons/home-manager/hyprland.nix | 6 +++++ commons/home-manager/starship.nix | 34 +++++++++++++++++++++++++ hosts/t0urn3s0l/configuration.nix | 41 +++++++++++++++++++++++-------- hosts/t0urn3s0l/home.nix | 1 + 4 files changed, 72 insertions(+), 10 deletions(-) create mode 100644 commons/home-manager/starship.nix diff --git a/commons/home-manager/hyprland.nix b/commons/home-manager/hyprland.nix index 1f11564..65e9267 100644 --- a/commons/home-manager/hyprland.nix +++ b/commons/home-manager/hyprland.nix @@ -20,6 +20,8 @@ "$mod, F, fullscreen, 1" "$mod SHIFT, F, fullscreen" + "$mod, code:65, exec, rofi -show run" + # Move to workspace "$mod, code:10, workspace, 1" "$mod, code:11, workspace, 2" @@ -41,6 +43,10 @@ "$mod SHIFT, code:16, movetoworkspace, 7" "$mod SHIFT, code:17, movetoworkspace, 8" "$mod SHIFT, code:18, movetoworkspace, 9" + + # Move to adjacent workspaces + "$mod, code:113, workspace, -1" + "$mod, code:114, workspace, +1" ]; bindm = [ diff --git a/commons/home-manager/starship.nix b/commons/home-manager/starship.nix new file mode 100644 index 0000000..7ad33d8 --- /dev/null +++ b/commons/home-manager/starship.nix @@ -0,0 +1,34 @@ +{ ... }: { + programs.starship = { + enable = true; + + settings = { + format = "$username@$hostname:$directory($cmd_duration)$character"; + + directory = { + style = "blue"; + }; + + character = { + success_symbol = "[❯](purple)"; + error_symbol = "[❯](red)"; + vimcmd_symbol = "[❮](green)"; + }; + + cmd_duration = { + format = "[$duration]($style) "; + style = "yellow"; + }; + + username = { + format = "[$user](bold white)"; + }; + + hostname = { + ssh_only = false; + format = "[$hostname](bold red)"; + disabled = false; + }; + }; + }; +} diff --git a/hosts/t0urn3s0l/configuration.nix b/hosts/t0urn3s0l/configuration.nix index 35fa0e6..acae1d7 100644 --- a/hosts/t0urn3s0l/configuration.nix +++ b/hosts/t0urn3s0l/configuration.nix @@ -68,6 +68,7 @@ programs.hyprland = { enable = true; + xwayland.enable = true; # set the flake package package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland; # make sure to also set the portal package, so that they are in sync @@ -103,11 +104,8 @@ users.users.zuma = { isNormalUser = true; description = "zuma"; + shell = pkgs.zsh; extraGroups = [ "networkmanager" "wheel" ]; - packages = with pkgs; [ - kdePackages.kate - # thunderbird - ]; }; home-manager = { @@ -121,29 +119,52 @@ services.xserver.displayManager.autoLogin.enable = true; services.xserver.displayManager.autoLogin.user = "zuma"; + services.getty.autologinUser = "zuma"; + environment.sessionVariables = rec { XCURSOR_SIZE = 24; }; - # Install firefox. - programs.firefox.enable = true; - # Allow unfree packages nixpkgs.config.allowUnfree = true; + nixpkgs.config.permittedInsecurePackages = [ + "cinny-4.2.3" + "cinny-unwrapped-4.2.3" + ]; # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ + # GUIs + gnome-keyring # Keyring for secrets + seahorse # To edit said secrets + networkmanagerapplet # To get wifi to work -> Go into wifi connection and select store password for all users + bitwarden-desktop # For my sweet passwords + rofi-wayland # Application launcher + xfce.thunar # GUI Filebrowser + xfce.xfconf # needed by xfce.thunar + kitty # Hyprland default terminal + firefox # Web browser + cinny-desktop # Matrix Client + eog # Image viewer + + # Shell apps + zsh + starship # Might delete later neovim # <3 git # <3 bis - kitty # Hyprland default terminal + btop # HTOP on steroids - xfce.thunar # GUI Filebrowser + # Utilities + wl-clipboard # Clipboard manager ]; - programs.xfconf.enable = true; # Enable xfconf because we don't use XFCE services.gvfs.enable = true; # Enable Trash so that if I delete my nix files without having saved them I can backup ......... + programs.zsh.enable = true; + services.tumbler.enable = true; # Thumbnail support + services.gnome.gnome-keyring.enable = true; + security.pam.services.hyprland.enableGnomeKeyring = true; # Some programs need SUID wrappers, can be configured further or are # started in user sessions. diff --git a/hosts/t0urn3s0l/home.nix b/hosts/t0urn3s0l/home.nix index 7be1e0c..17176a9 100644 --- a/hosts/t0urn3s0l/home.nix +++ b/hosts/t0urn3s0l/home.nix @@ -53,6 +53,7 @@ imports = [ ../../commons/home-manager/hyprland.nix + ../../commons/home-manager/starship.nix ]; # Home Manager can also manage your environment variables through