Compare commits

..

28 Commits

Author SHA1 Message Date
Zynh Ludwig 76987a75f3 greedy hosts clutch 2024-02-28 04:27:51 -08:00
Zynh Ludwig 6135a45ced remove superflous comments 2024-02-28 04:04:15 -08:00
Zynh Ludwig 4867b76eec clean sessionVariablesComment 2024-02-28 04:01:40 -08:00
Zynh Ludwig bbe48b7a50 fzf 2024-02-28 03:58:39 -08:00
Zynh Ludwig 53be81eea9 add steam and spotify
currently spotify doesn't work
2024-02-28 03:54:07 -08:00
Zynh Ludwig ee083659fd INCOMPLETE: val-cat theme for fish 2024-02-28 02:47:38 -08:00
Zynh Ludwig 04a514c7ce cleaning comments 2024-02-28 02:25:26 -08:00
Zynh Ludwig ce53458b9f tree! 2024-02-28 02:16:39 -08:00
Zynh Ludwig 371b873955 default branch 2024-02-28 01:53:00 -08:00
Zynh Ludwig 4a0b6303c9 input autocrlf 2024-02-28 01:47:21 -08:00
Zynh Ludwig a045c11266 cleanup 2024-02-28 01:41:34 -08:00
Zynh Ludwig 1b739f6d60 add gnumake 2024-02-28 01:41:29 -08:00
Zynh Ludwig 637d56fc76 crlf stuff and manual editor 2024-02-28 01:32:20 -08:00
Zynh Ludwig 6937d7b166 aliases 2024-02-28 01:28:10 -08:00
Zynh Ludwig 50bebb3bfc better client id? 2024-02-28 01:21:50 -08:00
Zynh Ludwig 5b76d783ec git config! 2024-02-28 00:59:37 -08:00
Zynh Ludwig cbfa884586 xclip 2024-02-28 00:58:11 -08:00
Zynh Ludwig 97ac9f4054 add gitconfig 2024-02-28 00:27:25 -08:00
Zynh Ludwig 5d27da5d42 maybe future hyprland 2024-02-28 00:05:34 -08:00
Zynh Ludwig bee01d218a enable ssh 2024-02-27 06:24:32 -08:00
Zynh Ludwig 83e8a34123 fish vi mode 2024-02-27 06:22:17 -08:00
Zynh Ludwig 246f418b99 gparted 2024-02-27 06:22:03 -08:00
Zynh Ludwig 9902b95ba4 comment for the future 2024-02-27 06:05:04 -08:00
Zynh Ludwig b18ec9af8e result ignore 2024-02-27 06:03:57 -08:00
Zynh Ludwig fb552cdb09 snowhawk 2024-02-27 06:00:06 -08:00
Zynh Ludwig fc63693e84 remove fish from config.nix
should be handled by home-manager
2024-02-27 05:16:31 -08:00
Zynh Ludwig b27ece582d formatting 2024-02-27 05:12:28 -08:00
Zynh Ludwig 7a91eb728a BAD COMMIT, MUST FIX 2024-02-27 05:10:24 -08:00
8 changed files with 139 additions and 46 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
result/

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "fish/themes/val-cat"]
path = fish/themes/val-cat
url = https://git.zynh.me/Zynh0722/omf-theme.git

View File

@ -5,12 +5,7 @@
{ config, pkgs, inputs, ... }:
{
imports =
[
# Include the results of the hardware scan.
./hardware-configuration.nix
inputs.home-manager.nixosModules.default
];
imports = [ inputs.home-manager.nixosModules.default ];
# Bootloader.
boot.loader.systemd-boot.enable = true;
@ -26,6 +21,10 @@
# Enable networking
networking.networkmanager.enable = true;
fonts.packages = with pkgs; [
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
];
# Set your time zone.
time.timeZone = "America/Los_Angeles";
@ -49,7 +48,8 @@
# Enable the XFCE Desktop Environment.
services.xserver.displayManager.lightdm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
services.xserver.desktopManager.budgie.enable = true;
# services.xserver.windowManager.dwm.enable = true;
# Configure keymap in X11
services.xserver = {
@ -96,12 +96,17 @@
packages = with pkgs; [
rustup
neovim
gparted
fish
gnumake
zig
go
nil
xclip
wezterm
firefox
fzf
tree
lazygit
ripgrep
nodejs_21
@ -110,6 +115,9 @@
nixpkgs-fmt
lua-language-server
stylua
steam
spotify
discord
git-credential-oauth
];
};
@ -137,11 +145,12 @@
'';
};
# programs.hyprland.enable = true;
# environment.sessionVariables.NIXOS_OZONE_WL = "1";
# 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
neovim
curl
git
@ -158,7 +167,7 @@
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
@ -166,12 +175,7 @@
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# 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. Its 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 = "23.11"; # Did you read the comment?
}

