1
0
Fork 0

Add simple desktop files

This commit is contained in:
Malte Brandy 2020-10-14 03:01:22 +02:00
parent 2c6119278c
commit 3aed39b739
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
2 changed files with 23 additions and 1 deletions

View file

@ -2,7 +2,7 @@
let inherit (import ../../../lib) colors;
in {
imports =
[ ./sleep-nag.nix ./kitty.nix ./wallpaper.nix ./gnome.nix ./firefox.nix ];
[ ./sleep-nag.nix ./kitty.nix ./wallpaper.nix ./gnome.nix ./firefox.nix ./desktop-items.nix ];
m-0.colors = colors;
home = {
packages = builtins.attrValues pkgs.desktop-pkgs;

View file

@ -0,0 +1,22 @@
{ pkgs, ... }:
let
simpleDesktopItem = name: command:
pkgs.makeDesktopItem {
name = name;
desktopName = name;
exec = command;
};
namedTerminalDesktopItem = name: command:
pkgs.makeDesktopItem {
name = name;
desktopName = name;
exec = command;
terminal = "true";
};
superSimpleDesktopItem = name: simpleDesktopItem name name;
terminalDesktopItem = name: namedTerminalDesktopItem name name;
in {
home.packages = map superSimpleDesktopItem [ "kassandra2" ]
++ map terminalDesktopItem [ "maintenance" "ncmpcpp" "kassandra" "hotkeys" "vim" ];
}