This commit is contained in:
danny 2024-12-12 23:18:44 +08:00
parent 53395d3971
commit c2f85fddb8
14 changed files with 144 additions and 324 deletions

View file

@ -1,10 +1,78 @@
{ config, pkgs, pkgs-unstable, lib, inputs, ... }:
{ config, pkgs, pkgsUnstable, ... }:
{
imports = [ ./user ];
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.username = "danny";
home.homeDirectory = "/home/danny";
home.stateVersion = "24.11";
}
# 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 = [
pkgs.firefox
# # 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}!"
# '')
];
# 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/danny/etc/profile.d/hm-session-vars.sh
#
home.sessionVariables = {
# EDITOR = "emacs";
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
}

View file

@ -1,6 +1,6 @@
{
home.sessionVariables = {
BROWSER = "firefox";
BROWSER = "opera";
EDITOR = "nvim";
TERMINAL = "kitty";
NIXOS_OZONE_WL = "1";

View file

@ -1,13 +1,15 @@
{ pkgs, pkgs-unstable, ... }:
{ pkgs, ... }:
{
home.packages = [
pkgs.opera
pkgs.discord
# Dev stuff
pkgs.gcc
pkgs.go
pkgs.lua
pkgs.nodejs_21
pkgs.nodePackages.pnpm
(pkgs.python3.withPackages
(python-pkgs: [ python-pkgs.pip python-pkgs.requests ]))
@ -33,7 +35,7 @@
# Utils
pkgs.viewnior
pkgs-unstable.hyprshot
pkgs.hyprshot
pkgs.catppuccin-cursors.macchiatoBlue
pkgs.catppuccin-gtk
# pkgs.papirus-folders

View file

@ -1,17 +1,2 @@
{ inputs, ... }: {
programs.firefox = {
enable = true;
profiles.danny = {
extensions = with inputs.firefox-addons.packages."x86_64-linux"; [
darkreader
proton-pass
to-google-translate
view-image
# ublock-origin
];
};
};
programs.home-manager.enable = true;
}

View file

@ -11,22 +11,17 @@ let
sudo /run/current-system/bin/switch-to-configuration boot
'';
rebuild = "sudo nixos-rebuild switch --flake ~/.dotfiles/";
fullRebuild =
"sudo nixos-rebuild switch --flake ~/.dotfiles/ && home-manager switch --flake ~/.dotfiles/ -b backup";
homeRebuild = "home-manager switch --flake ~/.dotfiles/ -b backup";
rebuild = "sudo nixos-rebuild switch --flake /etc/nixos/#dn-nix";
};
in {
programs = {
zsh = {
enable = true;
enableAutosuggestions = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
initExtra = ''
source ~/.p10k.zsh &&
eval "$(zoxide init --cmd cd zsh)" &&
export PATH="$PATH:/home/gpskwlkr/.dotnet/tools"
'';
shellAliases = myAliases;
oh-my-zsh = {