nicer
This commit is contained in:
parent
b5fc3ce865
commit
eb47df5e5a
@ -6,27 +6,13 @@
|
||||
fullDesktop,
|
||||
hmOnly,
|
||||
...
|
||||
}: {
|
||||
home = {
|
||||
inherit stateVersion;
|
||||
|
||||
username = "motiejus";
|
||||
homeDirectory = "/home/motiejus";
|
||||
};
|
||||
|
||||
home.packages = with pkgs;
|
||||
lib.mkMerge [
|
||||
(lib.mkIf fullDesktop [
|
||||
go
|
||||
zig
|
||||
])
|
||||
(writeShellApplication {
|
||||
}: let
|
||||
pkgNicer = pkgs.writeShellApplication {
|
||||
name = "nicer";
|
||||
text = ''
|
||||
set -e
|
||||
f=$(${coreutils}/bin/mktemp)
|
||||
trap 'rm -f "$f"' EXIT
|
||||
${coreutils}/bin/env > "$f"
|
||||
f=$(${pkgs.coreutils}/bin/mktemp)
|
||||
trap '${pkgs.coreutils}/bin/rm -f "$f"' EXIT
|
||||
${pkgs.coreutils}/bin/env > "$f"
|
||||
systemd-run \
|
||||
--user \
|
||||
--same-dir \
|
||||
@ -44,7 +30,24 @@
|
||||
--service-type=exec \
|
||||
-- "$@"
|
||||
'';
|
||||
})
|
||||
};
|
||||
in {
|
||||
home = {
|
||||
inherit stateVersion;
|
||||
|
||||
username = "motiejus";
|
||||
homeDirectory = "/home/motiejus";
|
||||
};
|
||||
|
||||
home.packages = with pkgs;
|
||||
lib.mkMerge [
|
||||
[pkgNicer]
|
||||
|
||||
(lib.mkIf fullDesktop [
|
||||
go
|
||||
zig
|
||||
])
|
||||
|
||||
(lib.mkIf hmOnly [
|
||||
pkgs.nixgl.nixGLIntel
|
||||
ncdu
|
||||
|
Loading…
Reference in New Issue
Block a user