1
fish/themes/val-cat Submodule

@ -0,0 +1 @@
Subproject commit 75549ce64044336ed14e502f1c1ab8bf98184990

View File

@ -16,13 +16,23 @@
pkgs = nixpkgs.legacyPackages.${system};
in
{
nixosConfigurations.default = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
./configuration.nix
inputs.home-manager.nixosModules.default
];
nixosConfigurations = {
snowhawk = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
./hosts/snowhawk/hardware-configuration.nix
./configuration.nix
inputs.home-manager.nixosModules.default
];
};
sprite = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
./hosts/sprite/hardware-configuration.nix
./configuration.nix
inputs.home-manager.nixosModules.default
];
};
};
};
}

View File

@ -51,21 +51,6 @@
# '';
};
# Home Manager can also manage your environment variables through
# 'home.sessionVariables'. 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/ravenshade/etc/profile.d/hm-session-vars.sh
#
home.sessionVariables = {
EDITOR = "nvim";
MANPAGER = "nvim +Man!";
@ -74,10 +59,70 @@
programs.fish = {
enable = true;
interactiveShellInit = ''
set fish_greeting
'';
set -U fish_greeting
if status is-interactive
# Commands to run in interactive sessions can go here
end
function fish_user_key_bindings
# Execute this once per mode that emacs bindings should be used in
fish_default_key_bindings -M insert
# Then execute the vi-bindings so they take precedence when there's a conflict.
# Without --no-erase fish_vi_key_bindings will default to
# resetting all bindings.
# The argument specifies the initial mode (insert, "default" or visual).
fish_vi_key_bindings --no-erase insert
bind \cf 'fg 2>/dev/null; commandline -f repaint'
end
'';
};
programs.git = {
enable = true;
userName = "Zynh Ludwig";
userEmail = "zynh0722@gmail.com";
aliases = {
co = "checkout";
ci = "commit";
st = "status";
br = "branch";
hist = "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short";
type = "cat-file -t";
dump = "cat-file -p";
graph = "log --graph --decorate --pretty=oneline --abbrev-commit";
};
extraConfig = {
init.defaultBranch = "main";
core = {
editor = "nvim";
autocrlf = "input";
safecrlf = true;
};
credential = {
helper = [
"cache --timeout 7200"
"oauth"
];
"https://git.zynh.me" = {
oauthClientId = "13d5b95d-565d-4264-8961-c45cc38eaa8a";
oauthScopes = "read_repository write_repository";
oauthAuthURL = "/login/oauth/authorize";
oauthTokenURL = "/login/oauth/access_token";
};
};
};
};
# wayland.windowManager.hyprland = {
# enable = true;
# package = pkgs.hyprland;
# xwayland.enable = true;
# systemd.enable = true;
# };
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
}

View File

@ -0,0 +1,35 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{
device = "/dev/disk/by-uuid/8c377115-06bb-488e-a531-c668dac127f6";
fsType = "ext4";
};
fileSystems."/boot" =
{
device = "/dev/disk/by-uuid/1A0A-CEB2";
fsType = "vfat";
};
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.enp7s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp6s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View File

@ -1,13 +1,7 @@
# 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 + "/profiles/qemu-guest.nix")
];
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.initrd.availableKernelModules = [ "xhci_pci" "virtio_pci" "usbhid" "usb_storage" "sr_mod" ];
boot.initrd.kernelModules = [ ];