2025.06.02

This commit is contained in:
2025-06-02 01:33:56 +02:00
parent 4f3b1f8857
commit 80068a5283
14 changed files with 58 additions and 26 deletions

View File

@ -11,6 +11,7 @@
./fonts.nix ./fonts.nix
./gpu-amd.nix ./gpu-amd.nix
#./gpu-intel.nix #./gpu-intel.nix
./home.nix
#./kvm.nix #./kvm.nix
#./laptop.nix #./laptop.nix
#./mpd.nix #./mpd.nix

View File

@ -1,20 +1,30 @@
{ config, lib, pkgs, osConfig, ... }: { config, lib, pkgs, osConfig, ... }:
let let
hostName = "wlin001-nixos";
userName = "zulumann";
userDir = "/home/zulumann";
userEmail = "zulumann_70@gmx.de";
stateVersion = "24.11";
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-24.11.tar.gz"; home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-24.11.tar.gz";
in in
{ {
imports = [ imports = [
(import "${home-manager}/nixos") (import "${home-manager}/nixos")
]; ];
home-manager.backupFileExtension = "backup"; home-manager = {
home-manager.useGlobalPkgs = true; backupFileExtension = "backup";
home-manager.useUserPackages = true; useGlobalPkgs = true;
useUserPackages = true;
};
home-manager.users.zulumann = { home-manager.users.${userName} = {
home.stateVersion = "24.11"; home.stateVersion = "${stateVersion}";
home.homeDirectory = "/home/zulumann"; home.homeDirectory = "${userDir}";
home.packages = with pkgs; [ home.packages = with pkgs; [
neofetch neofetch
]; ];
@ -62,11 +72,10 @@ in
# Enable GIT # Enable GIT
programs.git = { programs.git = {
enable = true; enable = true;
userName = "zulumann"; userName = "${userName}";
userEmail = "zulumann_70@gmx.de"; userEmail = "${userEmail}";
}; };
programs.home-manager.enable = true; programs.home-manager.enable = true;
}; };

View File

@ -1 +0,0 @@
/nix/store/jhbyl0y5l3hi2g7qblmidk37cpg9agnn-home-manager-files/Ansible/playbooks/apt-dist.yml

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 937 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 274 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 812 KiB

View File

@ -1,4 +1,13 @@
{ config, pkgs, ... }: { config, lib, pkgs, ... }:
let
hostName = "wlin001-nixos";
userName = "zulumann";
userDescription = "Henrik Lutzmann";
userDir = "/home/zulumann";
userEmail = "zulumann_70@gmx.de";
stateVersion = "24.11";
in
{ {
imports = [ imports = [
@ -23,6 +32,7 @@
kernelPackages = pkgs.linuxPackages_latest; kernelPackages = pkgs.linuxPackages_latest;
#kernelPackages = pkgs.linuxKernel.kernels.linux_xanmod; #kernelPackages = pkgs.linuxKernel.kernels.linux_xanmod;
# initrd.network.openvpn.enable = true; # initrd.network.openvpn.enable = true;
initrd.systemd.enable = true;
}; };
# Enable Kernel same-page merging # Enable Kernel same-page merging
@ -33,7 +43,7 @@
networkmanager.enable = true; networkmanager.enable = true;
networkmanager.plugins = with pkgs; [ networkmanager-openvpn ]; networkmanager.plugins = with pkgs; [ networkmanager-openvpn ];
usePredictableInterfaceNames = false; usePredictableInterfaceNames = false;
hostName = "wlin001-nixos"; hostName = "${hostName}";
}; };
# Set your time zone # Set your time zone
@ -53,13 +63,20 @@
LC_TIME = "de_DE.UTF-8"; LC_TIME = "de_DE.UTF-8";
}; };
# Configure console keymap # Configure console
console.keyMap = "de"; console = {
enable = true;
earlySetup = true;
font = "Lat2-Terminus16";
packages = with pkgs; [terminus_font];
keyMap = "de";
#useXkbConfig = true; # use xkb.options in tty.
};
# Define a user account. Dont forget to set a password with passwd. # Define a user account. Dont forget to set a password with passwd.
users.users.zulumann = { users.users."${userName}" = {
isNormalUser = true; isNormalUser = true;
description = "Henrik Lutzmann"; description = "${userDescription}";
extraGroups = [ "networkmanager" "wheel" "audio" "video" ]; extraGroups = [ "networkmanager" "wheel" "audio" "video" ];
openssh.authorizedKeys.keyFiles = [ /etc/nixos/config/home/ssh/authorized_keys ]; openssh.authorizedKeys.keyFiles = [ /etc/nixos/config/home/ssh/authorized_keys ];
packages = with pkgs; [ ]; packages = with pkgs; [ ];
@ -93,7 +110,7 @@
system.autoUpgrade = { system.autoUpgrade = {
enable = false; enable = false;
allowReboot = false; allowReboot = false;
channel = "https://channels.nixos.org/nixos-24.11"; channel = "https://channels.nixos.org/nixos-${stateVersion}";
}; };
# NixOS Settings # NixOS Settings
@ -127,7 +144,7 @@
fileSystems."/".options = [ "noatime" "discard" ]; fileSystems."/".options = [ "noatime" "discard" ];
fileSystems."/home".options = [ "noatime" "discard" ]; fileSystems."/home".options = [ "noatime" "discard" ];
fileSystems."/home/zulumann/VM-Image" = { fileSystems."${userDir}/VM-Image" = {
device = "/dev/disk/by-uuid/3b47d34d-618a-4a33-9f65-cde6e0d6467e"; device = "/dev/disk/by-uuid/3b47d34d-618a-4a33-9f65-cde6e0d6467e";
fsType = "ext4"; fsType = "ext4";
options = [ "discard" "noatime" "nofail" "x-systemd.device-timeout=3" ]; options = [ "discard" "noatime" "nofail" "x-systemd.device-timeout=3" ];
@ -152,6 +169,12 @@
settings.PasswordAuthentication = false; settings.PasswordAuthentication = false;
}; };
# Enable cron service
services.cron = {
enable = true;
systemCronJobs = [ "@hourly ${userName} ${userDir}/.rsync-backup.sh" ];
};
# Enable sound with pipewire # Enable sound with pipewire
hardware.pulseaudio.enable = false; hardware.pulseaudio.enable = false;
security.rtkit.enable = true; security.rtkit.enable = true;
@ -196,6 +219,6 @@
# accidentally delete configuration.nix. # accidentally delete configuration.nix.
system.copySystemConfiguration = true; system.copySystemConfiguration = true;
system.stateVersion = "24.11"; system.stateVersion = "${stateVersion}";
} }