Convert tmux config to Nix and personalize system configuration
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
curl
|
||||
wget
|
||||
vim
|
||||
htop
|
||||
];
|
||||
@@ -35,10 +34,9 @@
|
||||
|
||||
# System-wide locale
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
time.timeZone = "UTC";
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
# Networking basics
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
networking.networkmanager.enable = lib.mkDefault false;
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user