Compare commits

..

8 Commits

Author SHA1 Message Date
356bddc938 cleanup 2025-11-21 18:30:22 +01:00
9e61c71972 moved nvf to nvf.nix and added nvim 2025-11-21 18:29:49 +01:00
7610485ad0 added git 2025-11-21 18:29:21 +01:00
d05d9ba273 added colored prompt 2025-11-21 18:29:07 +01:00
c13935fa92 build error 2025-11-20 17:16:04 +01:00
f41a2bb69b add cifs-utils 2025-11-20 16:56:52 +01:00
9f3ec54a87 moved locales and languages to locale.nix 2025-11-20 16:44:58 +01:00
230ba1f30c moved networking into module 2025-11-20 16:33:42 +01:00
8 changed files with 85 additions and 62 deletions

View File

@@ -1,8 +1,9 @@
{pkgs, ...}: { {pkgs, ...}: {
imports = [ imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
./modules/users/users.nix ./modules/users/users.nix
./modules/system/networking.nix
./modules/system/locale.nix
]; ];
# Bootloader. # Bootloader.
@@ -15,39 +16,6 @@
# Use latest kernel. # Use latest kernel.
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
# Networking
networking = {
hostName = "testVM"; # Define your hostname.
networkmanager.enable = true;
};
# Set your time zone.
time.timeZone = "Europe/Berlin";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "de_DE.UTF-8";
LC_IDENTIFICATION = "de_DE.UTF-8";
LC_MEASUREMENT = "de_DE.UTF-8";
LC_MONETARY = "de_DE.UTF-8";
LC_NAME = "de_DE.UTF-8";
LC_NUMERIC = "de_DE.UTF-8";
LC_PAPER = "de_DE.UTF-8";
LC_TELEPHONE = "de_DE.UTF-8";
LC_TIME = "de_DE.UTF-8";
};
# Configure keymap in X11
services.xserver.xkb = {
layout = "de";
variant = "";
};
# Configure console keymap
console.keyMap = "de";
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
@@ -56,26 +24,12 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
vim vim
wget wget
cifs-utils
]; ];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
services.openssh.enable = true; services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
system.stateVersion = "25.05"; # Did you read the comment? system.stateVersion = "25.05"; # Did you read the comment?
} }

View File

@@ -0,0 +1,23 @@
{
config,
...
}: {
time.timeZone = "Europe/Berlin";
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
LC_ADDRESS = "de_DE.UTF-8";
LC_IDENTIFICATION = "de_DE.UTF-8";
LC_MEASUREMENT = "de_DE.UTF-8";
LC_MONETARY = "de_DE.UTF-8";
LC_NAME = "de_DE.UTF-8";
LC_NUMERIC = "de_DE.UTF-8";
LC_PAPER = "de_DE.UTF-8";
LC_TELEPHONE = "de_DE.UTF-8";
LC_TIME = "de_DE.UTF-8";
};
};
console.keyMap = "de";
}

View File

@@ -0,0 +1,15 @@
{
config,
...
}: {
networking = {
hostName = "nixOS";
networkmanager.enable = true;
firewall = {
enable = true;
# allowedTCPPorts = [ 80 443];
# allowedUDPPorts = [];
};
};
}

View File

@@ -0,0 +1,21 @@
{
pkgs,
config,
builtins,
...
}:
let
nvf = import (builtins.fetchTarball {
url = "https://github.com/notashelf/nvf/archive/v0.8.tar.gz";
# Optionally, you can add 'sha256' for verification and caching
# sha256 = "<sha256>";
});
in{
imports = [
nvf.nixosModules.nvf
];
programs.nvf = {
enable = true;
};
}

View File

@@ -1,19 +1,19 @@
{ {
pkgs, pkgs,
config,
builtins,
... ...
}: }: {
let programs.neovim = {
nvf = import (builtins.fetchTarball {
url = "https://github.com/notashelf/nvf/archive/v0.7.tar.gz";
# Optionally, you can add 'sha256' for verification and caching
# sha256 = "<sha256>";
});
in{
imports = [
nvf.nixosModules.nvf
];
programs.nvf = {
enable = true; enable = true;
defaultEditor = true;
viAlias = true;
vimAlias = true;
configure = {
customRC = ''
set number
'';
};
}; };
} }

View File

@@ -6,5 +6,6 @@
curl curl
bat bat
nethogs nethogs
git
]; ];
} }

View File

@@ -5,6 +5,7 @@ in {
(import ./zsh.nix {inherit pkgs user;}) (import ./zsh.nix {inherit pkgs user;})
./zoxide.nix ./zoxide.nix
(import ./packages.nix {inherit pkgs user;}) (import ./packages.nix {inherit pkgs user;})
./nvim.nix
]; ];
# Define user account and dont forget to set a password with 'passwd' # Define user account and dont forget to set a password with 'passwd'

View File

@@ -22,11 +22,19 @@
"HIST_IGNORE_SPACE" "HIST_IGNORE_SPACE"
"EXTENDED_GLOB" "EXTENDED_GLOB"
"CORRECT" "CORRECT"
# "PROMPT_SUBST"
]; ];
shellInit = '' shellInit = ''
eval "$(fzf --zsh)" eval "$(fzf --zsh)"
alias ..="cd .." alias ..="cd .."
alias ...="cd ../.." alias ...="cd ../.."
bindkey -e
# export %# '
'';
promptInit = ''
PS1='%{%F{green}%}%n@%m %{%F{blue}%}%~%{%f%}%{%F{white}%} %# '
''; '';
}; };