mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
use emacs-overlay
This commit is contained in:
parent
c7a8496853
commit
fb32c442b2
2 changed files with 14 additions and 5 deletions
14
flake.nix
14
flake.nix
|
|
@ -24,6 +24,12 @@
|
|||
outputs = inputs@{ self, home-manager, nixpkgs, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [
|
||||
(import inputs.emacs-overlay)
|
||||
];
|
||||
};
|
||||
mkComputer = configurationNix: extraModules: nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
# Arguments to pass to all modules.
|
||||
|
|
@ -45,10 +51,10 @@
|
|||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.srid = import ./home.nix {
|
||||
inherit inputs system;
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
};
|
||||
home-manager.users.srid = import ./home.nix
|
||||
{
|
||||
inherit inputs system pkgs;
|
||||
};
|
||||
}
|
||||
] ++ extraModules
|
||||
);
|
||||
|
|
|
|||
5
home.nix
5
home.nix
|
|
@ -15,6 +15,9 @@ rec {
|
|||
emanote
|
||||
git-crypt
|
||||
|
||||
# https://github.com/nix-community/emacs-overlay
|
||||
emacsPgtkGcc
|
||||
|
||||
cachix
|
||||
tig
|
||||
procs # no more: ps -ef | grep
|
||||
|
|
@ -43,7 +46,7 @@ rec {
|
|||
tmux = import ./home/tmux.nix;
|
||||
|
||||
doom-emacs = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
doomPrivateDir = ./config/doom.d;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue