pipethon
This commit is contained in:
parent
29ffaf7359
commit
39f102602d
3 changed files with 117 additions and 46 deletions
78
flake.nix
78
flake.nix
|
|
@ -42,19 +42,22 @@
|
|||
};
|
||||
|
||||
nixgl.url = "github:nix-community/nixGL";
|
||||
pipethon.url = "git+ssh://forgejo@git.donsz.nl/jana/pipethon.git";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{ home-manager
|
||||
, nixpkgs
|
||||
, flake-utils
|
||||
, nixvim
|
||||
, t
|
||||
, dumpasm
|
||||
, jujutsu
|
||||
, nixgl
|
||||
, cosmic-manager
|
||||
, ...
|
||||
{
|
||||
home-manager,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
nixvim,
|
||||
t,
|
||||
dumpasm,
|
||||
jujutsu,
|
||||
nixgl,
|
||||
cosmic-manager,
|
||||
pipethon,
|
||||
...
|
||||
}@inputs:
|
||||
let
|
||||
homeManagerModules = [ nixvim.homeManagerModules.nixvim ];
|
||||
|
|
@ -71,6 +74,7 @@
|
|||
t = t.packages.${system}.default;
|
||||
inherit (dumpasm.packages.${system}) dumpasm;
|
||||
inherit (jujutsu.packages.${system}) jujutsu;
|
||||
pipethon = pipethon.packages.${system}.python;
|
||||
};
|
||||
p1n3appl3 = inputs.p1n3appl3.packages.${system};
|
||||
})
|
||||
|
|
@ -80,13 +84,12 @@
|
|||
root: args:
|
||||
home-manager.lib.homeManagerConfiguration (
|
||||
{
|
||||
modules =
|
||||
[
|
||||
cosmic-manager.homeManagerModules.cosmic-manager
|
||||
root
|
||||
]
|
||||
++ homeManagerModules
|
||||
++ (args.modules or [ ]);
|
||||
modules = [
|
||||
cosmic-manager.homeManagerModules.cosmic-manager
|
||||
root
|
||||
]
|
||||
++ homeManagerModules
|
||||
++ (args.modules or [ ]);
|
||||
pkgs = pkgsForSystem (args.system or "x86_64-linux");
|
||||
}
|
||||
// {
|
||||
|
|
@ -94,29 +97,28 @@
|
|||
}
|
||||
);
|
||||
in
|
||||
flake-utils.lib.eachDefaultSystem
|
||||
(system: rec {
|
||||
formatter = legacyPackages.nixfmt-classic;
|
||||
legacyPackages = pkgsForSystem system;
|
||||
pkgs = legacyPackages;
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
(pkgs.writeShellScriptBin "fast-repl" ''
|
||||
source /etc/set-environment
|
||||
nix repl --file "${./.}/repl.nix" $@
|
||||
'')
|
||||
flake-utils.lib.eachDefaultSystem (system: rec {
|
||||
formatter = legacyPackages.nixfmt-classic;
|
||||
legacyPackages = pkgsForSystem system;
|
||||
pkgs = legacyPackages;
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
(pkgs.writeShellScriptBin "fast-repl" ''
|
||||
source /etc/set-environment
|
||||
nix repl --file "${./.}/repl.nix" $@
|
||||
'')
|
||||
|
||||
(pkgs.writeShellScriptBin "apply-home" ''
|
||||
export NIX_BUILD_CORES=$(($(nproc) * 2))
|
||||
nix run .#home-manager -- switch --flake .#$@ -j $(nproc) --cores $(nproc)
|
||||
'')
|
||||
(pkgs.writeShellScriptBin "apply-home" ''
|
||||
export NIX_BUILD_CORES=$(($(nproc) * 2))
|
||||
nix run .#home-manager -- switch --flake .#$@ -j $(nproc) --cores $(nproc)
|
||||
'')
|
||||
|
||||
(pkgs.writeShellScriptBin "apply" ''
|
||||
apply-home $(hostname -f)
|
||||
'')
|
||||
];
|
||||
};
|
||||
})
|
||||
(pkgs.writeShellScriptBin "apply" ''
|
||||
apply-home $(hostname -f)
|
||||
'')
|
||||
];
|
||||
};
|
||||
})
|
||||
// {
|
||||
|
||||
homeConfigurations = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue