diff options
author | Franck Cuny <franck@fcuny.net> | 2022-04-03 14:21:56 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-04-03 14:21:56 -0700 |
commit | e0a4b9f9caac97ae5f73b72f95c31ed9d719b7bd (patch) | |
tree | 6563fde50a8b56a32ca32fafb7b721824b5bec77 /users/fcuny/devel | |
parent | remove mytools (diff) | |
download | world-e0a4b9f9caac97ae5f73b72f95c31ed9d719b7bd.tar.gz |
rename `desktop` to `isDesktop`
The variable is used to define the kind of machine we're managing. `isDesktop` is a bit more descriptive. We import `devel` for all machines, and we fine tune which packages we want to install based on the value of `isDesktop`.
Diffstat (limited to 'users/fcuny/devel')
-rw-r--r-- | users/fcuny/devel/default.nix | 6 | ||||
-rw-r--r-- | users/fcuny/devel/go.nix | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/users/fcuny/devel/default.nix b/users/fcuny/devel/default.nix index 2c03c74..b4ff02e 100644 --- a/users/fcuny/devel/default.nix +++ b/users/fcuny/devel/default.nix @@ -1,7 +1,9 @@ -{ config, lib, pkgs, ... }: +{ config, lib, pkgs, isDesktop, ... }: +with lib; { imports = [ ./go.nix ./python.nix ]; - home.packages = with pkgs; [ flyctl hugo rnix-lsp nixfmt util-linux ]; + home.packages = with pkgs; + [ util-linux ] ++ (optionals isDesktop [ flyctl hugo rnix-lsp nixfmt ]); } diff --git a/users/fcuny/devel/go.nix b/users/fcuny/devel/go.nix index d4f1e7b..e688ac7 100644 --- a/users/fcuny/devel/go.nix +++ b/users/fcuny/devel/go.nix @@ -1,4 +1,5 @@ { config, ... }: { + programs.go = { enable = true; goPath = ".local/share/pkg.go"; |