lets restart

This commit is contained in:
2026-06-21 19:56:33 -05:00
parent d969daa52d
commit 6114900057
15 changed files with 0 additions and 407 deletions
-3
View File
@@ -1,3 +0,0 @@
{
"cSpell.words": ["nixos", "nixpkgs", "pkgs"]
}
Generated
-48
View File
@@ -1,48 +0,0 @@
{
"nodes": {
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1781810163,
"narHash": "sha256-dk8lIk0UnO8GD3e7e3HM1vSYXpbEDmhy67w7KztfdCg=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "c8f0b8ed441c95bfeaf33555e7631044bb09f384",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1781577229,
"narHash": "sha256-lrp67w8AulE9Ks53n27I45ADSzbOCn4H+CNW1Ck8B+8=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "567a49d1913ce81ac6e9582e3553dd90a955875f",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"home-manager": "home-manager",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}
-39
View File
@@ -1,39 +0,0 @@
{
description = "NixOS Dotfiles";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
self,
nixpkgs,
home-manager,
}@inputs:
{
nixosConfigurations = {
laptop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
./hosts/laptop/configuration.nix
home-manager.nixosModules.default
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.river = import ./home;
}
];
};
};
};
}
-13
View File
@@ -1,13 +0,0 @@
{ config, pkgs, ... }:
{
imports = [
./programs/bash.nix
./programs/starship.nix
./programs/git.nix
];
home.username = "river";
home.homeDirectory = "/home/river";
home.stateVersion = "26.05"; # Update this when changing nixpkgs releases
}
-45
View File
@@ -1,45 +0,0 @@
{ config, pkgs, ... }:
{
imports = [
./starship.nix
];
programs.bash = {
enable = true;
shellAliases = {
cd = "z";
cat = "bat";
ocat = "\cd"; # The \ is used to prevent alias expansion in the alias definition
docker = "podman";
ls = "eza --icons";
ols = "\ls";
kubectx = "kubectl config use-context";
# Nix Stuff
nrs = "sudo nixos-rebuild switch --flake ~/Dotfiles#laptop";
update = "nix flake update --flake ~/Dotfiles#laptop";
upgrade = "update && nrs";
# Single Letter Aliases
v = "nvim";
};
initExtra = ''
eval "$(zoxide init bash)"
eval "$(starship init bash)"
source ${pkgs.carapace}/share/bash/carapace.bash
export EDITOR=nvim
'';
};
# Just to make sure pkgs are installed
home.packages = with pkgs; [
bat
eza
zoxide
carapace
neovim
kubectl
];
}
-15
View File
@@ -1,15 +0,0 @@
{ pkgs, ... }:
{
programs.git = {
enable = true;
settings = {
user = {
name = "Maaz Khokhar";
email = "khokharmaaz@gmail.com";
};
init.defaultBranch = "main";
};
};
}
-17
View File
@@ -1,17 +0,0 @@
{ config, pkgs, ... }:
{
programs.starship = {
enable = true;
settings = {
add_newline = true;
command_timeout = 1300;
scan_timeout = 50;
format = "$all$nix_shell$nodejs$lua$golang$rust$php$git_branch$git_commit$git_state$git_status\n$username$hostname$directory";
character = {
success_symbol = "[](bold green) ";
error_symbol = "[](bold red) ";
};
};
};
}
-105
View File
@@ -1,105 +0,0 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [
./hardware-configuration.nix
../../modules/virtualization
../../modules/desktop/plasma
];
boot = {
loader = {
grub = {
enable = true;
device = "nodev";
efiSupport = true;
};
efi.canTouchEfiVariables = true;
};
};
networking.hostName = "laptop";
networking.networkmanager.enable = true;
time.timeZone = "America/Chicago";
services.printing.enable = true;
services.pipewire = {
enable = true;
pulse.enable = true;
};
services.libinput.enable = true;
users.users.river = {
isNormalUser = true;
extraGroups = [
"wheel"
];
};
programs.firefox.enable = true;
programs.mtr.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
neovim
git
curl
btop
ghostty
starship
tmux
mpv
zoxide
fd
ripgrep
fzf
cmatrix
vscode
];
services.openssh.enable = true;
services.code-server = {
enable = true;
port = 8080;
host = "127.0.0.1";
user = "river";
hashedPassword = "$argon2i$v=19$m=4096,t=3,p=1$Y2FLOGxUbVZrQWhUVUxlQnR4Z3MrNUd5ZVpFPQ$QZllzyC8qFmODAS9xW8OqPI5FoVoenYNKvbNMn+KTro";
};
services.caddy = {
enable = true;
package = pkgs.caddy;
extraConfig = ''
:80
reverse_proxy localhost:8080
'';
};
networking.firewall = {
enable = true;
allowedTCPPorts = [
22
80
];
};
system.stateVersion = "26.05";
}
-33
View File
@@ -1,33 +0,0 @@
# 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 = [ "nvme" "xhci_pci" "uas" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/7c326f3a-88df-4517-a200-21524b36854a";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/1002-C73F";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/340e4682-bd9f-4551-a4e3-af54df2acdba"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
-22
View File
@@ -1,22 +0,0 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
hyprland
quickshell
hyprlock
mpvpaper
hyprsunset
hyprpicker
hyprpolkitagent
hyprshot
];
programs.hyprland.enable = true;
services.displayManager.sddm = {
enable = true;
wayland.enable = true;
}
# Fingerprint
services.fprintd.enable = true;
}
View File
-9
View File
@@ -1,9 +0,0 @@
{ config, pkgs, ... }:
{
services = {
desktopManager.plasma6.enable = true;
displayManager.plasma-login-manager.enable = true;
};
services.fprintd.enable = true;
}
-8
View File
@@ -1,8 +0,0 @@
{ config, lib, ... }:
{
imports = [
./qemu.nix
./podman.nix
];
}
-20
View File
@@ -1,20 +0,0 @@
{
config,
lib,
pkgs,
...
}:
{
virtualisation.podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
users.users.river.extraGroups = [ "podman" ];
environment.systemPackages = with pkgs; [
podman
podman-compose
];
}
-30
View File
@@ -1,30 +0,0 @@
{
config,
lib,
pkgs,
...
}:
{
virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true;
virtualisation.libvirtd.qemu = {
swtpm.enable = true;
};
boot.kernelModules = [
"kvm-intel"
"kvm-amd"
];
users.users.river.extraGroups = [
"libvirtd"
"kvm"
];
environment.systemPackages = with pkgs; [
virt-manager
qemu
];
}