The nixpad rabbit hole
This commit is contained in:
5
dot_gitconfig
Normal file
5
dot_gitconfig
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
[user]
|
||||||
|
name = Aly Sewelam
|
||||||
|
email = linlysmolworthy@gmail.com
|
||||||
|
[init]
|
||||||
|
defaultBranch = main
|
||||||
@@ -465,7 +465,8 @@
|
|||||||
|
|
||||||
(setq org-pomodoro-play-sounds t)
|
(setq org-pomodoro-play-sounds t)
|
||||||
(setq-default doom-modeline-buffer-file-name-style 'file-name-with-project)
|
(setq-default doom-modeline-buffer-file-name-style 'file-name-with-project)
|
||||||
(setq chezmoi-command "/home/linly/bin/chezmoi")
|
;; (setq chezmoi-command "/home/linly/bin/chezmoi")
|
||||||
|
(setq chezmoi-command "chezmoi")
|
||||||
(setq auto-save-visited-mode t)
|
(setq auto-save-visited-mode t)
|
||||||
(setq auto-save-visited-interval 10)
|
(setq auto-save-visited-interval 10)
|
||||||
(auto-save-visited-mode +1)
|
(auto-save-visited-mode +1)
|
||||||
@@ -656,3 +657,9 @@
|
|||||||
|
|
||||||
;; ssh auth sock sometimes isn't inheritted (w nix)
|
;; ssh auth sock sometimes isn't inheritted (w nix)
|
||||||
(setenv "SSH_AUTH_SOCK" (expand-file-name "~/.bitwarden-ssh-agent.sock"))
|
(setenv "SSH_AUTH_SOCK" (expand-file-name "~/.bitwarden-ssh-agent.sock"))
|
||||||
|
|
||||||
|
(setq telega-tdlib-library-path "/nix/store/q5skl24l40lrjinl8ppy83gc0gp0z4xa-tdlib-1.8.55/lib/libtdjson.so")
|
||||||
|
(setq telega-tdlib-executable nil) ;; No need for executable
|
||||||
|
(setq telega-server-libs-prefix "/nix/store/q5skl24l40lrjinl8ppy83gc0gp0z4xa-tdlib-1.8.55")
|
||||||
|
(setenv "PKG_CONFIG_PATH" "/nix/store/hqvsiah013yzb17b13fn18fpqk7m13cg-zlib-1.3.1-dev/lib/pkgconfig/")
|
||||||
|
|
||||||
|
|||||||
143
private_dot_config/nixos/configuration.nix
Normal file
143
private_dot_config/nixos/configuration.nix
Normal file
@@ -0,0 +1,143 @@
|
|||||||
|
# Edit this configuration file to define what should be installed on
|
||||||
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ # Include the results of the hardware scan.
|
||||||
|
./hardware-configuration.nix
|
||||||
|
./packages.nix
|
||||||
|
./emacs.nix
|
||||||
|
./laptop.nix
|
||||||
|
./dev-pkgs.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
# Bootloader.
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
# Use latest kernel.
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
|
networking.hostName = "nixpad"; # Define your hostname.
|
||||||
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
|
|
||||||
|
# Configure network proxy if necessary
|
||||||
|
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||||
|
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||||
|
|
||||||
|
nix.gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "daily"; # or "daily"
|
||||||
|
options = "--delete-older-than 2";
|
||||||
|
};
|
||||||
|
# Enable networking
|
||||||
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
# Set your time zone.
|
||||||
|
time.timeZone = "Africa/Cairo";
|
||||||
|
|
||||||
|
# Select internationalisation properties.
|
||||||
|
i18n.defaultLocale = "en_GB.UTF-8";
|
||||||
|
|
||||||
|
i18n.extraLocaleSettings = {
|
||||||
|
LC_ADDRESS = "en_GB.UTF-8";
|
||||||
|
LC_IDENTIFICATION = "en_GB.UTF-8";
|
||||||
|
LC_MEASUREMENT = "en_GB.UTF-8";
|
||||||
|
LC_MONETARY = "en_GB.UTF-8";
|
||||||
|
LC_NAME = "en_GB.UTF-8";
|
||||||
|
LC_NUMERIC = "en_GB.UTF-8";
|
||||||
|
LC_PAPER = "en_GB.UTF-8";
|
||||||
|
LC_TELEPHONE = "en_GB.UTF-8";
|
||||||
|
LC_TIME = "en_GB.UTF-8";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable the X11 windowing system.
|
||||||
|
services.xserver.enable = true;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Enable CUPS to print documents.
|
||||||
|
services.printing.enable = true;
|
||||||
|
|
||||||
|
# Enable sound with pipewire.
|
||||||
|
services.pulseaudio.enable = false;
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable touchpad support (enabled default in most desktopManager).
|
||||||
|
# services.xserver.libinput.enable = true;
|
||||||
|
|
||||||
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
|
users.users.linly = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "Aly Sewelam";
|
||||||
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Install firefox.
|
||||||
|
|
||||||
|
# Allow unfree packages
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
# Configure keymap in X11
|
||||||
|
services.xserver.xkb = {
|
||||||
|
layout = "us";
|
||||||
|
variant = "";
|
||||||
|
options = "caps:escape";
|
||||||
|
};
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
autosuggestions.enable = true;
|
||||||
|
syntaxHighlighting.enable = true;
|
||||||
|
|
||||||
|
shellAliases = {
|
||||||
|
ll = "ls -l";
|
||||||
|
edit = "sudo -e";
|
||||||
|
update = "sudo nixos-rebuild switch";
|
||||||
|
};
|
||||||
|
|
||||||
|
histSize = 10000;
|
||||||
|
histFile = "$HOME/.zsh_history";
|
||||||
|
setOptions = [
|
||||||
|
"HIST_IGNORE_ALL_DUPS"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
users.defaultUserShell = pkgs.zsh;
|
||||||
|
services.tailscale.enable = true;
|
||||||
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
|
# started in user sessions.
|
||||||
|
# programs.mtr.enable = true;
|
||||||
|
# programs.gnupg.agent = {
|
||||||
|
# enable = true;
|
||||||
|
# enableSSHSupport = true;
|
||||||
|
# };
|
||||||
|
|
||||||
|
# List services that you want to enable:
|
||||||
|
|
||||||
|
# Enable the OpenSSH daemon.
|
||||||
|
# services.openssh.enable = true;
|
||||||
|
|
||||||
|
# Open ports in the firewall.
|
||||||
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
|
# Or disable the firewall altogether.
|
||||||
|
# networking.firewall.enable = false;
|
||||||
|
|
||||||
|
# This value determines the NixOS release from which the default
|
||||||
|
# settings for stateful data, like file locations and database versions
|
||||||
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
|
# this value at the release version of the first install of this system.
|
||||||
|
# Before changing this value read the documentation for this option
|
||||||
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
|
system.stateVersion = "25.11"; # Did you read the comment?
|
||||||
|
|
||||||
|
}
|
||||||
15
private_dot_config/nixos/dev-pkgs.nix
Normal file
15
private_dot_config/nixos/dev-pkgs.nix
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
python315 graphviz
|
||||||
|
texliveFull
|
||||||
|
rustup gcc go
|
||||||
|
cmake gnumake
|
||||||
|
trunk slumber
|
||||||
|
direnv
|
||||||
|
];
|
||||||
|
}
|
||||||
17
private_dot_config/nixos/emacs.nix
Normal file
17
private_dot_config/nixos/emacs.nix
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
tdlib
|
||||||
|
emacsPackages.mu4e
|
||||||
|
emacs
|
||||||
|
ripgrep
|
||||||
|
coreutils
|
||||||
|
fd
|
||||||
|
aspell aspellDicts.en
|
||||||
|
zlib
|
||||||
|
pkg-config
|
||||||
|
libwebp
|
||||||
|
];
|
||||||
|
}
|
||||||
33
private_dot_config/nixos/hardware-configuration.nix
Normal file
33
private_dot_config/nixos/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" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/375deb8e-2972-45da-b166-9c88c5a48423";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/D618-6B9C";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices =
|
||||||
|
[ { device = "/dev/disk/by-uuid/6b5fca90-220f-47e6-8c71-8e26ae9c9e0f"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
13
private_dot_config/nixos/i3-pkgs.nix
Normal file
13
private_dot_config/nixos/i3-pkgs.nix
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
dunst
|
||||||
|
flameshot
|
||||||
|
wezterm
|
||||||
|
rofi
|
||||||
|
playerctl
|
||||||
|
pavucontrol
|
||||||
|
];
|
||||||
|
}
|
||||||
28
private_dot_config/nixos/laptop.nix
Normal file
28
private_dot_config/nixos/laptop.nix
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# Enable the GNOME Desktop Environment.
|
||||||
|
services.displayManager.gdm.enable = true;
|
||||||
|
services.desktopManager.gnome.enable = true;
|
||||||
|
services.fprintd.enable = true;
|
||||||
|
# https://github.com/NixOS/nixpkgs/issues/149812
|
||||||
|
environment.extraInit = ''
|
||||||
|
export XDG_DATA_DIRS="$XDG_DATA_DIRS:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}"
|
||||||
|
'';
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
gnomeExtensions.just-perfection
|
||||||
|
];
|
||||||
|
programs.dconf.profiles.user.databases = [
|
||||||
|
{
|
||||||
|
lockAll = true; # prevents overriding
|
||||||
|
settings = {
|
||||||
|
"org/gnome/desktop/interface" = {
|
||||||
|
accent-color = "purple";
|
||||||
|
};
|
||||||
|
"org/gnome/desktop/input-sources" = {
|
||||||
|
xkb-options = [ "caps:escape" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
32
private_dot_config/nixos/packages.nix
Normal file
32
private_dot_config/nixos/packages.nix
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# Allow unfree packages
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
|
||||||
|
# List packages installed in system profile. To search, run:
|
||||||
|
# $ nix search wget
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
vim
|
||||||
|
wget
|
||||||
|
ranger
|
||||||
|
mpv ffmpeg
|
||||||
|
adw-gtk3
|
||||||
|
bitwarden-desktop
|
||||||
|
chezmoi
|
||||||
|
darkman
|
||||||
|
nextcloud-talk-desktop
|
||||||
|
hledger
|
||||||
|
supersonic
|
||||||
|
libdrm
|
||||||
|
yt-dlp
|
||||||
|
prismlauncher
|
||||||
|
nextcloud-client
|
||||||
|
discord-canary
|
||||||
|
firefox-gnome-theme
|
||||||
|
];
|
||||||
|
programs.steam.enable = true;
|
||||||
|
programs.firefox.enable = true;
|
||||||
|
fonts.packages = with pkgs; [ miracode ];
|
||||||
|
}
|
||||||
10
private_dot_config/nixos/sway-pkgs.nix
Normal file
10
private_dot_config/nixos/sway-pkgs.nix
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
zathura
|
||||||
|
wezterm
|
||||||
|
pwvucontrol
|
||||||
|
playerctl
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
gsettings set org.gnome.desktop.interface gtk-theme adw-gtk3-dark
|
||||||
|
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
|
||||||
|
# sed -i -e 's/light/dark/g' ~/.config/rofi/config.rasi ~/.config/zathura/zathurarc ~/.config/kitty/kitty.conf
|
||||||
|
# sed -i -e 's/prefer-dark-theme=0/prefer-dark-theme=1/g' ~/.config/gtk-3.0/settings.ini ~/.config/gtk-4.0/settings.ini
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
gsettings set org.gnome.desktop.interface gtk-theme adw-gtk3
|
||||||
|
gsettings set org.gnome.desktop.interface color-scheme 'prefer-light'
|
||||||
Reference in New Issue
Block a user