feat: port to devos develop again

This commit is contained in:
dusk 2021-05-10 14:19:05 +03:00
parent d0757f69c5
commit 1fd44952ec
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA
4 changed files with 14 additions and 14 deletions

View File

@ -28,7 +28,7 @@
};
};
outputs = inputs@{ self, pkgs, digga, nixos, ci-agent, home, nixos-hardware, nur, ... }:
outputs = inputs@{ self, pkgs, digga, nixos, ci-agent, home, nixos-hardware, nur, nixosPersistence, ... }:
digga.lib.mkFlake {
inherit self inputs;
@ -65,6 +65,7 @@
{ _module.args.ourLib = self.lib; }
ci-agent.nixosModules.agent-profile
home.nixosModules.home-manager
nixosPersistence.nixosModules.impermanence
./modules/customBuilds.nix
];
};
@ -75,8 +76,9 @@
NixOS = { };
};
profiles = [ ./profiles ./users ];
suites = { profiles, users, ... }: with profiles; rec {
base = [ core users.nixos users.root ];
suites = { profiles, users, ... }: with profiles; {
base = [ cachix core users.root ];
work = [ users.patriot develop ];
};
};
@ -84,8 +86,8 @@
modules = ./users/modules/module-list.nix;
externalModules = [ ];
profiles = [ ./users/profiles ];
suites = { profiles, ... }: with profiles; rec {
base = [ direnv git ];
suites = { profiles, ... }: with profiles; {
base = [ direnv git starship ];
};
};

View File

@ -1,2 +1,4 @@
{ lib }:
lib.makeExtensible (self: { })
lib.makeExtensible (self: {
pkgBinNoDep = pkgs: name: "${pkgs.${name}}/bin/${name}";
})

View File

@ -1,9 +1,7 @@
{ self, config, pkgs, ... }:
{ self, config, pkgs, lib, ... }:
let
lib = pkgs.lib;
inherit (lib) fileContents mkIf;
pkgBin = lib.dev.pkgBinNoDep pkgs;
pkgBin = pkgs.ourlib.pkgBinNoDep pkgs;
coreBin = v: "${pkgs.coreutils}/bin/${v}";
nixBin = "${config.nix.package}/bin/nix";

View File

@ -1,10 +1,8 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
let
lib = pkgs.lib;
inherit (lib) mapAttrs' nameValuePair;
inherit (builtins) readDir fetchGit;
pkgBin = lib.dev.pkgBinNoDep pkgs;
pkgBin = pkgs.ourlib.pkgBinNoDep pkgs;
nixosConfig = config;
in