This commit is contained in:
KoenDR06 2025-02-27 16:59:02 +01:00
parent 6f9fdca876
commit 5ad8529721
7 changed files with 118 additions and 2 deletions

View file

@ -8,6 +8,7 @@
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.apps.dev;
homeCfg = config.horseman;
in {
options = {
horseman.apps.dev = {
@ -16,6 +17,43 @@ in {
};
config = {
home-manager.users.${homeCfg.username} = {
programs = {
gh.enable = true;
git = {
enable = true;
userName = "KoenDR06";
userEmail = "koen.de.ruiter@hotmail.com";
};
};
home.packages = with pkgs; [
direnv
docker-compose
ethtool
file
fzf
gcc
ghex
haskell.compiler.native-bignum.ghcHEAD
haskell-language-server
btop
jdk
jetbrains.clion
jetbrains.idea-ultimate
jetbrains.pycharm-professional
jetbrains.rider
jetbrains.webstorm
nodejs_22
platformio-core
python314
sqlite
sqlitebrowser
tmux
xclip
];
};
# Docker
virtualisation.docker.enable = true;
};

View file

@ -8,5 +8,6 @@
./users
./boot
./base
./username.nix
];
}

17
modules/username.nix Normal file
View file

@ -0,0 +1,17 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman;
in {
options = {
horseman = {
username = mkOption { type = types.str; };
};
};
}

View file

@ -17,9 +17,17 @@ in {
config = {
home-manager = {
extraSpecialArgs = {inherit inputs outputs;};
extraSpecialArgs = { inherit inputs outputs; };
users.horseman = {
home.stateVersion = "24.11";
home = {
username = "horseman";
homeDirectory = "/home/horseman";
stateVersion = "24.11";
};
programs = {
home-manager.enable = true;
};
};
};