Add emacs-overlay
This commit is contained in:
parent
7842f749db
commit
d5d1dddc4e
3 changed files with 25 additions and 9 deletions
16
flake.lock
generated
16
flake.lock
generated
|
|
@ -1,5 +1,20 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"emacs-overlay": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1635582806,
|
||||||
|
"narHash": "sha256-vsnnFdVWvrXh0bAx9+8N3cE/30EZAB9it4/V0cenl0w=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "emacs-overlay",
|
||||||
|
"rev": "016831103869d68a3dea56150f5224fdb32e5f8c",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "emacs-overlay",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1631561581,
|
"lastModified": 1631561581,
|
||||||
|
|
@ -31,6 +46,7 @@
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"emacs-overlay": "emacs-overlay",
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,9 @@
|
||||||
description = "dotfiles";
|
description = "dotfiles";
|
||||||
|
|
||||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
inputs.emacs-overlay.url = "github:nix-community/emacs-overlay";
|
||||||
|
|
||||||
outputs = { self, nixpkgs, flake-utils }:
|
outputs = { self, nixpkgs, flake-utils, emacs-overlay }:
|
||||||
flake-utils.lib.eachDefaultSystem
|
flake-utils.lib.eachDefaultSystem
|
||||||
(system:
|
(system:
|
||||||
let
|
let
|
||||||
|
|
@ -23,7 +24,9 @@
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
dustbowl = nixpkgs.lib.nixosSystem {
|
dustbowl = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [ ./nixos/dustbowl.nix ];
|
modules = [ (import ./nixos/dustbowl.nix {
|
||||||
|
emacs-overlay = emacs-overlay;
|
||||||
|
}) ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
|
{ emacs-overlay }:
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
@ -131,7 +132,7 @@
|
||||||
mako
|
mako
|
||||||
|
|
||||||
# GUI software
|
# GUI software
|
||||||
emacs
|
emacsPgtk
|
||||||
firefox
|
firefox
|
||||||
thunderbird
|
thunderbird
|
||||||
mpv
|
mpv
|
||||||
|
|
@ -163,18 +164,14 @@
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
|
|
||||||
nixpkgs.config.packageOverrides = pkgs: rec {
|
nixpkgs.config.packageOverrides = pkgs: rec {
|
||||||
# Override emacs
|
|
||||||
emacs = pkgs.emacs.override {
|
|
||||||
withGTK3 = true;
|
|
||||||
withGTK2 = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Override firefox
|
# Override firefox
|
||||||
firefox = pkgs.firefox.override {
|
firefox = pkgs.firefox.override {
|
||||||
forceWayland = true;
|
forceWayland = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixpkgs.overlays = [ emacs-overlay.overlay ];
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
networking.firewall.allowedTCPPorts = [ 8080 ];
|
networking.firewall.allowedTCPPorts = [ 8080 ];
|
||||||
networking.firewall.allowedUDPPorts = [ 8080 ];
|
networking.firewall.allowedUDPPorts = [ 8080 ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue