2023-12-20 16:18:13 -06:00
|
|
|
{ lib, config, pkgs, home-manager, ...}:
|
2023-07-09 17:21:27 -05:00
|
|
|
|
|
|
|
let
|
2023-08-03 00:05:35 -05:00
|
|
|
customPolybar = pkgs.polybar.override {
|
|
|
|
alsaSupport = true;
|
|
|
|
pulseSupport = true;
|
|
|
|
};
|
2023-07-09 17:21:27 -05:00
|
|
|
in {
|
|
|
|
imports = [
|
2023-12-20 16:18:13 -06:00
|
|
|
home-manager.nixosModules.default
|
2023-07-10 22:01:02 -05:00
|
|
|
./main.nix
|
2023-07-09 17:21:27 -05:00
|
|
|
];
|
|
|
|
|
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
libinput.enable = true;
|
|
|
|
layout = "us";
|
|
|
|
|
2023-08-03 00:05:35 -05:00
|
|
|
displayManager.sx.enable = true;
|
2023-07-09 17:21:27 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
sound.enable = true;
|
|
|
|
hardware.pulseaudio.enable = true;
|
|
|
|
|
2023-07-10 21:04:29 -05:00
|
|
|
nixpkgs.config = {
|
|
|
|
allowUnfree = true;
|
2023-12-05 21:43:38 -06:00
|
|
|
permittedInsecurePackages = [
|
|
|
|
"libxls-1.6.2"
|
|
|
|
];
|
2023-07-10 21:04:29 -05:00
|
|
|
};
|
|
|
|
|
2023-07-09 17:21:27 -05:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
sx
|
|
|
|
fzy
|
|
|
|
xclip
|
2023-07-12 20:13:14 -05:00
|
|
|
xcape
|
2023-07-10 22:38:02 -05:00
|
|
|
ffmpeg
|
2023-09-23 03:42:22 -05:00
|
|
|
man-pages
|
2023-07-10 21:04:29 -05:00
|
|
|
|
2023-08-03 22:10:01 -05:00
|
|
|
ncmpcpp
|
2023-08-03 00:05:35 -05:00
|
|
|
pciutils
|
2023-08-06 22:13:04 -05:00
|
|
|
tor-browser-bundle-bin
|
2023-08-03 00:05:35 -05:00
|
|
|
xscreensaver
|
2023-07-10 21:04:29 -05:00
|
|
|
ncpamixer
|
2023-08-03 00:05:35 -05:00
|
|
|
gpick
|
2023-08-13 20:13:48 -05:00
|
|
|
calcurse
|
2023-08-03 00:05:35 -05:00
|
|
|
dunst
|
|
|
|
libnotify
|
2023-07-10 21:04:29 -05:00
|
|
|
tig
|
|
|
|
neomutt
|
|
|
|
mpv
|
|
|
|
yt-dlp
|
|
|
|
zathura
|
|
|
|
tmux
|
|
|
|
lynx
|
|
|
|
feh
|
|
|
|
elinks
|
|
|
|
sc-im
|
|
|
|
ledger
|
|
|
|
remind
|
|
|
|
python3
|
2023-08-01 15:39:35 -05:00
|
|
|
pinentry-curses
|
2023-08-13 20:13:48 -05:00
|
|
|
magic-wormhole
|
|
|
|
xbrightness
|
2023-11-15 21:04:50 -06:00
|
|
|
xdotool
|
2023-08-18 07:49:16 -05:00
|
|
|
figlet
|
2023-12-03 22:39:54 -06:00
|
|
|
neomutt
|
2023-08-13 20:13:48 -05:00
|
|
|
|
|
|
|
unzip
|
|
|
|
lua-language-server
|
|
|
|
rnix-lsp
|
|
|
|
python311Packages.jedi-language-server
|
2023-07-10 21:04:29 -05:00
|
|
|
|
2023-07-12 20:13:14 -05:00
|
|
|
ungoogled-chromium
|
2023-07-10 21:04:29 -05:00
|
|
|
discord
|
2023-07-09 17:21:27 -05:00
|
|
|
|
2023-08-03 00:05:35 -05:00
|
|
|
customPolybar
|
2023-08-01 15:54:24 -05:00
|
|
|
(pkgs.callPackage ../builds/utils.nix {})
|
|
|
|
(pkgs.callPackage ../builds/st.nix {})
|
|
|
|
(pkgs.callPackage ../builds/pash.nix {})
|
2023-07-09 17:21:27 -05:00
|
|
|
];
|
|
|
|
|
2023-12-05 21:43:38 -06:00
|
|
|
fonts.packages = with pkgs; [
|
2023-07-09 17:21:27 -05:00
|
|
|
fantasque-sans-mono
|
|
|
|
];
|
|
|
|
|
|
|
|
programs.gnupg.agent = {
|
|
|
|
enable = true;
|
2023-08-01 15:39:35 -05:00
|
|
|
pinentryFlavor = "gtk2";
|
2023-07-09 17:21:27 -05:00
|
|
|
enableSSHSupport = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.firefox = {
|
|
|
|
enable = true;
|
|
|
|
policies = {
|
|
|
|
DisableFirefoxStudies = true;
|
|
|
|
DisablePocket = true;
|
|
|
|
DisableTelemetry = {
|
|
|
|
Cryptomining = true;
|
|
|
|
Fingerprinting = true;
|
|
|
|
EmailTracking = true;
|
|
|
|
};
|
|
|
|
DisableFirefoxAccounts = true;
|
|
|
|
DisableFirefoxScreenshots = true;
|
|
|
|
DisableSetDesktopBackground = true;
|
|
|
|
DisplayBookmarksToolbar = "never";
|
|
|
|
DontCheckDefaultBrowser = true;
|
|
|
|
Extensions = {
|
|
|
|
Install = [
|
|
|
|
"https://addons.mozilla.org/firefox/downloads/file/3812704/umatrix-1.4.4.xpi"
|
|
|
|
"https://addons.mozilla.org/firefox/downloads/file/3824639/gruvbox_true_dark-2.0.xpi"
|
|
|
|
"https://addons.mozilla.org/firefox/downloads/file/4128489/darkreader-4.9.64.xpi"
|
|
|
|
"https://addons.mozilla.org/firefox/downloads/file/4036604/tridactyl_vim-1.23.0.xpi"
|
|
|
|
"https://addons.mozilla.org/firefox/downloads/file/4098688/user_agent_string_switcher-0.5.0.xpi"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
FirefoxHome = {
|
|
|
|
Pocket = false;
|
|
|
|
Snippets = false;
|
|
|
|
TopSites = false;
|
|
|
|
SponsoredTopSites = false;
|
|
|
|
};
|
|
|
|
UserMessaging = {
|
|
|
|
ExtensionRecommendations = false;
|
|
|
|
SkipOnboarding = true;
|
|
|
|
MoreFromMozilla = false;
|
|
|
|
UrlbarInterventions = false;
|
|
|
|
WhatsNew = false;
|
|
|
|
};
|
|
|
|
EnableTrackingProtection = true;
|
|
|
|
OverrideFirstRunPage = "";
|
|
|
|
OverridePostUpdatePage = "";
|
|
|
|
PasswordManagerEnabled = false;
|
|
|
|
SearchSuggestEnabled = false;
|
|
|
|
};
|
2023-12-05 21:43:38 -06:00
|
|
|
nativeMessagingHosts.packages = [
|
|
|
|
pkgs.tridactyl-native
|
|
|
|
];
|
2023-07-09 17:21:27 -05:00
|
|
|
};
|
|
|
|
|
2023-08-03 22:10:01 -05:00
|
|
|
services.mpd = {
|
|
|
|
enable = true;
|
|
|
|
musicDirectory = "/home/usr/music";
|
2023-09-23 03:42:22 -05:00
|
|
|
user = "usr";
|
2023-08-03 22:10:01 -05:00
|
|
|
extraConfig = ''
|
|
|
|
audio_output {
|
|
|
|
type "pulse"
|
2023-09-23 03:42:22 -05:00
|
|
|
name "Pulseaudio"
|
|
|
|
}
|
|
|
|
audio_output {
|
|
|
|
type "alsa"
|
|
|
|
name "mpd alsamixer-output"
|
2023-08-03 22:10:01 -05:00
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2023-07-09 17:21:27 -05:00
|
|
|
users.users.usr = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [ "wheel" ];
|
2023-07-13 12:16:31 -05:00
|
|
|
initialPassword = "usr";
|
2023-07-09 17:21:27 -05:00
|
|
|
packages = with pkgs; [
|
|
|
|
firefox
|
|
|
|
tree
|
|
|
|
bspwm
|
|
|
|
sxhkd
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
# honking impure, but who's counting anyway?
|
|
|
|
system.activationScripts.test-script.text = ''
|
|
|
|
#!${pkgs.bash}/bin/bash
|
|
|
|
|
|
|
|
if [ "$(${pkgs.coreutils}/bin/whoami)" = "usr"]; then
|
|
|
|
${pkgs.coreutils}/bin/mkdir -p /home/usr/git
|
|
|
|
${pkgs.git}/bin/git https://git.beepboop.systems/rndusr/dot /home/usr/git/dot
|
|
|
|
${pkgs.git}/bin/git https://git.beepboop.systems/rndusr/privdata /home/usr/git/privdata
|
|
|
|
fi
|
|
|
|
'';
|
|
|
|
|
2023-09-23 03:42:22 -05:00
|
|
|
home-manager.users.usr = {
|
|
|
|
home.stateVersion = "23.05";
|
|
|
|
|
|
|
|
programs.neovim = {
|
|
|
|
enable = true;
|
|
|
|
extraLuaPackages = luaPkgs: with luaPkgs; [ luaexpat ];
|
|
|
|
extraPackages = [ pkgs.sqlite ];
|
|
|
|
};
|
2023-07-09 17:21:27 -05:00
|
|
|
|
2023-09-23 03:42:22 -05:00
|
|
|
home.file = {
|
2023-07-09 17:21:27 -05:00
|
|
|
".config/bash" = {
|
2023-08-01 15:54:24 -05:00
|
|
|
source = ../config/bash;
|
2023-07-09 17:21:27 -05:00
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
".config/bspwm" = {
|
2023-08-01 15:54:24 -05:00
|
|
|
source = ../config/bspwm;
|
2023-07-09 17:21:27 -05:00
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
".config/git" = {
|
2023-08-01 15:54:24 -05:00
|
|
|
source = ../config/git;
|
2023-07-09 17:21:27 -05:00
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
".config/htop" = {
|
2023-08-01 15:54:24 -05:00
|
|
|
source = ../config/htop;
|
2023-07-09 17:21:27 -05:00
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
".config/nvim" = {
|
2023-08-01 15:54:24 -05:00
|
|
|
source = ../config/nvim;
|
2023-07-09 17:21:27 -05:00
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
".config/python" = {
|
2023-08-01 15:54:24 -05:00
|
|
|
source = ../config/python;
|
2023-07-09 17:21:27 -05:00
|
|
|
recursive = true;
|
|
|
|
};
|
2023-07-10 21:23:10 -05:00
|
|
|
".config/polybar" = {
|
2023-08-01 15:54:24 -05:00
|
|
|
source = ../config/polybar;
|
2023-07-10 21:23:10 -05:00
|
|
|
recursive = true;
|
|
|
|
};
|
2023-07-09 17:21:27 -05:00
|
|
|
".config/sx" = {
|
2023-08-01 15:54:24 -05:00
|
|
|
source = ../config/sx;
|
2023-07-09 17:21:27 -05:00
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
".config/sxhkd" = {
|
2023-08-01 15:54:24 -05:00
|
|
|
source = ../config/sxhkd;
|
2023-07-09 17:21:27 -05:00
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
".config/tridactyl" = {
|
2023-08-01 15:54:24 -05:00
|
|
|
source = ../config/tridactyl;
|
2023-07-09 17:21:27 -05:00
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
".config/zathura" = {
|
2023-08-01 15:54:24 -05:00
|
|
|
source = ../config/zathura;
|
2023-07-09 17:21:27 -05:00
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
".local/share/wallpapers" = {
|
2023-08-01 15:54:24 -05:00
|
|
|
source = ../wallpapers;
|
2023-07-09 17:21:27 -05:00
|
|
|
recursive = true;
|
|
|
|
};
|
2023-08-03 00:05:35 -05:00
|
|
|
".local/share/gnupg" = {
|
|
|
|
source = ../config/gnupg;
|
|
|
|
recursive = true;
|
|
|
|
};
|
2023-09-23 03:42:22 -05:00
|
|
|
".config/emacs" = {
|
|
|
|
source = ../config/emacs;
|
|
|
|
recursive = true;
|
|
|
|
};
|
2023-07-09 17:21:27 -05:00
|
|
|
};
|
|
|
|
};
|
2023-07-10 21:58:36 -05:00
|
|
|
|
|
|
|
environment.etc = {
|
|
|
|
"profile.local" = {
|
2023-08-01 15:39:35 -05:00
|
|
|
text = "source /home/usr/.config/bash/profile";
|
|
|
|
};
|
|
|
|
"bashrc.local" = {
|
|
|
|
text = "source /home/usr/.config/bash/bashrc";
|
2023-07-10 21:58:36 -05:00
|
|
|
};
|
|
|
|
};
|
2023-07-10 22:56:44 -05:00
|
|
|
|
|
|
|
programs.ssh.askPassword = "";
|
2023-07-09 17:21:27 -05:00
|
|
|
}
|