starter home

This commit is contained in:
Nathan McCarty 2022-09-04 03:29:35 -04:00
parent 6b96e82cd3
commit f8a4c48b0a
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
5 changed files with 50 additions and 12 deletions

View File

@ -68,17 +68,6 @@ with lib; with nLib; {
sccache sccache
]; ];
}) })
# JVM Development
(mkIf devel.jvm {
home.packages = with unstable; [
inputs.java.packages."${pkgs.system}".semeru-stable
gradle
kotlin
kotlin-native
kotlin-language-server
ktlint
];
})
# Python Development # Python Development
(mkIf devel.python { (mkIf devel.python {
home.packages = with pkgs; [ home.packages = with pkgs; [

View File

@ -9,6 +9,7 @@ with lib; with nLib; {
../common/programs/core.nix ../common/programs/core.nix
./programs/communications.nix ./programs/communications.nix
../common/programs/devel.nix ../common/programs/devel.nix
./programs/devel.nix
./programs/emacs.nix ./programs/emacs.nix
./programs/image-editing.nix ./programs/image-editing.nix
./programs/media.nix ./programs/media.nix
@ -36,6 +37,9 @@ with lib; with nLib; {
# Wine support, disabled by default # Wine support, disabled by default
wine = mkEnableOption "wine"; wine = mkEnableOption "wine";
}; };
devel = {
jvm = mkDefaultOption "JVM Development Utilites" config.nathan.config.isDesktop;
};
# Swaywm and supoorting application configuration # Swaywm and supoorting application configuration
swaywm = { swaywm = {
enable = mkDefaultOption "swaywm" config.nathan.config.isDesktop; enable = mkDefaultOption "swaywm" config.nathan.config.isDesktop;

View File

@ -0,0 +1,22 @@
{ config, lib, pkgs, inputs, ... }:
let
devel = config.nathan.programs.devel;
unstable = inputs.nixpkgs-unstable.legacyPackages."${pkgs.system}";
inherit (import ../../../modules/lib.nix { inherit lib; inherit pkgs; }) nLib;
in
with lib; with nLib; {
config = mkMerge [
# JVM Development
(mkIf devel.jvm {
home.packages = with unstable; [
inputs.java.packages."${pkgs.system}".semeru-stable
gradle
kotlin
kotlin-native
kotlin-language-server
ktlint
];
})
];
}

View File

@ -0,0 +1,24 @@
{ config, lib, pkgs, inputs, ... }:
let
inherit (import ../../modules/lib.nix { inherit lib; inherit pkgs; }) nLib;
in
with lib; with nLib; {
imports = [
../options.nix
../common/programs/core.nix
../common/programs/devel.nix
];
options = { };
config = {
home.stateVersion = "22.05";
programs.home-manager.enable = true;
nathan.programs.emacs.package = lib.mkDefault inputs.emacs.packages."${pkgs.system}".emacsNativeComp.override {
withNS = false;
withX = false;
withGTK2 = false;
withGTK3 = false;
};
};
}

View File

@ -30,7 +30,6 @@ with lib; with nLib;
devel = { devel = {
core = mkDefaultOption "Core Development Utilites" config.nathan.config.isDesktop; core = mkDefaultOption "Core Development Utilites" config.nathan.config.isDesktop;
rust = mkDefaultOption "Rust Development Utilites" config.nathan.config.isDesktop; rust = mkDefaultOption "Rust Development Utilites" config.nathan.config.isDesktop;
jvm = mkDefaultOption "JVM Development Utilites" config.nathan.config.isDesktop;
python = mkDefaultOption "Python Development Utilites" config.nathan.config.isDesktop; python = mkDefaultOption "Python Development Utilites" config.nathan.config.isDesktop;
js = mkDefaultOption "JavaScript/TypeScript Development Utilites" config.nathan.config.isDesktop; js = mkDefaultOption "JavaScript/TypeScript Development Utilites" config.nathan.config.isDesktop;
raku = mkDefaultOption "Raku Development Utilites" config.nathan.config.isDesktop; raku = mkDefaultOption "Raku Development Utilites" config.nathan.config.isDesktop;