Personal dotfiles for Linux, mostly for Nixpkgs/NixOS-based and Termux setups. Mirrored using GitLab's push mirroring feature. gitlab.com/andreijiroh-dev/dotfiles
linux dotfiles

chore(nixos): update configurations and add README

Also set wakatime project name for @hackclub High Seas and
for coding stats

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>

-6
.config/nixos/flake.nix
··· 35 35 determinate.nixosModules.default 36 36 vscode-server.nixosModules.default 37 37 home-manager.nixosModules.home-manager 38 - ./shared/networking.nix 39 - ./shared/locale.nix 40 - ./shared/firewall.nix 41 - ./shared/kde-plasma.nix 42 - ./shared/ssh.nix 43 - ./shared/tailscale.nix 44 38 ./hosts/stellapent-cier/configuration.nix 45 39 ]; 46 40 };
+14 -7
.config/nixos/hosts/stellapent-cier/configuration.nix
··· 2 2 # your system. Help is available in the configuration.nix(5) man page 3 3 # and in the NixOS manual (accessible by running ‘nixos-help’). 4 4 5 - { pkgs, ... }: 5 + { config, pkgs, lib, ... }: 6 6 7 7 { 8 8 imports = 9 9 [ 10 10 ./hardware-configuration.nix 11 - 12 - # We're also importing them below just in case 11 + ../../shared/meta-configs.nix 13 12 ../../shared/networking.nix 14 - ../../shared/locale.nix 15 13 ../../shared/firewall.nix 16 - ../../shared/kde-plasma.nix 14 + ../../shared/tailscale.nix 17 15 ../../shared/ssh.nix 18 - ../../shared/vscode-extensions.nix 16 + ../../shared/locale.nix 17 + ../../shared/kde-plasma.nix 18 + ../../shared/bluetooth.nix 19 19 ]; 20 20 21 21 # Bootloader. ··· 46 46 services.printing.enable = true; 47 47 48 48 # Enable sound with pipewire. 49 - hardware.pulseaudio.enable = false; 49 + #hardware.pulseaudio = { 50 + # enable = true; 51 + # package = pkgs.pulseaudioFull; 52 + #}; 53 + #hardware.pulseaudio.extraConfig = " 54 + # load-module module-switch-on-connect 55 + #"; 56 + 50 57 security.rtkit.enable = true; 51 58 services.pipewire = { 52 59 enable = true;
+1 -1
.config/nixos/hosts/stellapent-cier/users/gildedguy.nix
··· 1 - { pkgs, lib, ... }: 1 + { config, pkgs, lib, ... }: 2 2 3 3 let 4 4 vscExts = (import ../../../shared/vscode-extensions.nix) {
+10
.config/nixos/shared/bluetooth.nix
··· 1 + { config, pkgs, lib, ... }: 2 + 3 + { 4 + hardware.bluetooth.enable = true; 5 + hardware.bluetooth.settings = { 6 + General = { 7 + Enable = "Source,Sink,Media,Socket"; 8 + }; 9 + }; 10 + }
+3 -3
.config/nixos/shared/firewall.nix
··· 1 - { ... }: 1 + { config, pkgs, lib, ... }: 2 2 3 3 { 4 4 # Open ports in the firewall. ··· 8 8 networking.firewall.allowedUDPPortRanges = [ 9 9 { from = 1714; to = 1764; } 10 10 ]; 11 - networking.firewall.allowTCPPorts = [ 11 + networking.firewall.allowedTCPPorts = [ 12 12 22 13 13 80 14 14 443 15 15 3000 16 16 8000 17 17 ]; 18 - networking.firewall.allowUDPPorts = [ 18 + networking.firewall.allowedUDPPorts = [ 19 19 22 20 20 80 21 21 443
+1 -1
.config/nixos/shared/kde-plasma.nix
··· 1 - { ... }: 1 + { config, pkgs, lib, ... }: 2 2 3 3 { 4 4 # Enable the KDE Plasma Desktop Environment.
+1 -1
.config/nixos/shared/locale.nix
··· 1 - { ... }: 1 + { config, pkgs, lib, ... }: 2 2 3 3 { 4 4 # Set your time zone.
+1 -1
.config/nixos/shared/meta-configs.nix
··· 1 1 # This is the meta config file for nixpkgs and nix cli 2 2 3 - { ... }: 3 + { config, pkgs, lib, ... }: 4 4 5 5 { 6 6 # Adopted from https://fnordig.de/til/nix/home-manager-allow-unfree.html,
+3 -3
.config/nixos/shared/networking.nix
··· 1 - { ... }: 1 + { config, pkgs, lib, ... }: 2 2 3 3 { 4 4 # Do a lot of systemd-resolved related chores 5 - networking.nameservers = [ 5 + config.networking.nameservers = [ 6 6 "45.90.28.0#c393f6.dns.nextdns.io" 7 7 "45.90.30.0#c393f6.dns.nextdns.io" 8 8 ]; 9 9 10 - services.resolved = { 10 + config.services.resolved = { 11 11 enable = true; 12 12 dnssec = "false"; # https://superuser.com/a/1493674 13 13 domains = [ "~." "fawn-cod.ts.net" ];
+2 -2
.config/nixos/shared/ssh.nix
··· 1 1 # To use this shared NixOS configuration for OpenSSH, just import this file 2 2 # on your NixOS configuration. 3 3 4 - {...}: 4 + { config, pkgs, lib, ... }: 5 5 6 6 { 7 - programs.openssh = { 7 + services.openssh = { 8 8 enable = true; 9 9 settings = { 10 10 PermitRootLogin = "prohibit-password";
+2 -2
.config/nixos/shared/tailscale.nix
··· 2 2 # in NixOS, mostly on the side of the daemon and its related 3 3 # configurations. 4 4 5 - { ... }: 5 + { config, pkgs, lib, ... }: 6 6 7 7 { 8 8 services.tailscale = { 9 9 enable = true; 10 - useRoutingFeatures = true; 10 + useRoutingFeatures = "both"; 11 11 openFirewall = true; 12 12 disableTaildrop = false; 13 13 extraDaemonFlags = [
+1 -1
.config/nixos/shared/vscode-extensions.nix
··· 1 - { pkgs, lib }: 1 + { pkgs, lib, ... }: 2 2 3 3 let 4 4 inherit (pkgs.stdenv) isDarwin isLinux isi686 isx86_64 isAarch32 isAarch64;
+46
.nix4vscode.toml
··· 1 + # SPDX-License-Identifier: MPL-2.0 2 + # To use thhis configuration, you must have nix4vscode installed, either 3 + # via "cargo build" or good old "nix develop" from a local clone of the 4 + # tooling's sources. 5 + 6 + # TODO: Bump this on every VS Code release here. 7 + vscode_version = "1.96.0" 8 + 9 + ## theming 10 + [[extensions]] 11 + publisher_name = "pkief" 12 + extension_name = "material-icon-theme" 13 + [[extensions]] 14 + publisher_name = "pkief" 15 + extension_name = "material-product-icons" 16 + [[extensions]] 17 + publisher_name = "github" 18 + extension_name = "github-vscode-theme" 19 + 20 + # utils 21 + [[extensions]] 22 + publisher_name = "wakatime" 23 + extension_name = "vscode-wakatime" 24 + [[extensions]] 25 + publisher_name = "doppler" 26 + extension_name = "doppler-vscode" 27 + [[extensions]] 28 + publisher_name = "eamodio" 29 + extension_name = "gitlens" 30 + [[extensions]] 31 + publisher_name = "vivaxy" 32 + extension_name = "vscode-conventional-commits" 33 + 34 + # programming languages + IntelliSense 35 + [[extensions]] 36 + publisher_name = "denoland" 37 + extension_name = "vscode-deno" 38 + [[extensions]] 39 + publisher_name = "jnoortheen" 40 + extension_name = "nix-ide" 41 + [[extensions]] 42 + publisher_name = "redhat" 43 + extension_name = "vscode-yaml" 44 + [[extensions]] 45 + publisher_name = "unifiedjs" 46 + extension_name = "vscode-mdx"
+1
.wakatime-project
··· 1 + @andreijiroh-dev/dotfiles
+15
README.md
··· 1 + # `@andreijiroh-dev/dotfiles@nixos` - @ajhalili2006's dotfiles under nixos + nixpkgs! 2 + 3 + Yup, I'm starting a fresh for my dotfiles, now with [nixpkgs](https://nixos.org) 4 + and [home-manager]() 5 + 6 + ## Usage 7 + 8 + ### Using my Nixpkgs config 9 + 10 + ## Directory + File Map 11 + 12 + ### Essientials 13 + 14 + * [`.config/nixos`](./.config/nixos/) - my NixOS configuration as a flake, including system tools 15 + * [`.config/home-manager`](./.config/home-manager/) - Home-manager configs, mostly CLI and desktop apps go here