From 040c33bfc1f5674d1a808ffd283ced43bebf72d3 Mon Sep 17 00:00:00 2001 From: Jack Mechem Date: Sun, 30 Nov 2025 19:44:42 -0800 Subject: [PATCH] Aliases --- hosts/t480/configuration.nix | 34 +++++++++++++++++--------- modules/home-manager/hyprland.nix | 1 + modules/home-manager/shell-aliases.nix | 4 +++ 3 files changed, 27 insertions(+), 12 deletions(-) diff --git a/hosts/t480/configuration.nix b/hosts/t480/configuration.nix index e3b390f..043d8df 100644 --- a/hosts/t480/configuration.nix +++ b/hosts/t480/configuration.nix @@ -1,4 +1,10 @@ -{ config, lib, pkgs, inputs, ... }: +{ + config, + lib, + pkgs, + inputs, + ... +}: { imports = [ @@ -20,7 +26,10 @@ networking.hostName = "t480"; networking.networkmanager.enable = true; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nix.settings.experimental-features = [ + "nix-command" + "flakes" + ]; time.timeZone = "America/Los_Angeles"; @@ -38,20 +47,22 @@ nixpkgs.config.allowUnfree = true; xdg.portal = { - enable = true; - wlr.enable = true; - extraPortals = with pkgs; [ - xdg-desktop-portal-gtk - xdg-desktop-portal-hyprland - ]; - }; + enable = true; + wlr.enable = true; + extraPortals = with pkgs; [ + xdg-desktop-portal-gtk + xdg-desktop-portal-hyprland + xdg-desktop-portal-gnome + ]; + }; home-manager = { extraSpecialArgs = { inherit inputs; }; - users = { "jack" = import ./home.nix; }; + users = { + "jack" = import ./home.nix; + }; }; - services.libinput.enable = true; services.openssh.enable = true; @@ -59,4 +70,3 @@ system.stateVersion = "25.05"; } - diff --git a/modules/home-manager/hyprland.nix b/modules/home-manager/hyprland.nix index c0d66a4..0561e46 100644 --- a/modules/home-manager/hyprland.nix +++ b/modules/home-manager/hyprland.nix @@ -28,6 +28,7 @@ # exec-once = hyprpanel exec-once = gtkbar exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP + exec-once=systemctl --user mask xdg-desktop-portal-gnome #env = XDG_CONFIG_HOME,/home/jack/.config diff --git a/modules/home-manager/shell-aliases.nix b/modules/home-manager/shell-aliases.nix index 223917f..90703fd 100644 --- a/modules/home-manager/shell-aliases.nix +++ b/modules/home-manager/shell-aliases.nix @@ -9,5 +9,9 @@ home.shellAliases = { nixreb = "sudo nixos-rebuild switch --flake /home/jack/nixos/#t480"; v = "nvim"; + c = "clear"; + cl = "clear && ls"; + nixconf = "nvim ~/nixos/"; + a = ''echo -e " a -> List aliases nixreb -> Rebuild nixos config\n nixconf -> Open nixos config\n v -> nvim\n c -> clear\n cl -> clear && ls"''; }; }