mirror of
https://github.com/nix-community/nix-doom-emacs
synced 2025-08-17 13:33:37 -05:00
flake.nix: run nixfmt
This commit is contained in:
106
flake.nix
106
flake.nix
@@ -1,35 +1,35 @@
|
||||
/* Usage example in flake.nix:
|
||||
|
||||
{
|
||||
inputs = {
|
||||
home-manager.url = "github:rycee/home-manager";
|
||||
nix-doom-emacs.url = "github:nix-community/nix-doom-emacs/flake";
|
||||
};
|
||||
{
|
||||
inputs = {
|
||||
home-manager.url = "github:rycee/home-manager";
|
||||
nix-doom-emacs.url = "github:nix-community/nix-doom-emacs/flake";
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
nix-doom-emacs,
|
||||
...
|
||||
}: {
|
||||
nixosConfigurations.exampleHost = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.users.exampleUser = { pkgs, ... }: {
|
||||
imports = [ nix-doom-emacs.hmModule ];
|
||||
home.doom-emacs = {
|
||||
enable = true;
|
||||
doomPrivateDir = ./path/to/doom.d;
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
nix-doom-emacs,
|
||||
...
|
||||
}: {
|
||||
nixosConfigurations.exampleHost = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.users.exampleUser = { pkgs, ... }: {
|
||||
imports = [ nix-doom-emacs.hmModule ];
|
||||
home.doom-emacs = {
|
||||
enable = true;
|
||||
doomPrivateDir = ./path/to/doom.d;
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
*/
|
||||
|
||||
{
|
||||
@@ -54,7 +54,7 @@
|
||||
explain-pause-mode.flake = false;
|
||||
nix-straight.url = "github:nix-community/nix-straight.el";
|
||||
nix-straight.flake = false;
|
||||
nose.url= "github:emacsattic/nose";
|
||||
nose.url = "github:emacsattic/nose";
|
||||
nose.flake = false;
|
||||
ob-racket.url = "github:xchrishawk/ob-racket";
|
||||
ob-racket.flake = false;
|
||||
@@ -70,7 +70,8 @@
|
||||
revealjs.flake = false;
|
||||
rotate-text.url = "github:debug-ito/rotate-text.el";
|
||||
rotate-text.flake = false;
|
||||
format-all.url = "github:lassik/emacs-format-all-the-code/47d862d40a088ca089c92cd393c6dca4628f87d3";
|
||||
format-all.url =
|
||||
"github:lassik/emacs-format-all-the-code/47d862d40a088ca089c92cd393c6dca4628f87d3";
|
||||
format-all.flake = false;
|
||||
|
||||
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
|
||||
@@ -78,28 +79,25 @@
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils, ... }@inputs:
|
||||
let
|
||||
inherit (flake-utils.lib) eachDefaultSystem eachSystem;
|
||||
in
|
||||
eachDefaultSystem
|
||||
(system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
{
|
||||
devShell = pkgs.mkShell { buildInputs = [ (pkgs.python3.withPackages (ps: with ps; [ PyGithub ])) ]; };
|
||||
package = { dependencyOverrides ? { }, ...}@args:
|
||||
pkgs.callPackage self (
|
||||
args // { dependencyOverrides = (inputs // dependencyOverrides); }
|
||||
);
|
||||
}) //
|
||||
eachSystem [ "x86_64-linux" ]
|
||||
(system: {
|
||||
checks = {
|
||||
init-example-el = self.outputs.package.${system} { doomPrivateDir = ./test/doom.d; dependencyOverrides = inputs; };
|
||||
let inherit (flake-utils.lib) eachDefaultSystem eachSystem;
|
||||
in eachDefaultSystem (system:
|
||||
let pkgs = import nixpkgs { inherit system; };
|
||||
in {
|
||||
devShell = pkgs.mkShell {
|
||||
buildInputs =
|
||||
[ (pkgs.python3.withPackages (ps: with ps; [ PyGithub ])) ];
|
||||
};
|
||||
}) //
|
||||
{
|
||||
hmModule = import ./modules/home-manager.nix inputs;
|
||||
};
|
||||
package = { dependencyOverrides ? { }, ... }@args:
|
||||
pkgs.callPackage self
|
||||
(args // { dependencyOverrides = (inputs // dependencyOverrides); });
|
||||
}) // eachSystem [ "x86_64-linux" ] (system: {
|
||||
checks = {
|
||||
init-example-el = self.outputs.package.${system} {
|
||||
doomPrivateDir = ./test/doom.d;
|
||||
dependencyOverrides = inputs;
|
||||
};
|
||||
};
|
||||
}) // {
|
||||
hmModule = import ./modules/home-manager.nix inputs;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user