Added Emacs nix module and modified things here and there.
This commit is contained in:
parent
d4df25abdf
commit
859036ba7c
10 changed files with 85 additions and 82 deletions
|
|
@ -9,12 +9,12 @@
|
||||||
};
|
};
|
||||||
outputs = { self, nixpkgs, ... }@inputs: {
|
outputs = { self, nixpkgs, ... }@inputs: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
hilbert = nixpkgs.lib.nixosSystem {
|
kirigiri = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = {inherit inputs;};
|
specialArgs = {inherit inputs;};
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/common.nix
|
./hosts/common.nix
|
||||||
./hosts/hilbert/configuration.nix
|
./hosts/kirigiri/configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
cantor = nixpkgs.lib.nixosSystem {
|
cantor = nixpkgs.lib.nixosSystem {
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@
|
||||||
# Browser
|
# Browser
|
||||||
programs.firefox.enable = true;
|
programs.firefox.enable = true;
|
||||||
# Flatpak
|
# Flatpak
|
||||||
services.flatpak.enable = true;
|
# services.flatpak.enable = true;
|
||||||
# Tailscale
|
# Tailscale
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
# GPG
|
# GPG
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@
|
||||||
)
|
)
|
||||||
;; Set default tab width (in spaces)
|
;; Set default tab width (in spaces)
|
||||||
(setq-default tab-width 2)
|
(setq-default tab-width 2)
|
||||||
|
(setq-default standard-indent 2)
|
||||||
;; Store customizations in a separate file
|
;; Store customizations in a separate file
|
||||||
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
||||||
;; Load it if the file exists
|
;; Load it if the file exists
|
||||||
|
|
@ -64,6 +65,7 @@
|
||||||
(use-package gruvbox-theme) ;; Gruvbox is comfy
|
(use-package gruvbox-theme) ;; Gruvbox is comfy
|
||||||
(load-theme 'gruvbox-dark-hard) ;; Dark because I'm a parasite
|
(load-theme 'gruvbox-dark-hard) ;; Dark because I'm a parasite
|
||||||
; For Unix-like operating systems only running the GUI.
|
; For Unix-like operating systems only running the GUI.
|
||||||
|
(set-frame-parameter nil 'alpha-background 80)
|
||||||
(add-to-list 'default-frame-alist '(alpha-background . 80))
|
(add-to-list 'default-frame-alist '(alpha-background . 80))
|
||||||
(use-package doom-modeline
|
(use-package doom-modeline
|
||||||
:ensure t
|
:ensure t
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,21 @@
|
||||||
font-family = "Miracode"
|
font-family = "Monocraft"
|
||||||
background-opacity = 0.8
|
background-opacity = 0.8
|
||||||
theme = "IC_Orange_PPL"
|
theme = "IC_Orange_PPL"
|
||||||
|
|
||||||
mouse-hide-while-typing = true
|
mouse-hide-while-typing = true
|
||||||
|
|
||||||
keybind = ctrl+n=new_window
|
keybind = ctrl+shift+r=reload_config
|
||||||
|
|
||||||
|
keybind = ctrl+w=close_surface
|
||||||
|
keybind = ctrl+shift+f=toggle_fullscreen
|
||||||
|
|
||||||
|
keybind = global:ctrl+q=toggle_quick_terminal
|
||||||
|
|
||||||
|
keybind = ctrl+t=new_tab
|
||||||
|
keybind = ctrl+n=next_tab
|
||||||
|
keybind = ctrl+p=previous_tab
|
||||||
|
|
||||||
|
keybind = ctrl+shift+n=new_window
|
||||||
keybind = ctrl+h=goto_split:left
|
keybind = ctrl+h=goto_split:left
|
||||||
keybind = ctrl+j=goto_split:down
|
keybind = ctrl+j=goto_split:down
|
||||||
keybind = ctrl+k=goto_split:up
|
keybind = ctrl+k=goto_split:up
|
||||||
|
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
||||||
{ config, pkgs, inputs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[
|
|
||||||
./hardware-configuration.nix
|
|
||||||
../../modules/kanata/kanata.nix
|
|
||||||
../../modules/efi.nix
|
|
||||||
../../modules/laptop.nix
|
|
||||||
../../modules/hypr.nix
|
|
||||||
../../modules/virt.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
fileSystems."/media/music" = {
|
|
||||||
device = "/dev/disk/by-uuid/dcd8c4de-96af-4d71-badb-5ed63b7c2c39";
|
|
||||||
fsType = "xfs";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/media/vm" = {
|
|
||||||
device = "/dev/disk/by-uuid/9678bbf2-bf4d-43bb-b0e4-d7cb68915da1";
|
|
||||||
fsType = "xfs";
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.hostName = "hilbert";
|
|
||||||
|
|
||||||
system.stateVersion = "25.11";
|
|
||||||
}
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
||||||
# and may be overwritten by future invocations. Please make changes
|
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports =
|
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
|
|
||||||
boot.initrd.kernelModules = [ ];
|
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
|
||||||
boot.extraModulePackages = [ ];
|
|
||||||
|
|
||||||
fileSystems."/" =
|
|
||||||
{ device = "/dev/disk/by-uuid/28c806ac-9082-40fc-8bd3-da38f4c12ae5";
|
|
||||||
fsType = "xfs";
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/boot" =
|
|
||||||
{ device = "/dev/disk/by-uuid/12CE-A600";
|
|
||||||
fsType = "vfat";
|
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices =
|
|
||||||
[ { device = "/dev/disk/by-uuid/44fbfcf1-382f-4224-ae4c-60c3379f2daf"; }
|
|
||||||
];
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
|
||||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.enp4s0.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
}
|
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
oh-my-zsh = {
|
oh-my-zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [ "git" ];
|
plugins = [ "git" ];
|
||||||
theme = "lambda";
|
theme = "half-life";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -64,7 +64,7 @@
|
||||||
userName = "lulusilly";
|
userName = "lulusilly";
|
||||||
userEmail = "lunita@puppygirl.onl";
|
userEmail = "lunita@puppygirl.onl";
|
||||||
aliases = {
|
aliases = {
|
||||||
ci = "commit -m";
|
c = "commit -m";
|
||||||
co = "checkout";
|
co = "checkout";
|
||||||
s = "status";
|
s = "status";
|
||||||
pu = "push origin master";
|
pu = "push origin master";
|
||||||
|
|
@ -105,15 +105,13 @@
|
||||||
sxiv # Minimal image viewer
|
sxiv # Minimal image viewer
|
||||||
mpv # Media player
|
mpv # Media player
|
||||||
zathura # PDF/CBZ/EPUB/DJVU reader
|
zathura # PDF/CBZ/EPUB/DJVU reader
|
||||||
tmux # Tride and true terminal multiplexer
|
|
||||||
obsidian # For epic note taking (really just mediocre journaling)
|
obsidian # For epic note taking (really just mediocre journaling)
|
||||||
keepassxc # Secure password manager
|
keepassxc # Secure password manager
|
||||||
syncthing # File syncing
|
|
||||||
ghostty # Terminal emulator
|
ghostty # Terminal emulator
|
||||||
irssi # Terminal IRC client
|
irssi # Terminal IRC client
|
||||||
nyxt # Customizable browser
|
qutebrowser # Neat browser with vim keybindings
|
||||||
cmus # C Music Player (TUI)
|
# nyxt # Customizable browser
|
||||||
deadbeef # Closest thing to foobar2000 native on Linux
|
fooyin # Closest thing to foobar2000 native on Linux
|
||||||
nicotine-plus # FOSS client for SoulSeek
|
nicotine-plus # FOSS client for SoulSeek
|
||||||
kdePackages.dolphin # GUI File Manager
|
kdePackages.dolphin # GUI File Manager
|
||||||
# Fonts
|
# Fonts
|
||||||
|
|
@ -132,8 +130,6 @@
|
||||||
".emacs.d/init.el" .source = dotfiles/.emacs.d/init.el;
|
".emacs.d/init.el" .source = dotfiles/.emacs.d/init.el;
|
||||||
# MPV
|
# MPV
|
||||||
".config/mpv/mpv.conf" .source = dotfiles/mpv/mpv.conf;
|
".config/mpv/mpv.conf" .source = dotfiles/mpv/mpv.conf;
|
||||||
# Btop
|
|
||||||
# ".config/btop/btop.conf" .source = dotfiles/btop/btop.conf;
|
|
||||||
# Neofetch
|
# Neofetch
|
||||||
".config/neofetch/config.conf" .source = dotfiles/neofetch/config.conf;
|
".config/neofetch/config.conf" .source = dotfiles/neofetch/config.conf;
|
||||||
# Hyprland
|
# Hyprland
|
||||||
|
|
|
||||||
17
nix/hosts/kirigiri/configuration.nix
Normal file
17
nix/hosts/kirigiri/configuration.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
{ config, pkgs, inputs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[
|
||||||
|
./hardware-configuration.nix
|
||||||
|
../../modules/kanata/kanata.nix
|
||||||
|
../../modules/efi.nix
|
||||||
|
../../modules/laptop.nix
|
||||||
|
../../modules/hypr.nix
|
||||||
|
../../modules/emacs.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
networking.hostName = "kirigiri";
|
||||||
|
|
||||||
|
system.stateVersion = "25.11";
|
||||||
|
}
|
||||||
33
nix/hosts/kirigiri/hardware-configuration.nix
Normal file
33
nix/hosts/kirigiri/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
|
# and may be overwritten by future invocations. Please make changes
|
||||||
|
# to /etc/nixos/configuration.nix instead.
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "sd_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/1cf9f882-6a8b-4f41-b6d2-c4533b2de98c";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/12CE-A600";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices =
|
||||||
|
[ { device = "/dev/disk/by-uuid/33ef7c7f-5728-423a-a27b-810381c2b968"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
12
nix/modules/emacs.nix
Normal file
12
nix/modules/emacs.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
{ config, lib, pkgs, inputs, ...}:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.emacs = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.emacs-gtk;
|
||||||
|
extraPackages = epkgs: [
|
||||||
|
epkgs.nix-mode
|
||||||
|
epkgs.nixfmt
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue