Compare commits

...

10 Commits

2 changed files with 104 additions and 31 deletions

View File

@ -49,14 +49,13 @@
}; };
# Enable the X11 windowing system. # Enable the X11 windowing system.
services.xserver.enable = true;
# Enable the GNOME Desktop Environment.
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
# Configure keymap in X11
services.xserver = { services.xserver = {
enable = true;
displayManager.gdm = {
enable = true;
wayland = true;
};
desktopManager.gnome.enable = true;
layout = "de"; layout = "de";
xkbVariant = ""; xkbVariant = "";
}; };
@ -92,10 +91,7 @@
isNormalUser = true; isNormalUser = true;
description = "Max Känner"; description = "Max Känner";
extraGroups = ["networkmanager" "wheel"]; extraGroups = ["networkmanager" "wheel"];
packages = with pkgs; [ shell = pkgs.zsh;
firefox
# thunderbird
];
}; };
home-manager = { home-manager = {
@ -119,6 +115,7 @@
pciutils pciutils
home-manager home-manager
git git
gcc
clang clang
clang_multi clang_multi
libclang libclang
@ -134,6 +131,10 @@
# enable = true; # enable = true;
# enableSSHSupport = true; # enableSSHSupport = true;
# }; # };
programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [];
programs.zsh.enable = true;
# List services that you want to enable: # List services that you want to enable:
@ -149,6 +150,18 @@
# Or disable the firewall altogether. # Or disable the firewall altogether.
# networking.firewall.enable = false; # networking.firewall.enable = false;
system.autoUpgrade = {
enable = true;
flake = inputs.self.outPath;
flags = [
"--update-input"
"nixpkgs"
"-L"
];
dates = "09:00";
randomizedDelaySec = "45min";
};
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. Its perfectly fine and recommended to leave

100
home.nix
View File

@ -19,25 +19,22 @@
# The home.packages option allows you to install Nix packages into your # The home.packages option allows you to install Nix packages into your
# environment. # environment.
home.packages = [ home.packages = with pkgs; [
pkgs.nerdfonts zsh
pkgs.lazygit starship
# # Adds the 'hello' command to your environment. It prints a friendly zoxide
# # "Hello, world!" when run. nerdfonts
# pkgs.hello lazygit
btop
# # It is sometimes useful to fine-tune packages, for example, by applying bat
# # overrides. You can do that directly here, just don't forget the eza
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of unzip
# # fonts? rustup
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; }) keepassxc
nextcloud-client
# # You can also create simple shell scripts directly inside your firefox
# # configuration. For example, this adds a command 'my-hello' to your thunderbird
# # environment: xournalpp
# (pkgs.writeShellScriptBin "my-hello" ''
# echo "Hello, ${config.home.username}!"
# '')
]; ];
# Home Manager is pretty good at managing dotfiles. The primary way to manage # Home Manager is pretty good at managing dotfiles. The primary way to manage
@ -71,9 +68,72 @@
# /etc/profiles/per-user/max/etc/profile.d/hm-session-vars.sh # /etc/profiles/per-user/max/etc/profile.d/hm-session-vars.sh
# #
home.sessionVariables = { home.sessionVariables = {
# EDITOR = "emacs"; EDITOR = "nvim";
}; };
programs.zsh = {
enable = true;
enableAutosuggestions = true;
enableCompletion = true;
defaultKeymap = "emacs";
dotDir = ".config/zsh";
history.expireDuplicatesFirst = true;
history.path = "$ZDOTDIR/.zsh_history";
historySubstringSearch.enable = true;
shellAliases = {
ls = "exa --icons -a --group-directories-first";
diff = "diff --color=auto";
grep = "grep --color=auto";
ip = "ip --color=auto";
mkdir = "mkdir -p";
gst = "git status";
gc = "git commit";
ga = "git add";
gpl = "git pull";
gpu = "git push";
gd = "git diff";
gch = "git checkout";
gs = "git switch";
gre = "git restore";
gr = "git remote";
gcl = "git clone";
glg = "git log --graph --abbrev-commit --decorate --format=format:'%C(bold green)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold yellow)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all";
gb = "git branch";
gm = "git merge";
gf = "git fetch";
rebuild = "~/dotfiles/nixos/rebuild.sh";
};
syntaxHighlighting.enable = true;
syntaxHighlighting.highlighters = ["main" "brackets"];
};
programs.starship = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
settings = {
add_newline = false;
command_timeout = 5000;
character = {
success_symbol = "[->](bold green)";
error_symbol = "[ X](bold red)";
};
cmd_duration = {
min_time = 500;
show_milliseconds = true;
};
};
};
programs.zoxide = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
options = ["--cmd cd"];
};
services.nextcloud-client.enable = true;
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; programs.home-manager.enable = true;
} }