Testing emacs
This commit is contained in:
@@ -65,17 +65,6 @@
|
||||
];
|
||||
};
|
||||
|
||||
users.users.th3r00t = {
|
||||
isNormalUser = true;
|
||||
description = "Mike 'th3r00t' Young";
|
||||
extraGroups = [ "networkmanager" "wheel" "input" ];
|
||||
packages = with pkgs; [
|
||||
];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH8P/3yzsruekSaZ9b+yk429VTcfCtI1j8jnkNbPAgnr th3r00t@nixos"
|
||||
];
|
||||
};
|
||||
|
||||
environment = {
|
||||
variables.EDITOR = "nvim";
|
||||
systemPackages = with pkgs; [
|
||||
|
||||
@@ -8,6 +8,20 @@
|
||||
../services.nix
|
||||
];
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.th3r00t = {
|
||||
isNormalUser = true;
|
||||
description = "Mike 'th3r00t' Young";
|
||||
extraGroups = [ "networkmanager" "wheel" "input" ];
|
||||
packages = with pkgs; [
|
||||
# kdePackages.kate
|
||||
# thunderbird
|
||||
];
|
||||
};
|
||||
programs.zsh.enable = true;
|
||||
programs.fish.enable = true;
|
||||
programs.bash.enable = true;
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
nix.settings.trusted-users = [ "root" "th3r00t" ];
|
||||
nix.extraOptions = ''
|
||||
|
||||
@@ -59,17 +59,6 @@
|
||||
];
|
||||
};
|
||||
|
||||
users.users.th3r00t = {
|
||||
isNormalUser = true;
|
||||
description = "Mike 'th3r00t' Young";
|
||||
extraGroups = [ "networkmanager" "wheel" "input" ];
|
||||
packages = with pkgs; [
|
||||
];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH8P/3yzsruekSaZ9b+yk429VTcfCtI1j8jnkNbPAgnr th3r00t@nixos"
|
||||
];
|
||||
};
|
||||
|
||||
environment = {
|
||||
variables.EDITOR = "nvim";
|
||||
systemPackages = with pkgs; [
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, callPackage, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
@@ -27,12 +27,75 @@
|
||||
options ath10k_core rawmode=1
|
||||
'';
|
||||
};
|
||||
nixpkgs.overlays = [
|
||||
(import (builtins.fetchTarball {
|
||||
url = "https://github.com/nix-community/emacs-overlay/archive/master.tar.gz";
|
||||
sha256 = "0d04az7ghk446k7wgrlia4rynanx8863xqfw7qzcwqplpzp8h10r";
|
||||
}))
|
||||
];
|
||||
security.rtkit.enable = true;
|
||||
# Enable touchpad support (enabled default in most desktopManager).
|
||||
fonts = {
|
||||
enableDefaultPackages = true;
|
||||
fontDir.enable = true;
|
||||
packages = with pkgs; [
|
||||
(pkgs.emacsWithPackagesFromUsePackage {
|
||||
# Your Emacs config file. Org mode babel files are also
|
||||
# supported.
|
||||
# NB: Config files cannot contain unicode characters, since
|
||||
# they're being parsed in nix, which lacks unicode
|
||||
# support.
|
||||
# config = ./emacs.org;
|
||||
config = ../../home/emacs.org;
|
||||
# config = ./emacs.el;
|
||||
|
||||
# Whether to include your config as a default init file.
|
||||
# If being bool, the value of config is used.
|
||||
# Its value can also be a derivation like this if you want to do some
|
||||
# substitution:
|
||||
# defaultInitFile = pkgs.substituteAll {
|
||||
# name = "default.el";
|
||||
# src = ./emacs.el;
|
||||
# inherit (config.xdg) configHome dataHome;
|
||||
# };
|
||||
defaultInitFile = true;
|
||||
|
||||
# Package is optional, defaults to pkgs.emacs
|
||||
# package = pkgs.emacs-git;
|
||||
package = pkgs.emacs-unstable-pgtk;
|
||||
# By default emacsWithPackagesFromUsePackage will only pull in
|
||||
# packages with `:ensure`, `:ensure t` or `:ensure <package name>`.
|
||||
# Setting `alwaysEnsure` to `true` emulates `use-package-always-ensure`
|
||||
# and pulls in all use-package references not explicitly disabled via
|
||||
# `:ensure nil` or `:disabled`.
|
||||
# Note that this is NOT recommended unless you've actually set
|
||||
# `use-package-always-ensure` to `t` in your config.
|
||||
alwaysEnsure = true;
|
||||
|
||||
# For Org mode babel files, by default only code blocks with
|
||||
# `:tangle yes` are considered. Setting `alwaysTangle` to `true`
|
||||
# will include all code blocks missing the `:tangle` argument,
|
||||
# defaulting it to `yes`.
|
||||
# Note that this is NOT recommended unless you have something like
|
||||
# `#+PROPERTY: header-args:emacs-lisp :tangle yes` in your config,
|
||||
# which defaults `:tangle` to `yes`.
|
||||
alwaysTangle = true;
|
||||
|
||||
# Optionally provide extra packages not in the configuration file.
|
||||
# This can also include extra executables to be run by Emacs (linters,
|
||||
# language servers, formatters, etc)
|
||||
extraEmacsPackages = epkgs: [
|
||||
epkgs.cask
|
||||
pkgs.shellcheck
|
||||
];
|
||||
|
||||
# Optionally override derivations.
|
||||
override = final: prev: {
|
||||
weechat = prev.melpaPackages.weechat.overrideAttrs(old: {
|
||||
patches = [ ./weechat-el.patch ];
|
||||
});
|
||||
};
|
||||
})
|
||||
noto-fonts
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-emoji
|
||||
@@ -56,16 +119,6 @@
|
||||
};
|
||||
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.th3r00t = {
|
||||
isNormalUser = true;
|
||||
description = "Mike 'th3r00t' Young";
|
||||
extraGroups = [ "networkmanager" "wheel" "input" ];
|
||||
packages = with pkgs; [
|
||||
# kdePackages.kate
|
||||
# thunderbird
|
||||
];
|
||||
};
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
@@ -110,6 +163,10 @@
|
||||
pulseaudio.enable = false;
|
||||
libinput.enable = true;
|
||||
# logmein-hamachi.enable = true;
|
||||
emacs = {
|
||||
enable = true;
|
||||
package = pkgs.emacs-unstable-pgtk;
|
||||
};
|
||||
};
|
||||
|
||||
# Open ports in the firewall.
|
||||
|
||||
Reference in New Issue
Block a user