Removed unused override. Added packages.base-packages. Added FIXMEs
This commit is contained in:
parent
7406cece2d
commit
eb7b2a57b2
6 changed files with 18 additions and 6 deletions
|
@ -99,7 +99,6 @@
|
||||||
hercules-ci-effects = {
|
hercules-ci-effects = {
|
||||||
url = "github:hercules-ci/hercules-ci-effects";
|
url = "github:hercules-ci/hercules-ci-effects";
|
||||||
inputs.flake-parts.follows = "flake-parts";
|
inputs.flake-parts.follows = "flake-parts";
|
||||||
inputs.hercules-ci-agent.follows = "hercules-ci-agent";
|
|
||||||
};
|
};
|
||||||
nh = {
|
nh = {
|
||||||
url = "github:viperML/nh";
|
url = "github:viperML/nh";
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
builders = let
|
builders = let
|
||||||
|
# FIXME: Move to common
|
||||||
sharedOptions = {
|
sharedOptions = {
|
||||||
inputs',
|
inputs',
|
||||||
lib,
|
lib,
|
||||||
|
@ -37,10 +38,9 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
home.packages = let
|
home.packages = let
|
||||||
wrappers = lib.attrValues inputs'.settei.packages;
|
|
||||||
extraPkgs = [inputs'.nh.packages.default];
|
extraPkgs = [inputs'.nh.packages.default];
|
||||||
in
|
in
|
||||||
wrappers ++ extraPkgs;
|
[inputs'.settei.packages.base-packages] ++ extraPkgs;
|
||||||
|
|
||||||
programs.git.enable = true;
|
programs.git.enable = true;
|
||||||
home.sessionVariables.EDITOR = "hx";
|
home.sessionVariables.EDITOR = "hx";
|
||||||
|
|
|
@ -21,7 +21,7 @@ in {
|
||||||
home = "/home/${username}";
|
home = "/home/${username}";
|
||||||
group = username;
|
group = username;
|
||||||
extraGroups = ["wheel"];
|
extraGroups = ["wheel"];
|
||||||
# TODO: Probably move this out into common
|
# FIXME: Move to common
|
||||||
openssh.authorizedKeys.keys = let
|
openssh.authorizedKeys.keys = let
|
||||||
configName' =
|
configName' =
|
||||||
args.configurationName
|
args.configurationName
|
||||||
|
@ -38,6 +38,7 @@ in {
|
||||||
security.sudo.wheelNeedsPassword = false;
|
security.sudo.wheelNeedsPassword = false;
|
||||||
|
|
||||||
# When NetworkManager isn't in use, add tailscale DNS address manually
|
# 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) {
|
networking = lib.mkIf (!nmEnabled && config.services.tailscale.enable && cfg.tailnet != null) {
|
||||||
nameservers = [
|
nameservers = [
|
||||||
"100.100.100.100"
|
"100.100.100.100"
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
username = lib.mkDefault username;
|
username = lib.mkDefault username;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# FIXME: Move to common
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
|
|
||||||
networking.hostName = lib.mkDefault (
|
networking.hostName = lib.mkDefault (
|
||||||
|
|
|
@ -20,7 +20,17 @@
|
||||||
./rash
|
./rash
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
all-packages = wrapped.config.build.packages;
|
||||||
|
base-packages = pkgs.symlinkJoin {
|
||||||
|
name = "settei-base";
|
||||||
|
paths = with all-packages; [
|
||||||
|
rash
|
||||||
|
helix
|
||||||
|
];
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
inherit (wrapped.config.build) packages;
|
packages = all-packages // {
|
||||||
|
inherit base-packages;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,9 +40,10 @@
|
||||||
buildInputs = with pkgs; [readline];
|
buildInputs = with pkgs; [readline];
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
basePackage = pkgs.writeShellScriptBin "rash" ''
|
basePackage = pkgs.writeShellScriptBin "rash-repl" ''
|
||||||
exec "${racket-with-libs}/bin/rash-repl" "$@"
|
exec "${racket-with-libs}/bin/rash-repl" "$@"
|
||||||
'';
|
'';
|
||||||
|
# TODO: Shell shouldn't overwrite this variable. Probably
|
||||||
env.XDG_CONFIG_HOME = {
|
env.XDG_CONFIG_HOME = {
|
||||||
value = pkgs.linkFarm "rash-config" {
|
value = pkgs.linkFarm "rash-config" {
|
||||||
"rash/rashrc" = ./rashrc;
|
"rash/rashrc" = ./rashrc;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue