Commit b0d6cdec184a
Changed files (9)
machine
profiles
profiles/dev.go.nix → envs/dev.go.nix
@@ -1,11 +1,8 @@
-# Go(lang) configuration
-{ configs, pkgs, ...}:
+{ pkgs, prefix, ... }:
{
- imports = [
- ./dev.nix
- ];
- environment.systemPackages = with pkgs; [
+ imports = [ ./dev.nix ];
+ home.packages = with pkgs; [
go
gcc
# tools
envs/dev.haskell.nix
@@ -0,0 +1,9 @@
+{ pkgs, prefix, ... }:
+
+{
+ imports = [ ./dev.nix ];
+ home.packages = with pkgs; [
+ ghc
+ stack
+ ];
+}
envs/dev.js.nix
@@ -0,0 +1,15 @@
+{ pkgs, prefix, ... }:
+
+{
+ imports = [ ./dev.nix ];
+ home.file.".npmrc".text = ''
+ prefix = ~/.local/npm
+ '';
+ xdg.configFile."fish/conf.d/js.fish".text = ''
+ set -gx PATH $HOME/.local/npm/bin $PATH
+ '';
+ home.packages = with pkgs; [
+ nodejs-9_x
+ yarn
+ ];
+}
envs/dev.python.nix
@@ -0,0 +1,9 @@
+{ pkgs, prefix, ... }:
+
+{
+ imports = [ ./dev.nix ];
+ home.packages = with pkgs; [
+ python3
+ pipenv
+ ];
+}
envs/dev.rust.nix
@@ -0,0 +1,8 @@
+{ pkgs, prefix, ... }:
+
+{
+ imports = [ ./dev.nix ];
+ home.packages = with pkgs; [
+ rustup
+ ];
+}
envs/wakasu.nix
@@ -1,7 +1,13 @@
{ pkgs, prefix, ...}:
{
- imports = [ ./dev.nix ];
+ imports = [
+ ./dev.go.nix
+ ./dev.rust.nix
+ ./dev.python.nix
+ ./dev.js.nix
+ ./dev.haskell.nix
+ ];
services.redshift = {
enable = true;
brightness = { day = "1"; night = "0.9"; };
machine/ehime.nix
@@ -6,7 +6,6 @@
../hardware-configuration.nix
../profiles/desktop.nix
../profiles/dev.nix
- ../profiles/dev.python.nix
../profiles/dockerization.nix
../location/home.nix
../profiles/avahi.nix
machine/wakasu.nix
@@ -7,9 +7,8 @@
../profiles/laptop.nix
../profiles/ssh.nix
../profiles/yubikey.nix
+ ../profiles/dev.nix
../profiles/dockerization.nix
- ../profiles/dev.go.nix
- ../profiles/dev.python.nix
../location/docker.nix
../location/home.nix
../hardware/thinkpad-t460s.nix
profiles/dev.python.nix
@@ -1,13 +0,0 @@
-# Configuration for python dev machine
-
-{ configs, pkgs, ...}:
-
-{
- imports = [
- ./dev.nix
- ];
- environment.systemPackages = with pkgs; [
- python3
- pipenv
- ];
-}