dot_testing/common/desktop.nix

191 lines
4.0 KiB
Nix
Raw Normal View History

2023-12-20 22:33:00 -06:00
{ lib, config, pkgs, ...}:
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 = [
./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;
nixpkgs.config = {
allowUnfree = true;
2023-12-05 21:43:38 -06:00
permittedInsecurePackages = [
"libxls-1.6.2"
];
};
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-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
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
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
neomutt
2023-08-13 20:13:48 -05:00
unzip
lua-language-server
rnix-lsp
python311Packages.jedi-language-server
2023-07-12 20:13:14 -05:00
ungoogled-chromium
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-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
}