Removed unused override. Added packages.base-packages. Added FIXMEs

This commit is contained in:
Nikodem Rabuliński 2023-11-02 18:46:37 +01:00
parent 7406cece2d
commit eb7b2a57b2
No known key found for this signature in database
GPG key ID: FF629AA9E08138DB
6 changed files with 18 additions and 6 deletions

View file

@ -99,7 +99,6 @@
hercules-ci-effects = {
url = "github:hercules-ci/hercules-ci-effects";
inputs.flake-parts.follows = "flake-parts";
inputs.hercules-ci-agent.follows = "hercules-ci-agent";
};
nh = {
url = "github:viperML/nh";

View file

@ -15,6 +15,7 @@
];
builders = let
# FIXME: Move to common
sharedOptions = {
inputs',
lib,
@ -37,10 +38,9 @@
enable = true;
config = {
home.packages = let
wrappers = lib.attrValues inputs'.settei.packages;
extraPkgs = [inputs'.nh.packages.default];
in
wrappers ++ extraPkgs;
[inputs'.settei.packages.base-packages] ++ extraPkgs;
programs.git.enable = true;
home.sessionVariables.EDITOR = "hx";

View file

@ -21,7 +21,7 @@ in {
home = "/home/${username}";
group = username;
extraGroups = ["wheel"];
# TODO: Probably move this out into common
# FIXME: Move to common
openssh.authorizedKeys.keys = let
configName' =
args.configurationName
@ -38,6 +38,7 @@ in {
security.sudo.wheelNeedsPassword = false;
# When NetworkManager isn't in use, add tailscale DNS address manually
# FIXME: Move to common
networking = lib.mkIf (!nmEnabled && config.services.tailscale.enable && cfg.tailnet != null) {
nameservers = [
"100.100.100.100"

View file

@ -29,6 +29,7 @@
username = lib.mkDefault username;
};
# FIXME: Move to common
services.tailscale.enable = true;
networking.hostName = lib.mkDefault (

View file

@ -20,7 +20,17 @@
./rash
];
};
all-packages = wrapped.config.build.packages;
base-packages = pkgs.symlinkJoin {
name = "settei-base";
paths = with all-packages; [
rash
helix
];
};
in {
inherit (wrapped.config.build) packages;
packages = all-packages // {
inherit base-packages;
};
};
}

View file

@ -40,9 +40,10 @@
buildInputs = with pkgs; [readline];
};
in {
basePackage = pkgs.writeShellScriptBin "rash" ''
basePackage = pkgs.writeShellScriptBin "rash-repl" ''
exec "${racket-with-libs}/bin/rash-repl" "$@"
'';
# TODO: Shell shouldn't overwrite this variable. Probably
env.XDG_CONFIG_HOME = {
value = pkgs.linkFarm "rash-config" {
"rash/rashrc" = ./rashrc;