From e6ed60548397627bf10f561f9438201dbba0a36e Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 21 Apr 2024 02:15:42 +0300 Subject: 2024-04-21 --- modules/profiles/headful.nix | 124 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 modules/profiles/headful.nix (limited to 'modules/profiles/headful.nix') diff --git a/modules/profiles/headful.nix b/modules/profiles/headful.nix new file mode 100644 index 0000000..20363bc --- /dev/null +++ b/modules/profiles/headful.nix @@ -0,0 +1,124 @@ +{ + config, + lib, + pkgs, + this, + ... +}: +with lib; +let + cfg = config.nixfiles.modules.profiles.headful; +in +{ + options.nixfiles.modules.profiles.headful.enable = mkEnableOption "headful profile" // { + default = this.isHeadful; + }; + + config = mkIf cfg.enable { + nixfiles.modules = { + profiles.dev.enable = true; + + alacritty.enable = mkDefault true; + aria2.enable = true; + chromium.enable = true; + dwm.enable = mkDefault false; + emacs.enable = true; + firefox.enable = true; + foot.enable = mkDefault true; + kde.enable = mkDefault true; + mpv.enable = true; + nullmailer.enable = true; + openssh.client.enable = true; + password-store.enable = true; + sound.enable = true; + thunderbird.enable = true; + vscode.enable = true; + wayland.enable = mkDefault true; + x11.enable = mkDefault true; + xmonad.enable = mkDefault false; + zathura.enable = true; + }; + + hm = { + home = { + file.".digrc".text = '' + +answer + +multiline + +recurse + ''; + + packages = with pkgs; [ + calibre + element-desktop + fd + imv + libreoffice-fresh + mumble + ripgrep + sd + telegram-desktop + tldr + tor-browser-bundle-bin + ]; + }; + + programs.bash.shellAliases.open = "xdg-open"; + }; + + boot = { + kernelPackages = mkDefault pkgs.linuxPackages_latest; + + kernelParams = [ + # https://wiki.archlinux.org/title/improving_performance#Watchdogs + "nowatchdog" + "kernel.nmi_watchdog=0" + # A security risk I'm willing to take for a reason[1]. + # + # [1]: https://www.phoronix.com/scan.php?page=article&item=spectre-meltdown-2&num=11 + "mitigations=off" + ]; + + loader = { + efi.canTouchEfiVariables = true; + + systemd-boot = { + enable = true; + configurationLimit = 10; + }; + }; + }; + + hardware.opengl = { + enable = true; + driSupport = true; + }; + + programs = { + dconf.enable = true; + iftop.enable = true; + mtr.enable = true; + }; + + services = { + upower.enable = true; + psd.enable = true; + }; + + environment.systemPackages = with pkgs; [ + arping + dnsutils + inetutils + ldns + lm_sensors + socat + tcpdump + ]; + + my.extraGroups = [ + "audio" + "input" + "render" + "video" + ]; + }; +} -- cgit 1.4.1