Compare commits
28 Commits
6ab831d89d
...
76987a75f3
Author | SHA1 | Date |
---|---|---|
Zynh Ludwig | 76987a75f3 | |
Zynh Ludwig | 6135a45ced | |
Zynh Ludwig | 4867b76eec | |
Zynh Ludwig | bbe48b7a50 | |
Zynh Ludwig | 53be81eea9 | |
Zynh Ludwig | ee083659fd | |
Zynh Ludwig | 04a514c7ce | |
Zynh Ludwig | ce53458b9f | |
Zynh Ludwig | 371b873955 | |
Zynh Ludwig | 4a0b6303c9 | |
Zynh Ludwig | a045c11266 | |
Zynh Ludwig | 1b739f6d60 | |
Zynh Ludwig | 637d56fc76 | |
Zynh Ludwig | 6937d7b166 | |
Zynh Ludwig | 50bebb3bfc | |
Zynh Ludwig | 5b76d783ec | |
Zynh Ludwig | cbfa884586 | |
Zynh Ludwig | 97ac9f4054 | |
Zynh Ludwig | 5d27da5d42 | |
Zynh Ludwig | bee01d218a | |
Zynh Ludwig | 83e8a34123 | |
Zynh Ludwig | 246f418b99 | |
Zynh Ludwig | 9902b95ba4 | |
Zynh Ludwig | b18ec9af8e | |
Zynh Ludwig | fb552cdb09 | |
Zynh Ludwig | fc63693e84 | |
Zynh Ludwig | b27ece582d | |
Zynh Ludwig | 7a91eb728a |
|
@ -0,0 +1 @@
|
|||
result/
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "fish/themes/val-cat"]
|
||||
path = fish/themes/val-cat
|
||||
url = https://git.zynh.me/Zynh0722/omf-theme.git
|
|
@ -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. 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 = "23.11"; # Did you read the comment?
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 75549ce64044336ed14e502f1c1ab8bf98184990
|
14
flake.nix
14
flake.nix
|
@ -16,13 +16,23 @@
|
|||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
nixosConfigurations.default = nixpkgs.lib.nixosSystem {
|
||||
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
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
77
home.nix
77
home.nix
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
|
@ -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 = [ ];
|
Loading…
Reference in New Issue