fix some bugs, add home flake.nix

This commit is contained in:
Seraphim R. Pardee 2025-03-18 00:34:37 -04:00
parent df39b62b78
commit 6523b12b4a
3 changed files with 46 additions and 4 deletions

View File

@ -0,0 +1,42 @@
{ config, pkgs, ... }:
{
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = "srp";
home.homeDirectory = "/home/srp";
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestions.enable = true;
syntaxHighlighting.enable = true;
shellAliases = {
vim = "nvim";
grep = "rg";
cat = "bat";
ls = "eza";
};
};
programs.git = {
enable = true;
userEmail = "me@srp.life";
userName = "Seraphim R. Pardee";
extraConfig = { credential.helper = "store"; };
};
# 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 can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "24.11";
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
}

View File

@ -4,5 +4,5 @@ sudo cp nixos/* /etc/nixos/
sudo nixos-rebuild switch
mkdir -p $HOME/.config/home-manager
cp .config/home-manager/flake.nix
cp .config/home-manager/flake.nix $HOME/.config/home-manager/flake.nix
home-manager switch

View File

@ -5,10 +5,10 @@
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
hyprland.url = "github:hyprwm/Hyprland";
hyprland-plugins = { url = "github:hyprwm/hyprland-plugins"; inputs.hyprland.follows = "hyprland" };
hyprland-split-monitor-workspaces = { url = "github:Duckonaut/split-monitor-workspaces"; input.hyprland.follows = "hyprland"; }
hyprland-plugins = { url = "github:hyprwm/hyprland-plugins"; inputs.hyprland.follows = "hyprland"; };
hyprland-split-monitor-workspaces = { url = "github:Duckonaut/split-monitor-workspaces"; inputs.hyprland.follows = "hyprland"; };
home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs" };
home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; };
};
outputs = { nixpkgs, ... } @ inputs: {