+doom-emacs
This commit is contained in:
parent
6ab59cf453
commit
65caad8950
3 changed files with 21 additions and 15 deletions
13
flake.nix
13
flake.nix
|
@ -1,16 +1,17 @@
|
||||||
{
|
{
|
||||||
description = "NixOS System Config";
|
description = "NixOS System Config";
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "nixpkgs/nixos-unstable"; # NixOS packages
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||||
home-manager.url = "github:nix-community/home-manager/master"; # Manage dotfiles in a home directory
|
home-manager.url = "github:nix-community/home-manager/master";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
lanzaboote.url = "github:nix-community/lanzaboote"; # Secureboot Configuration
|
lanzaboote.url = "github:nix-community/lanzaboote";
|
||||||
lanzaboote.inputs.nixpkgs.follows = "nixpkgs";
|
lanzaboote.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
nur.url = "github:nix-community/NUR"; # Nix User Repository
|
nur.url = "github:nix-community/NUR";
|
||||||
sops-nix.url = "github:Mic92/sops-nix"; # Encrypted secrets in Nix configuration files
|
sops-nix.url = "github:Mic92/sops-nix";
|
||||||
|
doom-emacs.url = "github:nix-community/nix-doom-emacs";
|
||||||
};
|
};
|
||||||
outputs = {
|
outputs = {
|
||||||
self, nixpkgs, home-manager, lanzaboote, nur, sops-nix, ...
|
self, nixpkgs, home-manager, lanzaboote, nur, sops-nix, doom-emacs, ...
|
||||||
}@inputs:
|
}@inputs:
|
||||||
let
|
let
|
||||||
inherit (self) outputs;
|
inherit (self) outputs;
|
||||||
|
|
6
home-manager/common/software/cli/doom-emacs.nix
Normal file
6
home-manager/common/software/cli/doom-emacs.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{ ... }: {
|
||||||
|
programs.doom-emacs = {
|
||||||
|
enable = true;
|
||||||
|
doomPrivateDir = ./doom.d;
|
||||||
|
};
|
||||||
|
};
|
|
@ -1,19 +1,18 @@
|
||||||
{ inputs, outputs, stateVersion, hmStateVersion, ... }: {
|
{ inputs, outputs, stateVersion, hmStateVersion, ... }: {
|
||||||
|
|
||||||
# Helper function for generating home-manager configs
|
# Helper function for generating home-manager configs
|
||||||
mkHome = { hostname, username, desktop ? null, platform ? "x86_64-linux" }: inputs.home-manager.lib.homeManagerConfiguration {
|
mkHome = { hostname, username, desktop ? null, platform ? "x86_64-linux" }: inputs.home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = inputs.nixpkgs.legacyPackages.${platform};
|
pkgs = inputs.nixpkgs.legacyPackages.${platform};
|
||||||
# pkgs = inputs.nixpkgs.${platform};
|
extraSpecialArgs = { inherit inputs outputs desktop hostname platform username hmStateVersion; };
|
||||||
extraSpecialArgs = {
|
modules = [
|
||||||
inherit inputs outputs desktop hostname platform username hmStateVersion;
|
../home-manager
|
||||||
};
|
inputs.doom-emacs.hmModule
|
||||||
modules = [ ../home-manager ];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Helper function for generating host configs
|
# Helper function for generating host configs
|
||||||
mkHost = { hostname, username, desktop ? null, installer ? null, gpu ? null }: inputs.nixpkgs.lib.nixosSystem {
|
mkHost = { hostname, username, desktop ? null, installer ? null, gpu ? null }: inputs.nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {
|
specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu; };
|
||||||
inherit inputs outputs desktop hostname username stateVersion gpu;
|
|
||||||
};
|
|
||||||
modules = [
|
modules = [
|
||||||
../nixos
|
../nixos
|
||||||
inputs.sops-nix.nixosModules.sops # Handle secrets
|
inputs.sops-nix.nixosModules.sops # Handle secrets
|
||||||
|
@ -29,4 +28,4 @@
|
||||||
"aarch64-darwin"
|
"aarch64-darwin"
|
||||||
"x86_64-darwin"
|
"x86_64-darwin"
|
||||||
];
|
];
|
||||||
}
|
}
|
Loading…
Reference in a new issue