Regenerated
This commit is contained in:
+85
-22
@@ -1,38 +1,91 @@
|
|||||||
Rewrite my ./generated/modules/traveldroid/system/bluetooth.nix to integrate nicely with my existing flake.nix en host.nix
|
Rewrite my ./generated/modules/traveldroid/apps/emax.nix to integrate nicely with my existing flake.nix en host.nix
|
||||||
|
This version does not install emacs
|
||||||
Avoid infinite recursion
|
Avoid infinite recursion
|
||||||
Just look at how to rewrite this, ignore previous interactions around this nix.
|
Just look at how to rewrite this, ignore previous interactions around this nix.
|
||||||
Solve the error. That is really important.
|
|
||||||
Look at hyprland.nix to see how to avoid the home error
|
Look at hyprland.nix to see how to avoid the home error
|
||||||
|
|
||||||
|
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
{ config, pkgs, ... }:
|
{ lib, pkgs, flakeRoot, home-manager, config, ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
############################
|
username = config.defaultUser or "henrov";
|
||||||
# Bluetooth hardware
|
|
||||||
############################
|
|
||||||
hardware.bluetooth = {
|
|
||||||
enable = true; # turn on the daemon
|
|
||||||
powerOnBoot = true; # auto-power on
|
|
||||||
package = pkgs.bluez; # singular, not a list
|
|
||||||
};
|
|
||||||
|
|
||||||
############################
|
emacsPkg = pkgs.emacs-pgtk.override { withTreeSitter = true; };
|
||||||
# GUI Bluetooth manager
|
|
||||||
############################
|
emacsExtraPackages = epkgs: [
|
||||||
environment.systemPackages = with pkgs; [
|
epkgs.manualPackages.treesit-grammars.with-all-grammars
|
||||||
blueman # graphical Bluetooth manager
|
epkgs.nerd-icons
|
||||||
|
epkgs.doom-modeline
|
||||||
|
epkgs.diminish
|
||||||
|
epkgs.eldoc
|
||||||
|
epkgs.pulsar
|
||||||
|
epkgs.which-key
|
||||||
|
epkgs.expreg
|
||||||
|
epkgs.vundo
|
||||||
|
epkgs.puni
|
||||||
|
epkgs.avy
|
||||||
|
epkgs.consult
|
||||||
|
epkgs.vertico
|
||||||
|
epkgs.marginalia
|
||||||
|
epkgs.crux
|
||||||
|
epkgs.magit
|
||||||
|
epkgs.nerd-icons-corfu
|
||||||
|
epkgs.corfu
|
||||||
|
epkgs.cape
|
||||||
|
epkgs.orderless
|
||||||
|
epkgs.yasnippet
|
||||||
|
epkgs.yasnippet-snippets
|
||||||
|
epkgs.rg
|
||||||
|
epkgs.exec-path-from-shell
|
||||||
|
epkgs.eat
|
||||||
|
epkgs.rust-mode
|
||||||
|
epkgs.rustic
|
||||||
|
epkgs.nix-mode
|
||||||
|
epkgs.hcl-mode
|
||||||
|
epkgs.shell-pop
|
||||||
|
epkgs.envrc
|
||||||
|
epkgs.nixpkgs-fmt
|
||||||
|
epkgs.f
|
||||||
|
epkgs.gptel
|
||||||
|
epkgs.catppuccin-theme
|
||||||
|
epkgs.eldoc-box
|
||||||
|
epkgs.sideline
|
||||||
|
epkgs.sideline-flymake
|
||||||
|
epkgs.sideline-eglot
|
||||||
];
|
];
|
||||||
|
|
||||||
############################
|
# Emacs config files
|
||||||
# PipeWire for Bluetooth audio
|
earlyInitFile = "${flakeRoot}/generated/.config/emacs/early-init.el";
|
||||||
############################
|
initFile = "${flakeRoot}/generated/.config/emacs/init.el";
|
||||||
# services.pipewire.enable = true;
|
|
||||||
|
in
|
||||||
|
{
|
||||||
|
_module.args.hmUsers = {
|
||||||
|
${username} = {
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
EDITOR = "emacs";
|
||||||
|
XDG_SCREENSHOTS_DIR = "~/screenshots";
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.emacs = {
|
||||||
|
enable = true;
|
||||||
|
package = emacsPkg;
|
||||||
|
extraPackages = emacsExtraPackages;
|
||||||
|
};
|
||||||
|
|
||||||
|
home.file = {
|
||||||
|
".emacs.d/early-init.el" = { source = earlyInitFile; };
|
||||||
|
".emacs.d/init.el" = { source = initFile; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
flake.nix
|
flake.nix
|
||||||
@@ -55,6 +108,11 @@ flake.nix
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
emacs-overlay = {
|
||||||
|
url = "github:nix-community/emacs-overlay";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
zen-browser = {
|
zen-browser = {
|
||||||
url = "github:youwen5/zen-browser-flake";
|
url = "github:youwen5/zen-browser-flake";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -63,7 +121,7 @@ flake.nix
|
|||||||
hyprland.url = "github:hyprwm/Hyprland";
|
hyprland.url = "github:hyprwm/Hyprland";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, import-tree, stylix, hyprland, zen-browser, ... }:
|
outputs = { self, nixpkgs, home-manager, import-tree, stylix, hyprland, emacs-overlay, zen-browser, ... }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
flakeRoot = self;
|
flakeRoot = self;
|
||||||
@@ -73,7 +131,11 @@ flake.nix
|
|||||||
inherit system;
|
inherit system;
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
|
({ ... }: {
|
||||||
|
nixpkgs.overlays = [ emacs-overlay.overlays.default ];
|
||||||
|
})
|
||||||
./generated/hosts/traveldroid/host.nix
|
./generated/hosts/traveldroid/host.nix
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
@@ -85,6 +147,7 @@ flake.nix
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
host.nix
|
host.nix
|
||||||
|
|||||||
+5
-1
@@ -1201,13 +1201,15 @@ fi
|
|||||||
** =generated/modules/traveldroid/apps/emacs/emacs.nix=
|
** =generated/modules/traveldroid/apps/emacs/emacs.nix=
|
||||||
This installs emacs
|
This installs emacs
|
||||||
#+BEGIN_SRC nix :tangle generated/modules/traveldroid/apps/emacs/emacs.nix :noweb tangle :mkdirp yes
|
#+BEGIN_SRC nix :tangle generated/modules/traveldroid/apps/emacs/emacs.nix :noweb tangle :mkdirp yes
|
||||||
{ lib, pkgs, flakeRoot, home-manager, config, ... }:
|
{ lib, pkgs, flakeRoot, home-manager, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
username = config.defaultUser or "henrov";
|
username = config.defaultUser or "henrov";
|
||||||
|
|
||||||
|
# Emacs package with Tree-sitter support
|
||||||
emacsPkg = pkgs.emacs-pgtk.override { withTreeSitter = true; };
|
emacsPkg = pkgs.emacs-pgtk.override { withTreeSitter = true; };
|
||||||
|
|
||||||
|
# Extra packages for Emacs via Home Manager
|
||||||
emacsExtraPackages = epkgs: [
|
emacsExtraPackages = epkgs: [
|
||||||
epkgs.manualPackages.treesit-grammars.with-all-grammars
|
epkgs.manualPackages.treesit-grammars.with-all-grammars
|
||||||
epkgs.nerd-icons
|
epkgs.nerd-icons
|
||||||
@@ -1256,8 +1258,10 @@ let
|
|||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
# Home Manager user configuration
|
||||||
_module.args.hmUsers = {
|
_module.args.hmUsers = {
|
||||||
${username} = {
|
${username} = {
|
||||||
|
home.packages = [ emacsPkg ];
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "emacs";
|
EDITOR = "emacs";
|
||||||
|
|||||||
Generated
+38
@@ -101,6 +101,27 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"emacs-overlay": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"nixpkgs-stable": "nixpkgs-stable"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1774577696,
|
||||||
|
"narHash": "sha256-8ZXYqauyfGM9VO88hVwfNTYrrXhVx/H0cBBeStSIT5A=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "emacs-overlay",
|
||||||
|
"rev": "f3141a658f22d6e5e8b4f85811d7612f32a09a9d",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "emacs-overlay",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"firefox-gnome-theme": {
|
"firefox-gnome-theme": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@@ -581,6 +602,22 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-stable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1774388614,
|
||||||
|
"narHash": "sha256-tFwzTI0DdDzovdE9+Ras6CUss0yn8P9XV4Ja6RjA+nU=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "1073dad219cb244572b74da2b20c7fe39cb3fa9e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-25.11",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1774106199,
|
"lastModified": 1774106199,
|
||||||
@@ -647,6 +684,7 @@
|
|||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"emacs-overlay": "emacs-overlay",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
"import-tree": "import-tree",
|
"import-tree": "import-tree",
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
{ lib, pkgs, flakeRoot, home-manager, config, ... }:
|
{ lib, pkgs, flakeRoot, home-manager, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
username = config.defaultUser or "henrov";
|
username = config.defaultUser or "henrov";
|
||||||
|
|
||||||
|
# Emacs package with Tree-sitter support
|
||||||
emacsPkg = pkgs.emacs-pgtk.override { withTreeSitter = true; };
|
emacsPkg = pkgs.emacs-pgtk.override { withTreeSitter = true; };
|
||||||
|
|
||||||
|
# Extra packages for Emacs via Home Manager
|
||||||
emacsExtraPackages = epkgs: [
|
emacsExtraPackages = epkgs: [
|
||||||
epkgs.manualPackages.treesit-grammars.with-all-grammars
|
epkgs.manualPackages.treesit-grammars.with-all-grammars
|
||||||
epkgs.nerd-icons
|
epkgs.nerd-icons
|
||||||
@@ -53,8 +55,10 @@ let
|
|||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
# Home Manager user configuration
|
||||||
_module.args.hmUsers = {
|
_module.args.hmUsers = {
|
||||||
${username} = {
|
${username} = {
|
||||||
|
home.packages = [ emacsPkg ];
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "emacs";
|
EDITOR = "emacs";
|
||||||
|
|||||||
Reference in New Issue
Block a user