From 5057d037cbe948ab1d5ae0dfb2cc3950501b558e Mon Sep 17 00:00:00 2001 From: kp2pml30 Date: Fri, 28 Mar 2025 18:17:05 +0400 Subject: [PATCH] add more default packages --- home/.config/awesome/rc.lua | 2 ++ nix/hardware/mini.nix | 2 ++ nix/personal/default.nix | 3 +-- nix/personal/graphical/x.nix | 6 ++++++ nix/personal/tui.nix | 17 +++++++++++++++++ nix/personal/user.nix | 1 + 6 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 nix/personal/tui.nix diff --git a/home/.config/awesome/rc.lua b/home/.config/awesome/rc.lua index 5638843..b947707 100644 --- a/home/.config/awesome/rc.lua +++ b/home/.config/awesome/rc.lua @@ -371,6 +371,8 @@ globalkeys = gears.table.join( {description = "run prompt", group = "launcher"}), awful.key({ modkey }, "d", function () awful.spawn("rofi -show drun -drun-show-actions") end, {description = "run prompt", group = "launcher"}), + awful.key({ modkey }, ".", function () awful.spawn("rofimoji") end, + {description = "run prompt", group = "launcher"}), awful.key({ modkey }, "x", function () diff --git a/nix/hardware/mini.nix b/nix/hardware/mini.nix index c82aaea..4c58a19 100644 --- a/nix/hardware/mini.nix +++ b/nix/hardware/mini.nix @@ -70,4 +70,6 @@ networking = { useDHCP = lib.mkDefault true; }; + + virtualisation.docker.enable = true; } diff --git a/nix/personal/default.nix b/nix/personal/default.nix index b1cd9c0..f8e1e2b 100644 --- a/nix/personal/default.nix +++ b/nix/personal/default.nix @@ -28,6 +28,7 @@ in { ./home.nix ./user.nix ./neovim.nix + ./tui.nix ]; config = { @@ -57,8 +58,6 @@ in { programs = { fish.enable = true; - tmux.enable = true; - yazi.enable = true; }; environment.systemPackages = with pkgs; [ diff --git a/nix/personal/graphical/x.nix b/nix/personal/graphical/x.nix index ff6759d..f456db8 100644 --- a/nix/personal/graphical/x.nix +++ b/nix/personal/graphical/x.nix @@ -39,6 +39,12 @@ in lib.mkIf cfg.xserver { programs.dconf.enable = true; + users.users.${cfg.username} = { + packages = with pkgs; [ + rofimoji + ]; + }; + home-manager.users.${cfg.username} = { programs.rofi = { enable = true; diff --git a/nix/personal/tui.nix b/nix/personal/tui.nix new file mode 100644 index 0000000..48efd13 --- /dev/null +++ b/nix/personal/tui.nix @@ -0,0 +1,17 @@ +{ config +, pkgs +, inputs +, lib +, ... +}@args: +let + cfg = config.kp2pml30; +in { + config = { + programs = { + tmux.enable = true; + yazi.enable = true; + htop.enable = true; + }; + }; +} diff --git a/nix/personal/user.nix b/nix/personal/user.nix index 74160c5..dbc29fc 100644 --- a/nix/personal/user.nix +++ b/nix/personal/user.nix @@ -13,6 +13,7 @@ in { "wheel" # sudo "networkmanager" "dialout" "uucp" # esp32 + "docker" ]; shell = pkgs.fish; hashedPassword = "$6$UK6oHr2gPRYD4Rak$lgF.mYReC0jahNuI4kt0j/CsrajVzMprvp3HgjKwwsjYHU6/Ur9jfROXZbKhhpyCLRmnlCpWeRCbHEYO/jhIv/";