fix: system build fixes for new package setup
This commit is contained in:
@@ -10,6 +10,7 @@ let
|
|||||||
let
|
let
|
||||||
inherit (metadata.hosts.${host}) system;
|
inherit (metadata.hosts.${host}) system;
|
||||||
pkgs = nixpkgs.${system};
|
pkgs = nixpkgs.${system};
|
||||||
|
pkgs' = top.self.packages.${system};
|
||||||
username =
|
username =
|
||||||
if builtins.hasAttr "user" metadata.hosts.${host} then metadata.hosts.${host}.user else "greg";
|
if builtins.hasAttr "user" metadata.hosts.${host} then metadata.hosts.${host}.user else "greg";
|
||||||
in
|
in
|
||||||
@@ -25,6 +26,7 @@ let
|
|||||||
host
|
host
|
||||||
username
|
username
|
||||||
metadata
|
metadata
|
||||||
|
pkgs'
|
||||||
;
|
;
|
||||||
nixvim = top.nixvimunstable;
|
nixvim = top.nixvimunstable;
|
||||||
gui = false;
|
gui = false;
|
||||||
|
|||||||
+3
-2
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
|
pkgs',
|
||||||
lib,
|
lib,
|
||||||
host ? "most",
|
host ? "most",
|
||||||
top,
|
top,
|
||||||
@@ -38,7 +39,7 @@ in
|
|||||||
gh
|
gh
|
||||||
git
|
git
|
||||||
gnupatch
|
gnupatch
|
||||||
hms
|
pkgs'.hms
|
||||||
btop
|
btop
|
||||||
inetutils
|
inetutils
|
||||||
jq
|
jq
|
||||||
@@ -46,7 +47,7 @@ in
|
|||||||
nix-prefetch
|
nix-prefetch
|
||||||
nmap
|
nmap
|
||||||
openssl
|
openssl
|
||||||
setup-ssh
|
pkgs'.setup-ssh
|
||||||
tmux
|
tmux
|
||||||
tree
|
tree
|
||||||
unzip
|
unzip
|
||||||
|
|||||||
+7
-1
@@ -15,11 +15,17 @@ let
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
inherit (metadata.hosts.${name}) system;
|
inherit (metadata.hosts.${name}) system;
|
||||||
|
pkgs' = top.self.packages.${system};
|
||||||
in
|
in
|
||||||
channel.lib.nixosSystem {
|
channel.lib.nixosSystem {
|
||||||
pkgs = nixpkgs.${system};
|
pkgs = nixpkgs.${system};
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit metadata top lib';
|
inherit
|
||||||
|
metadata
|
||||||
|
top
|
||||||
|
lib'
|
||||||
|
pkgs'
|
||||||
|
;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,12 @@
|
|||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ top, pkgs, ... }:
|
{
|
||||||
|
top,
|
||||||
|
pkgs,
|
||||||
|
pkgs',
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
@@ -31,7 +36,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
create_ssl
|
pkgs'.create_ssl
|
||||||
step-ca
|
step-ca
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
{ config, pkgs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
pkgs',
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
environment.systemPackages = [ pkgs.upgrade-pg-cluster ];
|
environment.systemPackages = [ pkgs'.upgrade-pg-cluster ];
|
||||||
|
|
||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user