mirror of
https://mau.dev/andreijiroh-dev/dotfiles.git
synced 2025-05-19 03:53:09 +00:00
chore(global): initial commit for nixpkgs branch
Need to commit and push for community help at @hackclub slack later. Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>
This commit is contained in:
commit
824366c5dd
14 changed files with 1062 additions and 0 deletions
123
.config/nixos/hosts/stellapent-cier/configuration.nix
Normal file
123
.config/nixos/hosts/stellapent-cier/configuration.nix
Normal file
|
@ -0,0 +1,123 @@
|
|||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
./hardware-configuration.nix
|
||||
|
||||
# We're also importing them below just in case
|
||||
../../shared/networking.nix
|
||||
../../shared/locale.nix
|
||||
../../shared/firewall.nix
|
||||
../../shared/kde-plasma.nix
|
||||
../../shared/ssh.nix
|
||||
../../shared/vscode-extensions.nix
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "stellapent-cier"; # Define your hostname.
|
||||
#networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
|
||||
# Configure network proxy if necessary
|
||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||
|
||||
# Enable networking via networkmanager
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
# You can disable this if you're only using the Wayland session.
|
||||
services.xserver.enable = true;
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver.xkb = {
|
||||
layout = "us";
|
||||
variant = "";
|
||||
};
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
# Enable sound with pipewire.
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
# If you want to use JACK applications, uncomment this
|
||||
#jack.enable = true;
|
||||
|
||||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
||||
# no need to redefine it in your config for now)
|
||||
#media-session.enable = true;
|
||||
};
|
||||
|
||||
# firmware configurations
|
||||
#hardware.firmware = with pkgs; [
|
||||
# (pkgs.fetchurl {
|
||||
# url = "https://raw.githubusercontent.com/winterheart/broadcom-bt-firmware/refs/heads/master/brcm/BCM43142A0-0a5c-216d.hcd";
|
||||
# sha256 = "9ac1e0fac850eec21cda47977858039ffc774d0cfffc6688093a722efc5a3ec0";
|
||||
# })
|
||||
#];
|
||||
|
||||
# Enable touchpad support (enabled default in most desktopManager).
|
||||
# services.xserver.libinput.enable = true;
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
# Might be obvious to some since I'm technically roleplaying as
|
||||
users.users.gildedguy = {
|
||||
isNormalUser = true;
|
||||
description = "Gildedguy (Michael Moy)";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
packages = with pkgs; [
|
||||
kdePackages.kate
|
||||
thunderbird
|
||||
];
|
||||
};
|
||||
|
||||
# home-manager specifics
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.users.gildedguy = (import ./users/gildedguy.nix);
|
||||
|
||||
# Install firefox.
|
||||
programs.firefox.enable = true;
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||
wget
|
||||
dig
|
||||
broadcom-bt-firmware
|
||||
btop
|
||||
htop
|
||||
google-chrome
|
||||
];
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
# started in user sessions.
|
||||
programs.mtr.enable = true;
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
# this value at the release version of the first install of this system.
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "24.11"; # Did you read the comment?
|
||||
|
||||
}
|
|
@ -0,0 +1,54 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/e3397457-41d2-4bed-9689-27a9ff3ccb51";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/EC7C-6A58";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
fileSystems."/home" =
|
||||
{ device = "/dev/disk/by-uuid/22a6f5ea-79d1-4919-b165-50063fd782f5";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/var/lib/docker" =
|
||||
{ device = "/dev/disk/by-uuid/299133b8-2585-42a4-b7d1-c995d4fc9e19";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/workspaces" =
|
||||
{ device = "/dev/disk/by-uuid/a8d0810e-4bbf-479d-baea-28b1441ad68f";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp2s0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp0s20u3.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
211
.config/nixos/hosts/stellapent-cier/users/gildedguy.nix
Normal file
211
.config/nixos/hosts/stellapent-cier/users/gildedguy.nix
Normal file
|
@ -0,0 +1,211 @@
|
|||
{ pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
vscExts = (import ../../../shared/vscode-extensions.nix) {
|
||||
pkgs = pkgs;
|
||||
lib = lib;
|
||||
};
|
||||
#extList = lib.attrsets.mapAttrsToList (name: value: value) vscExts;
|
||||
in
|
||||
with pkgs;
|
||||
{
|
||||
# https://fnordig.de/til/nix/home-manager-allow-unfree.html
|
||||
nixpkgs = {
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
# https://github.com/nix-community/home-manager/issues/2942
|
||||
allowUnfreePredicate = (_: true);
|
||||
};
|
||||
};
|
||||
|
||||
# Home Manager needs a bit of information about you and the paths it should
|
||||
# manage. Also don't ask how we got here on the roleplaying part.
|
||||
home.username = "gildedguy";
|
||||
home.homeDirectory = "/home/gildedguy";
|
||||
|
||||
# This value determines the Home Manager release that your configuration is
|
||||
# compatible with. This helps avoid breakage when a new Home Manager release
|
||||
# introduces backwards incompatible changes.
|
||||
#
|
||||
# You should not change this value, even if you update Home Manager. If you do
|
||||
# want to update the value, then make sure to first check the Home Manager
|
||||
# release notes.
|
||||
home.stateVersion = "24.11"; # Please read the comment before changing.
|
||||
|
||||
# The home.packages option allows you to install Nix packages into your
|
||||
# environment.
|
||||
home.packages = with pkgs; [
|
||||
# # Adds the 'hello' command to your environment. It prints a friendly
|
||||
# # "Hello, world!" when run.
|
||||
# pkgs.hello
|
||||
|
||||
# # It is sometimes useful to fine-tune packages, for example, by applying
|
||||
# # overrides. You can do that directly here, just don't forget the
|
||||
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
|
||||
# # fonts?
|
||||
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
|
||||
|
||||
# # You can also create simple shell scripts directly inside your
|
||||
# # configuration. For example, this adds a command 'my-hello' to your
|
||||
# # environment:
|
||||
# (pkgs.writeShellScriptBin "my-hello" ''
|
||||
# echo "Hello, ${config.home.username}!"
|
||||
# '')
|
||||
|
||||
## devtools ##
|
||||
# https://httpie.io
|
||||
httpie
|
||||
# https://devenv.sh
|
||||
devenv
|
||||
# https://cli.github.com
|
||||
gh
|
||||
# bet we'll going to have a field day since Copilot is now available for free
|
||||
# (this is seperate from the gh copilot extension for those asking)
|
||||
# context: https://github.blog/news-insights/product-news/github-copilot-in-vscode-free/
|
||||
github-copilot-cli
|
||||
# markdownlint
|
||||
markdownlint-cli
|
||||
# https://doppler.com
|
||||
doppler
|
||||
|
||||
## programming languages
|
||||
deno
|
||||
nodejs_22
|
||||
python313
|
||||
pipx
|
||||
pipenv
|
||||
|
||||
## language servers ##
|
||||
# nix language server - https://github.com/oxalica/nil
|
||||
nil
|
||||
# https://github.com/alesbrelih/gitlab-ci-ls
|
||||
gitlab-ci-ls
|
||||
];
|
||||
|
||||
home.sessionPath = [
|
||||
"$HOME/bin"
|
||||
];
|
||||
|
||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||
# plain files is through 'home.file'.
|
||||
home.file = {
|
||||
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
|
||||
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
|
||||
# # symlink to the Nix store copy.
|
||||
# ".screenrc".source = dotfiles/screenrc;
|
||||
|
||||
# # You can also set the file content immediately.
|
||||
# ".gradle/gradle.properties".text = ''
|
||||
# org.gradle.console=verbose
|
||||
# org.gradle.daemon.idletimeout=3600000
|
||||
# '';
|
||||
};
|
||||
|
||||
# Home Manager can also manage your environment variables through
|
||||
# 'home.sessionVariables'. These will be explicitly sourced when using a
|
||||
# shell provided by Home Manager. If you don't want to manage your shell
|
||||
# through Home Manager then you have to manually source 'hm-session-vars.sh'
|
||||
# located at either
|
||||
#
|
||||
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
|
||||
#
|
||||
# or
|
||||
#
|
||||
# ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh
|
||||
#
|
||||
# or
|
||||
#
|
||||
# /etc/profiles/per-user/gildedguy/etc/profile.d/hm-session-vars.sh
|
||||
#
|
||||
home.sessionVariables = {
|
||||
EDITOR = "nano";
|
||||
NIXOS_ALLOW_UNFREE = "1"; # for impure builds
|
||||
GIT_EDITOR = "code --wait";
|
||||
VISUAL = "code --wait";
|
||||
DOCKER_BUILDKIT = "1";
|
||||
};
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
# let me cook with the configs, starting with git
|
||||
programs.git = {
|
||||
enable = true;
|
||||
package = pkgs.gitAndTools.gitFull;
|
||||
lfs = {
|
||||
enable = true;
|
||||
};
|
||||
userName = "Andrei Jiroh Halili";
|
||||
userEmail = "ajhalili2006@andreijiroh.dev";
|
||||
aliases = {
|
||||
signoff = "commit --signoff";
|
||||
amend = "commit -a --amend";
|
||||
remotes = "remote -v";
|
||||
root = "rev-parse --show-toplevel";
|
||||
unstage = "restore --staged";
|
||||
stats = "status";
|
||||
};
|
||||
extraConfig = {
|
||||
format = {
|
||||
signOff = true;
|
||||
};
|
||||
init = {
|
||||
defaultBranch = "main";
|
||||
};
|
||||
|
||||
# https://groups.google.com/g/binary-transparency/c/f-BI4o8HZW0
|
||||
transfer = {
|
||||
fsckobjects = true;
|
||||
};
|
||||
fetch = {
|
||||
fsckobjects = true;
|
||||
};
|
||||
receive = {
|
||||
fsckobjects = true;
|
||||
};
|
||||
push = {
|
||||
autoSetupRemote = true;
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
package = pkgs.vscode;
|
||||
enableExtensionUpdateCheck = true;
|
||||
mutableExtensionsDir = true;
|
||||
# userSettings = {
|
||||
# "nix.enableLanguageServer" = true;
|
||||
# "nix.serverPath" = "nil";
|
||||
# "window.customTitleBarVisibility" = "auto";
|
||||
# "window.titleBarStyle" = "custom";
|
||||
# "window.menuBarVisibility" = "classic";
|
||||
# "redhat.telemetry.enabled" = true;
|
||||
# "github.copilot.editor.enableAutoCompletions" = false;
|
||||
# "github.copilot.chat.followUps" = "always";
|
||||
# "github.copilot.chat.terminalChatLocation" = "terminal";
|
||||
# "git.confirmSync" = false;
|
||||
# "microsoft-authentication.implementation" = "msal";
|
||||
# "workbench.colorTheme" = "GitHub Dark Colorblind (Beta)";
|
||||
# "workbench.iconTheme" = "material-icon-theme";
|
||||
# "workbench.productIconTheme" = "material-product-icons";
|
||||
# };
|
||||
# Note that not all extensions are available over gh:NixOS/nixpkgs repo, but
|
||||
# we'll work on that soon.
|
||||
extensions = with vscExts; [
|
||||
pkief.material-icon-theme
|
||||
pkief.material-product-icons
|
||||
github.github-vscode-theme
|
||||
wakatime.vscode-wakatime
|
||||
doppler.doppler-vscode
|
||||
eamodio.gitlens
|
||||
vivaxy.vscode-conventional-commits
|
||||
denoland.vscode-deno
|
||||
jnoortheen.nix-ide
|
||||
#redhat.vscode-yaml
|
||||
unifiedjs.vscode-mdx
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue