2023-07-09 17:21:27 -05:00
|
|
|
{ lib, config, pkgs, ...}:
|
|
|
|
|
|
|
|
let
|
|
|
|
home-manager = builtins.fetchTarball {
|
|
|
|
url = "https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz";
|
|
|
|
sha256 = "0dfshsgj93ikfkcihf4c5z876h4dwjds998kvgv7sqbfv0z6a4bc";
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
imports = [
|
|
|
|
(import "${home-manager}/nixos")
|
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";
|
|
|
|
|
|
|
|
# we're going to be pulling a sneaky
|
|
|
|
# we don't actually use startx, it just gets lightdm out of the way
|
|
|
|
displayManager.startx.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
sound.enable = true;
|
|
|
|
hardware.pulseaudio.enable = true;
|
|
|
|
|
2023-07-10 21:04:29 -05:00
|
|
|
nixpkgs.config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
};
|
|
|
|
|
2023-07-09 17:21:27 -05:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
sx
|
|
|
|
fzy
|
|
|
|
gnupg
|
|
|
|
xclip
|
2023-07-12 20:13:14 -05:00
|
|
|
xcape
|
2023-07-10 21:04:29 -05:00
|
|
|
polybar
|
2023-07-10 22:38:02 -05:00
|
|
|
ffmpeg
|
2023-07-10 21:04:29 -05:00
|
|
|
|
|
|
|
ncpamixer
|
|
|
|
tig
|
|
|
|
cmus
|
|
|
|
neomutt
|
|
|
|
mpv
|
|
|
|
yt-dlp
|
|
|
|
zathura
|
|
|
|
tmux
|
|
|
|
lynx
|
|
|
|
feh
|
|
|
|
elinks
|
|
|
|
sc-im
|
|
|
|
ledger
|
|
|
|
remind
|
|
|
|
python3
|
|
|
|
|
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
|
|
|
|
|
|
|
(pkgs.callPackage ./builds/utils.nix {})
|
|
|
|
(pkgs.callPackage ./builds/st.nix {})
|
|
|
|
(pkgs.callPackage ./builds/pash.nix {})
|
|
|
|
];
|
|
|
|
|
|
|
|
fonts.fonts = with pkgs; [
|
|
|
|
fantasque-sans-mono
|
|
|
|
];
|
|
|
|
|
|
|
|
programs.gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
pinentryFlavor = "curses";
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
nativeMessagingHosts.tridactyl = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
home-manager.users.usr.home = {
|
|
|
|
stateVersion = "23.05";
|
|
|
|
|
|
|
|
file = {
|
|
|
|
".config/bash" = {
|
|
|
|
source = ./config/bash;
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
".config/bspwm" = {
|
|
|
|
source = ./config/bspwm;
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
".config/git" = {
|
|
|
|
source = ./config/git;
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
".config/htop" = {
|
|
|
|
source = ./config/htop;
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
".config/nvim" = {
|
|
|
|
source = ./config/nvim;
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
".config/python" = {
|
|
|
|
source = ./config/python;
|
|
|
|
recursive = true;
|
|
|
|
};
|
2023-07-10 21:23:10 -05:00
|
|
|
".config/polybar" = {
|
|
|
|
source = ./config/polybar;
|
|
|
|
recursive = true;
|
|
|
|
};
|
2023-07-09 17:21:27 -05:00
|
|
|
".config/sx" = {
|
|
|
|
source = ./config/sx;
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
".config/sxhkd" = {
|
|
|
|
source = ./config/sxhkd;
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
".config/tridactyl" = {
|
|
|
|
source = ./config/tridactyl;
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
".config/zathura" = {
|
|
|
|
source = ./config/zathura;
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
".local/share/wallpapers" = {
|
|
|
|
source = ./wallpapers;
|
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-07-10 21:58:36 -05:00
|
|
|
|
|
|
|
environment.etc = {
|
|
|
|
"profile.local" = {
|
|
|
|
text = "source $HOME/.config/bash/profile";
|
|
|
|
};
|
|
|
|
};
|
2023-07-10 22:56:44 -05:00
|
|
|
|
|
|
|
programs.ssh.askPassword = "";
|
2023-07-09 17:21:27 -05:00
|
|
|
}
|