From 5be7c3f389496146d4cb91da2b6a0412cb7c1b16 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 21 Feb 2022 13:53:39 -0800 Subject: devel: create new directory for devel modules Add python, and move go from the cli modules. Install these modules only if we're a "desktop". --- users/fcuny/cli/default.nix | 1 - users/fcuny/cli/go.nix | 8 -------- users/fcuny/default.nix | 2 +- users/fcuny/devel/default.nix | 8 ++++++++ users/fcuny/devel/go.nix | 8 ++++++++ users/fcuny/devel/python.nix | 7 +++++++ 6 files changed, 24 insertions(+), 10 deletions(-) delete mode 100644 users/fcuny/cli/go.nix create mode 100644 users/fcuny/devel/default.nix create mode 100644 users/fcuny/devel/go.nix create mode 100644 users/fcuny/devel/python.nix diff --git a/users/fcuny/cli/default.nix b/users/fcuny/cli/default.nix index b047eee..65f81bd 100644 --- a/users/fcuny/cli/default.nix +++ b/users/fcuny/cli/default.nix @@ -3,7 +3,6 @@ { imports = [ ./git.nix - ./go.nix ./tmux.nix ./yt-dlp.nix ./zsh.nix diff --git a/users/fcuny/cli/go.nix b/users/fcuny/cli/go.nix deleted file mode 100644 index 647da39..0000000 --- a/users/fcuny/cli/go.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ - programs.go = { - enable = true; - goPath = ".local/share/pkg.go"; - goBin = ".local/bin.go"; - goPrivate = [ "git.fcuny.net" "golang.fcuny.net" ]; - }; -} diff --git a/users/fcuny/default.nix b/users/fcuny/default.nix index 755f59e..fa6a24a 100644 --- a/users/fcuny/default.nix +++ b/users/fcuny/default.nix @@ -3,7 +3,7 @@ { imports = [./cli ] - ++ (if desktop then [./desktop] else [ ]); + ++ (if desktop then [./desktop ./devel] else [ ]); programs.home-manager.enable = true; diff --git a/users/fcuny/devel/default.nix b/users/fcuny/devel/default.nix new file mode 100644 index 0000000..fcb4d2b --- /dev/null +++ b/users/fcuny/devel/default.nix @@ -0,0 +1,8 @@ +{ config, lib, pkgs, ...}: + +{ + imports = [ + ./go.nix + ./python.nix + ]; +} diff --git a/users/fcuny/devel/go.nix b/users/fcuny/devel/go.nix new file mode 100644 index 0000000..647da39 --- /dev/null +++ b/users/fcuny/devel/go.nix @@ -0,0 +1,8 @@ +{ + programs.go = { + enable = true; + goPath = ".local/share/pkg.go"; + goBin = ".local/bin.go"; + goPrivate = [ "git.fcuny.net" "golang.fcuny.net" ]; + }; +} diff --git a/users/fcuny/devel/python.nix b/users/fcuny/devel/python.nix new file mode 100644 index 0000000..4a3e53c --- /dev/null +++ b/users/fcuny/devel/python.nix @@ -0,0 +1,7 @@ +{ pkgs, ... }: + +{ + home.packages = with pkgs; [ + python310 + ]; +} -- cgit 1.4.1