Convert tmux config to Nix and personalize system configuration

This commit is contained in:
2026-04-07 04:46:00 +02:00
parent 4bdcde72eb
commit 1b69e0d2a4
10 changed files with 171 additions and 122 deletions

View File

@@ -15,7 +15,7 @@
languagePackages = {
rust = with pkgs; [ rustup cargo-deny cargo-edit ];
python = with pkgs; [ python3 python3Packages.pip python3Packages.virtualenv ];
python = with pkgs; [ python3 python3Packages.pip python3Packages.virtualenv uv ];
nodejs = with pkgs; [ nodejs npm pnpm ];
go = with pkgs; [ go golangci-lint ];
ruby = with pkgs; [ ruby bundler ];
@@ -35,16 +35,12 @@
gcc
clang
cmake
gdb
ripgrep
fd
jq
yq-go
] ++ selectedPackages;
# Enable container support (optional)
virtualisation.docker.enable = true;
virtualisation.docker.enableOnBoot = false;
#virtualisation.docker.enable = true;
#virtualisation.docker.enableOnBoot = false;
};
}

View File

@@ -6,7 +6,7 @@
defaultShell = lib.mkOption {
type = lib.types.str;
default = "zsh";
description = "Default shell (bash, zsh, fish)";
description = "Default shell (dash, zsh, fish)";
};
};
@@ -15,13 +15,11 @@
in lib.mkIf cfg.enable {
programs.zsh.enable = cfg.defaultShell == "zsh";
programs.bash.enable = true;
programs.dash.enable = true;
programs.fish.enable = cfg.defaultShell == "fish";
# Common shell packages
environment.systemPackages = with pkgs; [
starship
direnv
];
};

View File

@@ -7,10 +7,10 @@
config = lib.mkIf config.custom.system.enable {
# System-wide settings
system.stateVersion = "24.11";
system.stateVersion = "25.11";
# Users
users.users.youruser = {
users.users.eliaskohout = {
isNormalUser = true;
extraGroups = [ "wheel" "docker" ];
shell = pkgs.zsh;