Compare commits
59 Commits
d22970c91e
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 2b85a4dd23 | |||
| fa47488139 | |||
| 4dd3658bfb | |||
| 9cf6792389 | |||
| 70cda3ac88 | |||
| dc2403017a | |||
| c494d38913 | |||
| d5cdb13451 | |||
| 69762bcdcf | |||
| a641acdf6c | |||
| e037398c51 | |||
| 77a996569f | |||
| a48611d599 | |||
| 314417b14b | |||
| 7138188a2c | |||
| 9aba7e8ece | |||
| df5a9a97fb | |||
| ca3bf5cf28 | |||
| a25a5debdc | |||
| e91fdde315 | |||
| 703123a3ce | |||
| 50e9116beb | |||
| f84d1641f4 | |||
| 0e71ff2abb | |||
| d13ced33c2 | |||
| d5c311cd31 | |||
| 638de5a67f | |||
| 79c225f93d | |||
| dafbac70cf | |||
| 86e6994e02 | |||
| 688e007578 | |||
| 3d12ebf62e | |||
| b13c00a36b | |||
| e99ad27cfa | |||
| 99c24e950b | |||
| 5c58ceeac8 | |||
| 55536603e5 | |||
| a8c8c19acb | |||
| 5031713efd | |||
| eb250c8c77 | |||
| 3a53b463df | |||
| fd80f5af0f | |||
| a859934df0 | |||
| 9f486e7b9c | |||
| 7095953aaf | |||
| 29ab245392 | |||
| a56eea1afb | |||
| d36fb43c9d | |||
| 996af66af3 | |||
| 4c1a80b4e4 | |||
| 439b3e2cd7 | |||
| c1f9cf2841 | |||
| 8a02c546c1 | |||
| 39beb6129e | |||
| 1ba32790a9 | |||
| bd74862e34 | |||
| 8fa743767a | |||
| 31b71ebb65 | |||
| 17ad560a5d |
@@ -13,15 +13,15 @@
|
||||
};
|
||||
|
||||
|
||||
systemd.user.services.obs-studio = {
|
||||
description = "OBS Studio Autostart mit Flags";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.obs-studio}/bin/obs --startreplaybuffer --disable-shutdown-check";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
# systemd.user.services.obs-studio = {
|
||||
# description = "OBS Studio Autostart mit Flags";
|
||||
# after = [ "graphical-session.target" ];
|
||||
# wantedBy = [ "default.target" ];
|
||||
# serviceConfig = {
|
||||
# Type = "simple";
|
||||
# ExecStart = "${pkgs.obs-studio}/bin/obs --startreplaybuffer --disable-shutdown-check";
|
||||
# Restart = "on-failure";
|
||||
# };
|
||||
# };
|
||||
|
||||
}
|
||||
|
||||
@@ -4,11 +4,20 @@
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./home.nix
|
||||
#./home.nix
|
||||
./vm.nix
|
||||
./clean.nix
|
||||
./autostart.nix
|
||||
<home-manager/nixos>
|
||||
];
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(import /home/leo/.config/nixpkgs/overlays/ssh-manager.nix)
|
||||
];
|
||||
|
||||
|
||||
|
||||
|
||||
# Bootloader
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
@@ -45,6 +54,11 @@
|
||||
};
|
||||
console.keyMap = "de";
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
};
|
||||
|
||||
services.printing.enable = true;
|
||||
|
||||
services.pulseaudio.enable = false;
|
||||
@@ -96,14 +110,13 @@
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
ssh-manager
|
||||
micro
|
||||
nano
|
||||
btop
|
||||
pkgs.flatpak
|
||||
pkgs.unzip
|
||||
pkgs.zip
|
||||
pkgs.python3
|
||||
pkgs.python3Packages.flask
|
||||
pkgs.dig
|
||||
pkgs.fish
|
||||
pkgs.kitty
|
||||
@@ -127,7 +140,36 @@
|
||||
pkgs.lmstudio
|
||||
pkgs.tmux
|
||||
pkgs.obs-studio
|
||||
pkgs.git-credential-manager
|
||||
pkgs.waydroid
|
||||
pkgs.waydroid-helper
|
||||
pkgs.putty
|
||||
pkgs.python313
|
||||
pkgs.python313Packages.textual
|
||||
pkgs.python313Packages.cryptography
|
||||
pkgs.python313Packages.paramiko
|
||||
python313Packages.cryptography
|
||||
pkgs.neovim
|
||||
pkgs.cmake
|
||||
pkgs.maven
|
||||
wget
|
||||
xdotool
|
||||
xorg.xwininfo
|
||||
vim # enthält xxd
|
||||
yad
|
||||
pkgs.openrgb-with-all-plugins
|
||||
pkgs.sshpass
|
||||
pkgs.timeshift-unwrapped
|
||||
pkgs.psmisc
|
||||
pkgs.mcron
|
||||
|
||||
wineWowPackages.stable
|
||||
wine
|
||||
(wine.override { wineBuild = "wine64"; })
|
||||
wine64
|
||||
wineWowPackages.staging
|
||||
winetricks
|
||||
wineWowPackages.waylandFull
|
||||
|
||||
];
|
||||
|
||||
environment.shells = with pkgs; [
|
||||
@@ -138,8 +180,17 @@
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
sshm = "ssh-manager";
|
||||
};
|
||||
|
||||
programs.fish = {
|
||||
shellAliases = {
|
||||
sshm = "ssh-manager";
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.waydroid.enable = true;
|
||||
|
||||
systemd.services.startsteam = {
|
||||
enable = true;
|
||||
description = "Starts Steam automatically in background at boot";
|
||||
@@ -148,8 +199,13 @@
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.users.leo = { pkgs, ... }: {
|
||||
home.packages = [ ];
|
||||
};
|
||||
|
||||
programs.steam.enable = true;
|
||||
|
||||
services.flatpak.enable = true;
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
@@ -159,8 +215,14 @@
|
||||
enable = true;
|
||||
};
|
||||
|
||||
services.udev.packages = [ pkgs.usb-modeswitch ];
|
||||
services.udev.extraRules = ''
|
||||
SUBSYSTEM=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c26d", RUN+="${pkgs.usb-modeswitch}/bin/usb_modeswitch -v 046d -p c26d -M 0f00010142 -C 0x03 -m 01 -r 01"
|
||||
'';
|
||||
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
27
history/20250326_180353/autostart.nix
Normal file
27
history/20250326_180353/autostart.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
systemd.user.services.ollama = {
|
||||
description = "Ollama Server Autostart";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.ollama}/bin/ollama serve";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
systemd.user.services.obs-studio = {
|
||||
description = "OBS Studio Autostart mit Flags";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.obs-studio}/bin/obs --startreplaybuffer --disable-shutdown-check";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
14
history/20250326_180353/clean.nix
Normal file
14
history/20250326_180353/clean.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
#weekly update
|
||||
system.autoUpgrade.enable = true;
|
||||
system.autoUpgrade.dates = "weekly";
|
||||
|
||||
#auto cleanuo
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.dates = "daily";
|
||||
nix.gc.options = "--delete-older-than 10d";
|
||||
nix.settings.auto-optimise-store = true;
|
||||
|
||||
}
|
||||
166
history/20250326_180353/configuration.nix
Normal file
166
history/20250326_180353/configuration.nix
Normal file
@@ -0,0 +1,166 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./home.nix
|
||||
./vm.nix
|
||||
./clean.nix
|
||||
./autostart.nix
|
||||
];
|
||||
# Bootloader
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "nixos-leo";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "micro";
|
||||
VISUAL = "micro";
|
||||
};
|
||||
|
||||
services.xserver.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
services.xserver.xkb = {
|
||||
layout = "de";
|
||||
variant = "";
|
||||
};
|
||||
console.keyMap = "de";
|
||||
|
||||
services.printing.enable = true;
|
||||
|
||||
services.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
};
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
|
||||
|
||||
|
||||
users.users.leo = {
|
||||
isNormalUser = true;
|
||||
description = "leo";
|
||||
extraGroups = [ "networkmanager" "wheel" "video" ];
|
||||
packages = with pkgs; [
|
||||
kdePackages.kate
|
||||
pkgs.vesktop
|
||||
pkgs.brave
|
||||
pkgs.localsend
|
||||
pkgs.git
|
||||
pkgs.pciutils
|
||||
pkgs.spotify
|
||||
pkgs.prismlauncher
|
||||
pkgs.speedtest-cli
|
||||
pkgs.yazi
|
||||
zsh
|
||||
starship
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
programs.firefox.enable = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
micro
|
||||
nano
|
||||
btop
|
||||
pkgs.flatpak
|
||||
pkgs.unzip
|
||||
pkgs.zip
|
||||
pkgs.python3
|
||||
pkgs.python3Packages.flask
|
||||
pkgs.dig
|
||||
pkgs.fish
|
||||
pkgs.kitty
|
||||
pkgs.vscode
|
||||
pkgs.nodejs_23
|
||||
pkgs.jq
|
||||
pkgs.xclip
|
||||
pkgs.ffmpeg_6-full
|
||||
pkgs.hyprland
|
||||
pkgs.temurin-jre-bin-23
|
||||
appimage-run
|
||||
pkgs.screenfetch
|
||||
pkgs.nerd-fonts.jetbrains-mono
|
||||
pkgs.pinta
|
||||
pkgs.qbittorrent-enhanced
|
||||
pkgs.adwaita-icon-theme
|
||||
pkgs.streamdeck-ui
|
||||
pkgs.mangohud
|
||||
pkgs.gamemode
|
||||
pkgs.ollama-cuda
|
||||
pkgs.lmstudio
|
||||
pkgs.tmux
|
||||
pkgs.obs-studio
|
||||
pkgs.git-credential-manager
|
||||
];
|
||||
|
||||
environment.shells = with pkgs; [
|
||||
fish
|
||||
];
|
||||
|
||||
programs.bash.shellAliases = {
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
};
|
||||
|
||||
systemd.services.startsteam = {
|
||||
enable = true;
|
||||
description = "Starts Steam automatically in background at boot";
|
||||
serviceConfig = {
|
||||
ExecStart = "steam -nochatui -nofriendsui -silent";
|
||||
};
|
||||
};
|
||||
|
||||
programs.steam.enable = true;
|
||||
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
|
||||
}
|
||||
38
history/20250326_180353/hardware-configuration.nix
Normal file
38
history/20250326_180353/hardware-configuration.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/2975466c-25c4-45bd-94e6-125d2f4b2c19";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/922A-1C77";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp9s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
24
history/20250326_180353/home.nix
Normal file
24
history/20250326_180353/home.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import "${home-manager}/nixos")
|
||||
];
|
||||
|
||||
home-manager.users.leo = {
|
||||
home.stateVersion = "24.11";
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font_family = "JetBrainsMono Nerd Font";
|
||||
font_size = 12.0;
|
||||
};
|
||||
shellIntegration = {
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
35
history/20250326_180353/vm.nix
Normal file
35
history/20250326_180353/vm.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
# Enable dconf (System Management Tool)
|
||||
programs.dconf.enable = true;
|
||||
|
||||
# Add user to libvirtd group
|
||||
users.users.leo.extraGroups = [ "libvirtd" ];
|
||||
|
||||
# Install necessary packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
virt-viewer
|
||||
spice spice-gtk
|
||||
spice-protocol
|
||||
win-virtio
|
||||
win-spice
|
||||
];
|
||||
|
||||
# Manage the virtualisation services
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
swtpm.enable = true;
|
||||
ovmf.enable = true;
|
||||
ovmf.packages = [ pkgs.OVMFFull.fd ];
|
||||
};
|
||||
};
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
||||
}
|
||||
27
history/20250326_180529/autostart.nix
Normal file
27
history/20250326_180529/autostart.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
systemd.user.services.ollama = {
|
||||
description = "Ollama Server Autostart";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.ollama}/bin/ollama serve";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
systemd.user.services.obs-studio = {
|
||||
description = "OBS Studio Autostart mit Flags";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.obs-studio}/bin/obs --startreplaybuffer --disable-shutdown-check";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
14
history/20250326_180529/clean.nix
Normal file
14
history/20250326_180529/clean.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
#weekly update
|
||||
system.autoUpgrade.enable = true;
|
||||
system.autoUpgrade.dates = "weekly";
|
||||
|
||||
#auto cleanuo
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.dates = "daily";
|
||||
nix.gc.options = "--delete-older-than 10d";
|
||||
nix.settings.auto-optimise-store = true;
|
||||
|
||||
}
|
||||
166
history/20250326_180529/configuration.nix
Normal file
166
history/20250326_180529/configuration.nix
Normal file
@@ -0,0 +1,166 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./home.nix
|
||||
./vm.nix
|
||||
./clean.nix
|
||||
./autostart.nix
|
||||
];
|
||||
# Bootloader
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "nixos-leo";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "micro";
|
||||
VISUAL = "micro";
|
||||
};
|
||||
|
||||
services.xserver.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
services.xserver.xkb = {
|
||||
layout = "de";
|
||||
variant = "";
|
||||
};
|
||||
console.keyMap = "de";
|
||||
|
||||
services.printing.enable = true;
|
||||
|
||||
services.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
};
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
|
||||
|
||||
|
||||
users.users.leo = {
|
||||
isNormalUser = true;
|
||||
description = "leo";
|
||||
extraGroups = [ "networkmanager" "wheel" "video" ];
|
||||
packages = with pkgs; [
|
||||
kdePackages.kate
|
||||
pkgs.vesktop
|
||||
pkgs.brave
|
||||
pkgs.localsend
|
||||
pkgs.git
|
||||
pkgs.pciutils
|
||||
pkgs.spotify
|
||||
pkgs.prismlauncher
|
||||
pkgs.speedtest-cli
|
||||
pkgs.yazi
|
||||
zsh
|
||||
starship
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
programs.firefox.enable = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
micro
|
||||
nano
|
||||
btop
|
||||
pkgs.flatpak
|
||||
pkgs.unzip
|
||||
pkgs.zip
|
||||
pkgs.python3
|
||||
pkgs.python3Packages.flask
|
||||
pkgs.dig
|
||||
pkgs.fish
|
||||
pkgs.kitty
|
||||
pkgs.vscode
|
||||
pkgs.nodejs_23
|
||||
pkgs.jq
|
||||
pkgs.xclip
|
||||
pkgs.ffmpeg_6-full
|
||||
pkgs.hyprland
|
||||
pkgs.temurin-jre-bin-23
|
||||
appimage-run
|
||||
pkgs.screenfetch
|
||||
pkgs.nerd-fonts.jetbrains-mono
|
||||
pkgs.pinta
|
||||
pkgs.qbittorrent-enhanced
|
||||
pkgs.adwaita-icon-theme
|
||||
pkgs.streamdeck-ui
|
||||
pkgs.mangohud
|
||||
pkgs.gamemode
|
||||
pkgs.ollama-cuda
|
||||
pkgs.lmstudio
|
||||
pkgs.tmux
|
||||
pkgs.obs-studio
|
||||
pkgs.git-credential-manager
|
||||
];
|
||||
|
||||
environment.shells = with pkgs; [
|
||||
fish
|
||||
];
|
||||
|
||||
programs.bash.shellAliases = {
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
};
|
||||
|
||||
systemd.services.startsteam = {
|
||||
enable = true;
|
||||
description = "Starts Steam automatically in background at boot";
|
||||
serviceConfig = {
|
||||
ExecStart = "steam -nochatui -nofriendsui -silent";
|
||||
};
|
||||
};
|
||||
|
||||
programs.steam.enable = true;
|
||||
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
|
||||
}
|
||||
38
history/20250326_180529/hardware-configuration.nix
Normal file
38
history/20250326_180529/hardware-configuration.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/2975466c-25c4-45bd-94e6-125d2f4b2c19";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/922A-1C77";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp9s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
24
history/20250326_180529/home.nix
Normal file
24
history/20250326_180529/home.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import "${home-manager}/nixos")
|
||||
];
|
||||
|
||||
home-manager.users.leo = {
|
||||
home.stateVersion = "24.11";
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font_family = "JetBrainsMono Nerd Font";
|
||||
font_size = 12.0;
|
||||
};
|
||||
shellIntegration = {
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
35
history/20250326_180529/vm.nix
Normal file
35
history/20250326_180529/vm.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
# Enable dconf (System Management Tool)
|
||||
programs.dconf.enable = true;
|
||||
|
||||
# Add user to libvirtd group
|
||||
users.users.leo.extraGroups = [ "libvirtd" ];
|
||||
|
||||
# Install necessary packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
virt-viewer
|
||||
spice spice-gtk
|
||||
spice-protocol
|
||||
win-virtio
|
||||
win-spice
|
||||
];
|
||||
|
||||
# Manage the virtualisation services
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
swtpm.enable = true;
|
||||
ovmf.enable = true;
|
||||
ovmf.packages = [ pkgs.OVMFFull.fd ];
|
||||
};
|
||||
};
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
||||
}
|
||||
27
history/20250327_093619/autostart.nix
Normal file
27
history/20250327_093619/autostart.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
systemd.user.services.ollama = {
|
||||
description = "Ollama Server Autostart";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.ollama}/bin/ollama serve";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
systemd.user.services.obs-studio = {
|
||||
description = "OBS Studio Autostart mit Flags";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.obs-studio}/bin/obs --startreplaybuffer --disable-shutdown-check";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
14
history/20250327_093619/clean.nix
Normal file
14
history/20250327_093619/clean.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
#weekly update
|
||||
system.autoUpgrade.enable = true;
|
||||
system.autoUpgrade.dates = "weekly";
|
||||
|
||||
#auto cleanuo
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.dates = "daily";
|
||||
nix.gc.options = "--delete-older-than 10d";
|
||||
nix.settings.auto-optimise-store = true;
|
||||
|
||||
}
|
||||
167
history/20250327_093619/configuration.nix
Normal file
167
history/20250327_093619/configuration.nix
Normal file
@@ -0,0 +1,167 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./home.nix
|
||||
./vm.nix
|
||||
./clean.nix
|
||||
./autostart.nix
|
||||
];
|
||||
# Bootloader
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "nixos-leo";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "micro";
|
||||
VISUAL = "micro";
|
||||
};
|
||||
|
||||
services.xserver.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
services.xserver.xkb = {
|
||||
layout = "de";
|
||||
variant = "";
|
||||
};
|
||||
console.keyMap = "de";
|
||||
|
||||
services.printing.enable = true;
|
||||
|
||||
services.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
};
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
|
||||
|
||||
|
||||
users.users.leo = {
|
||||
isNormalUser = true;
|
||||
description = "leo";
|
||||
extraGroups = [ "networkmanager" "wheel" "video" ];
|
||||
packages = with pkgs; [
|
||||
kdePackages.kate
|
||||
pkgs.vesktop
|
||||
pkgs.brave
|
||||
pkgs.localsend
|
||||
pkgs.git
|
||||
pkgs.pciutils
|
||||
pkgs.spotify
|
||||
pkgs.prismlauncher
|
||||
pkgs.speedtest-cli
|
||||
pkgs.yazi
|
||||
zsh
|
||||
starship
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
programs.firefox.enable = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
micro
|
||||
nano
|
||||
btop
|
||||
pkgs.flatpak
|
||||
pkgs.unzip
|
||||
pkgs.zip
|
||||
pkgs.python3
|
||||
pkgs.python3Packages.flask
|
||||
pkgs.dig
|
||||
pkgs.fish
|
||||
pkgs.kitty
|
||||
pkgs.vscode
|
||||
pkgs.nodejs_23
|
||||
pkgs.jq
|
||||
pkgs.xclip
|
||||
pkgs.ffmpeg_6-full
|
||||
pkgs.hyprland
|
||||
pkgs.temurin-jre-bin-23
|
||||
appimage-run
|
||||
pkgs.screenfetch
|
||||
pkgs.nerd-fonts.jetbrains-mono
|
||||
pkgs.pinta
|
||||
pkgs.qbittorrent-enhanced
|
||||
pkgs.adwaita-icon-theme
|
||||
pkgs.streamdeck-ui
|
||||
pkgs.mangohud
|
||||
pkgs.gamemode
|
||||
pkgs.ollama-cuda
|
||||
pkgs.lmstudio
|
||||
pkgs.tmux
|
||||
pkgs.obs-studio
|
||||
pkgs.waydroid
|
||||
pkgs.waydroid-helper
|
||||
];
|
||||
|
||||
environment.shells = with pkgs; [
|
||||
fish
|
||||
];
|
||||
|
||||
programs.bash.shellAliases = {
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
};
|
||||
|
||||
systemd.services.startsteam = {
|
||||
enable = true;
|
||||
description = "Starts Steam automatically in background at boot";
|
||||
serviceConfig = {
|
||||
ExecStart = "steam -nochatui -nofriendsui -silent";
|
||||
};
|
||||
};
|
||||
|
||||
programs.steam.enable = true;
|
||||
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
|
||||
}
|
||||
38
history/20250327_093619/hardware-configuration.nix
Normal file
38
history/20250327_093619/hardware-configuration.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/2975466c-25c4-45bd-94e6-125d2f4b2c19";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/922A-1C77";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp9s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
24
history/20250327_093619/home.nix
Normal file
24
history/20250327_093619/home.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import "${home-manager}/nixos")
|
||||
];
|
||||
|
||||
home-manager.users.leo = {
|
||||
home.stateVersion = "24.11";
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font_family = "JetBrainsMono Nerd Font";
|
||||
font_size = 12.0;
|
||||
};
|
||||
shellIntegration = {
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
35
history/20250327_093619/vm.nix
Normal file
35
history/20250327_093619/vm.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
# Enable dconf (System Management Tool)
|
||||
programs.dconf.enable = true;
|
||||
|
||||
# Add user to libvirtd group
|
||||
users.users.leo.extraGroups = [ "libvirtd" ];
|
||||
|
||||
# Install necessary packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
virt-viewer
|
||||
spice spice-gtk
|
||||
spice-protocol
|
||||
win-virtio
|
||||
win-spice
|
||||
];
|
||||
|
||||
# Manage the virtualisation services
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
swtpm.enable = true;
|
||||
ovmf.enable = true;
|
||||
ovmf.packages = [ pkgs.OVMFFull.fd ];
|
||||
};
|
||||
};
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
||||
}
|
||||
27
history/20250327_094128/autostart.nix
Normal file
27
history/20250327_094128/autostart.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
systemd.user.services.ollama = {
|
||||
description = "Ollama Server Autostart";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.ollama}/bin/ollama serve";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
systemd.user.services.obs-studio = {
|
||||
description = "OBS Studio Autostart mit Flags";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.obs-studio}/bin/obs --startreplaybuffer --disable-shutdown-check";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
14
history/20250327_094128/clean.nix
Normal file
14
history/20250327_094128/clean.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
#weekly update
|
||||
system.autoUpgrade.enable = true;
|
||||
system.autoUpgrade.dates = "weekly";
|
||||
|
||||
#auto cleanuo
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.dates = "daily";
|
||||
nix.gc.options = "--delete-older-than 10d";
|
||||
nix.settings.auto-optimise-store = true;
|
||||
|
||||
}
|
||||
169
history/20250327_094128/configuration.nix
Normal file
169
history/20250327_094128/configuration.nix
Normal file
@@ -0,0 +1,169 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./home.nix
|
||||
./vm.nix
|
||||
./clean.nix
|
||||
./autostart.nix
|
||||
];
|
||||
# Bootloader
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "nixos-leo";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "micro";
|
||||
VISUAL = "micro";
|
||||
};
|
||||
|
||||
services.xserver.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
services.xserver.xkb = {
|
||||
layout = "de";
|
||||
variant = "";
|
||||
};
|
||||
console.keyMap = "de";
|
||||
|
||||
services.printing.enable = true;
|
||||
|
||||
services.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
};
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
|
||||
|
||||
|
||||
users.users.leo = {
|
||||
isNormalUser = true;
|
||||
description = "leo";
|
||||
extraGroups = [ "networkmanager" "wheel" "video" ];
|
||||
packages = with pkgs; [
|
||||
kdePackages.kate
|
||||
pkgs.vesktop
|
||||
pkgs.brave
|
||||
pkgs.localsend
|
||||
pkgs.git
|
||||
pkgs.pciutils
|
||||
pkgs.spotify
|
||||
pkgs.prismlauncher
|
||||
pkgs.speedtest-cli
|
||||
pkgs.yazi
|
||||
zsh
|
||||
starship
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
programs.firefox.enable = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
micro
|
||||
nano
|
||||
btop
|
||||
pkgs.flatpak
|
||||
pkgs.unzip
|
||||
pkgs.zip
|
||||
pkgs.python3
|
||||
pkgs.python3Packages.flask
|
||||
pkgs.dig
|
||||
pkgs.fish
|
||||
pkgs.kitty
|
||||
pkgs.vscode
|
||||
pkgs.nodejs_23
|
||||
pkgs.jq
|
||||
pkgs.xclip
|
||||
pkgs.ffmpeg_6-full
|
||||
pkgs.hyprland
|
||||
pkgs.temurin-jre-bin-23
|
||||
appimage-run
|
||||
pkgs.screenfetch
|
||||
pkgs.nerd-fonts.jetbrains-mono
|
||||
pkgs.pinta
|
||||
pkgs.qbittorrent-enhanced
|
||||
pkgs.adwaita-icon-theme
|
||||
pkgs.streamdeck-ui
|
||||
pkgs.mangohud
|
||||
pkgs.gamemode
|
||||
pkgs.ollama-cuda
|
||||
pkgs.lmstudio
|
||||
pkgs.tmux
|
||||
pkgs.obs-studio
|
||||
pkgs.waydroid
|
||||
pkgs.waydroid-helper
|
||||
];
|
||||
|
||||
environment.shells = with pkgs; [
|
||||
fish
|
||||
];
|
||||
|
||||
programs.bash.shellAliases = {
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
};
|
||||
|
||||
virtualisation.waydroid.enable = true;
|
||||
|
||||
systemd.services.startsteam = {
|
||||
enable = true;
|
||||
description = "Starts Steam automatically in background at boot";
|
||||
serviceConfig = {
|
||||
ExecStart = "steam -nochatui -nofriendsui -silent";
|
||||
};
|
||||
};
|
||||
|
||||
programs.steam.enable = true;
|
||||
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
|
||||
}
|
||||
38
history/20250327_094128/hardware-configuration.nix
Normal file
38
history/20250327_094128/hardware-configuration.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/2975466c-25c4-45bd-94e6-125d2f4b2c19";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/922A-1C77";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp9s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
24
history/20250327_094128/home.nix
Normal file
24
history/20250327_094128/home.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import "${home-manager}/nixos")
|
||||
];
|
||||
|
||||
home-manager.users.leo = {
|
||||
home.stateVersion = "24.11";
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font_family = "JetBrainsMono Nerd Font";
|
||||
font_size = 12.0;
|
||||
};
|
||||
shellIntegration = {
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
35
history/20250327_094128/vm.nix
Normal file
35
history/20250327_094128/vm.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
# Enable dconf (System Management Tool)
|
||||
programs.dconf.enable = true;
|
||||
|
||||
# Add user to libvirtd group
|
||||
users.users.leo.extraGroups = [ "libvirtd" ];
|
||||
|
||||
# Install necessary packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
virt-viewer
|
||||
spice spice-gtk
|
||||
spice-protocol
|
||||
win-virtio
|
||||
win-spice
|
||||
];
|
||||
|
||||
# Manage the virtualisation services
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
swtpm.enable = true;
|
||||
ovmf.enable = true;
|
||||
ovmf.packages = [ pkgs.OVMFFull.fd ];
|
||||
};
|
||||
};
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
||||
}
|
||||
27
history/20250327_134613/autostart.nix
Normal file
27
history/20250327_134613/autostart.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
systemd.user.services.ollama = {
|
||||
description = "Ollama Server Autostart";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.ollama}/bin/ollama serve";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
systemd.user.services.obs-studio = {
|
||||
description = "OBS Studio Autostart mit Flags";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.obs-studio}/bin/obs --startreplaybuffer --disable-shutdown-check";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
14
history/20250327_134613/clean.nix
Normal file
14
history/20250327_134613/clean.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
#weekly update
|
||||
system.autoUpgrade.enable = true;
|
||||
system.autoUpgrade.dates = "weekly";
|
||||
|
||||
#auto cleanuo
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.dates = "daily";
|
||||
nix.gc.options = "--delete-older-than 10d";
|
||||
nix.settings.auto-optimise-store = true;
|
||||
|
||||
}
|
||||
171
history/20250327_134613/configuration.nix
Normal file
171
history/20250327_134613/configuration.nix
Normal file
@@ -0,0 +1,171 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./home.nix
|
||||
./vm.nix
|
||||
./clean.nix
|
||||
./autostart.nix
|
||||
];
|
||||
# Bootloader
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "nixos-leo";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "micro";
|
||||
VISUAL = "micro";
|
||||
};
|
||||
|
||||
services.xserver.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
services.xserver.xkb = {
|
||||
layout = "de";
|
||||
variant = "";
|
||||
};
|
||||
console.keyMap = "de";
|
||||
|
||||
services.printing.enable = true;
|
||||
|
||||
services.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
};
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
|
||||
|
||||
|
||||
users.users.leo = {
|
||||
isNormalUser = true;
|
||||
description = "leo";
|
||||
extraGroups = [ "networkmanager" "wheel" "video" ];
|
||||
packages = with pkgs; [
|
||||
kdePackages.kate
|
||||
pkgs.vesktop
|
||||
pkgs.brave
|
||||
pkgs.localsend
|
||||
pkgs.git
|
||||
pkgs.pciutils
|
||||
pkgs.spotify
|
||||
pkgs.prismlauncher
|
||||
pkgs.speedtest-cli
|
||||
pkgs.yazi
|
||||
zsh
|
||||
starship
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
programs.firefox.enable = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
micro
|
||||
nano
|
||||
btop
|
||||
pkgs.flatpak
|
||||
pkgs.unzip
|
||||
pkgs.zip
|
||||
pkgs.python3
|
||||
pkgs.python3Packages.flask
|
||||
pkgs.dig
|
||||
pkgs.fish
|
||||
pkgs.kitty
|
||||
pkgs.vscode
|
||||
pkgs.nodejs_23
|
||||
pkgs.jq
|
||||
pkgs.xclip
|
||||
pkgs.ffmpeg_6-full
|
||||
pkgs.hyprland
|
||||
pkgs.temurin-jre-bin-23
|
||||
appimage-run
|
||||
pkgs.screenfetch
|
||||
pkgs.nerd-fonts.jetbrains-mono
|
||||
pkgs.pinta
|
||||
pkgs.qbittorrent-enhanced
|
||||
pkgs.adwaita-icon-theme
|
||||
pkgs.streamdeck-ui
|
||||
pkgs.mangohud
|
||||
pkgs.gamemode
|
||||
pkgs.ollama-cuda
|
||||
pkgs.lmstudio
|
||||
pkgs.tmux
|
||||
pkgs.obs-studio
|
||||
pkgs.waydroid
|
||||
pkgs.waydroid-helper
|
||||
pkgs.putty
|
||||
];
|
||||
|
||||
environment.shells = with pkgs; [
|
||||
fish
|
||||
];
|
||||
|
||||
programs.bash.shellAliases = {
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
};
|
||||
|
||||
|
||||
virtualisation.waydroid.enable = true;
|
||||
|
||||
systemd.services.startsteam = {
|
||||
enable = true;
|
||||
description = "Starts Steam automatically in background at boot";
|
||||
serviceConfig = {
|
||||
ExecStart = "steam -nochatui -nofriendsui -silent";
|
||||
};
|
||||
};
|
||||
|
||||
programs.steam.enable = true;
|
||||
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
|
||||
}
|
||||
38
history/20250327_134613/hardware-configuration.nix
Normal file
38
history/20250327_134613/hardware-configuration.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/2975466c-25c4-45bd-94e6-125d2f4b2c19";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/922A-1C77";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp9s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
24
history/20250327_134613/home.nix
Normal file
24
history/20250327_134613/home.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import "${home-manager}/nixos")
|
||||
];
|
||||
|
||||
home-manager.users.leo = {
|
||||
home.stateVersion = "24.11";
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font_family = "JetBrainsMono Nerd Font";
|
||||
font_size = 12.0;
|
||||
};
|
||||
shellIntegration = {
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
35
history/20250327_134613/vm.nix
Normal file
35
history/20250327_134613/vm.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
# Enable dconf (System Management Tool)
|
||||
programs.dconf.enable = true;
|
||||
|
||||
# Add user to libvirtd group
|
||||
users.users.leo.extraGroups = [ "libvirtd" ];
|
||||
|
||||
# Install necessary packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
virt-viewer
|
||||
spice spice-gtk
|
||||
spice-protocol
|
||||
win-virtio
|
||||
win-spice
|
||||
];
|
||||
|
||||
# Manage the virtualisation services
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
swtpm.enable = true;
|
||||
ovmf.enable = true;
|
||||
ovmf.packages = [ pkgs.OVMFFull.fd ];
|
||||
};
|
||||
};
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
||||
}
|
||||
27
history/20250327_154827/autostart.nix
Normal file
27
history/20250327_154827/autostart.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
systemd.user.services.ollama = {
|
||||
description = "Ollama Server Autostart";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.ollama}/bin/ollama serve";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# systemd.user.services.obs-studio = {
|
||||
# description = "OBS Studio Autostart mit Flags";
|
||||
# after = [ "graphical-session.target" ];
|
||||
# wantedBy = [ "default.target" ];
|
||||
# serviceConfig = {
|
||||
# Type = "simple";
|
||||
# ExecStart = "${pkgs.obs-studio}/bin/obs --startreplaybuffer --disable-shutdown-check";
|
||||
# Restart = "on-failure";
|
||||
# };
|
||||
# };
|
||||
|
||||
}
|
||||
14
history/20250327_154827/clean.nix
Normal file
14
history/20250327_154827/clean.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
#weekly update
|
||||
system.autoUpgrade.enable = true;
|
||||
system.autoUpgrade.dates = "weekly";
|
||||
|
||||
#auto cleanuo
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.dates = "daily";
|
||||
nix.gc.options = "--delete-older-than 10d";
|
||||
nix.settings.auto-optimise-store = true;
|
||||
|
||||
}
|
||||
171
history/20250327_154827/configuration.nix
Normal file
171
history/20250327_154827/configuration.nix
Normal file
@@ -0,0 +1,171 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./home.nix
|
||||
./vm.nix
|
||||
./clean.nix
|
||||
./autostart.nix
|
||||
];
|
||||
# Bootloader
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "nixos-leo";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "micro";
|
||||
VISUAL = "micro";
|
||||
};
|
||||
|
||||
services.xserver.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
services.xserver.xkb = {
|
||||
layout = "de";
|
||||
variant = "";
|
||||
};
|
||||
console.keyMap = "de";
|
||||
|
||||
services.printing.enable = true;
|
||||
|
||||
services.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
};
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
|
||||
|
||||
|
||||
users.users.leo = {
|
||||
isNormalUser = true;
|
||||
description = "leo";
|
||||
extraGroups = [ "networkmanager" "wheel" "video" ];
|
||||
packages = with pkgs; [
|
||||
kdePackages.kate
|
||||
pkgs.vesktop
|
||||
pkgs.brave
|
||||
pkgs.localsend
|
||||
pkgs.git
|
||||
pkgs.pciutils
|
||||
pkgs.spotify
|
||||
pkgs.prismlauncher
|
||||
pkgs.speedtest-cli
|
||||
pkgs.yazi
|
||||
zsh
|
||||
starship
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
programs.firefox.enable = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
micro
|
||||
nano
|
||||
btop
|
||||
pkgs.flatpak
|
||||
pkgs.unzip
|
||||
pkgs.zip
|
||||
pkgs.python3
|
||||
pkgs.python3Packages.flask
|
||||
pkgs.dig
|
||||
pkgs.fish
|
||||
pkgs.kitty
|
||||
pkgs.vscode
|
||||
pkgs.nodejs_23
|
||||
pkgs.jq
|
||||
pkgs.xclip
|
||||
pkgs.ffmpeg_6-full
|
||||
pkgs.hyprland
|
||||
pkgs.temurin-jre-bin-23
|
||||
appimage-run
|
||||
pkgs.screenfetch
|
||||
pkgs.nerd-fonts.jetbrains-mono
|
||||
pkgs.pinta
|
||||
pkgs.qbittorrent-enhanced
|
||||
pkgs.adwaita-icon-theme
|
||||
pkgs.streamdeck-ui
|
||||
pkgs.mangohud
|
||||
pkgs.gamemode
|
||||
pkgs.ollama-cuda
|
||||
pkgs.lmstudio
|
||||
pkgs.tmux
|
||||
pkgs.obs-studio
|
||||
pkgs.waydroid
|
||||
pkgs.waydroid-helper
|
||||
pkgs.putty
|
||||
];
|
||||
|
||||
environment.shells = with pkgs; [
|
||||
fish
|
||||
];
|
||||
|
||||
programs.bash.shellAliases = {
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
};
|
||||
|
||||
|
||||
virtualisation.waydroid.enable = true;
|
||||
|
||||
systemd.services.startsteam = {
|
||||
enable = true;
|
||||
description = "Starts Steam automatically in background at boot";
|
||||
serviceConfig = {
|
||||
ExecStart = "steam -nochatui -nofriendsui -silent";
|
||||
};
|
||||
};
|
||||
|
||||
programs.steam.enable = true;
|
||||
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
|
||||
}
|
||||
38
history/20250327_154827/hardware-configuration.nix
Normal file
38
history/20250327_154827/hardware-configuration.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/2975466c-25c4-45bd-94e6-125d2f4b2c19";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/922A-1C77";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp9s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
24
history/20250327_154827/home.nix
Normal file
24
history/20250327_154827/home.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import "${home-manager}/nixos")
|
||||
];
|
||||
|
||||
home-manager.users.leo = {
|
||||
home.stateVersion = "24.11";
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font_family = "JetBrainsMono Nerd Font";
|
||||
font_size = 12.0;
|
||||
};
|
||||
shellIntegration = {
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
35
history/20250327_154827/vm.nix
Normal file
35
history/20250327_154827/vm.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
# Enable dconf (System Management Tool)
|
||||
programs.dconf.enable = true;
|
||||
|
||||
# Add user to libvirtd group
|
||||
users.users.leo.extraGroups = [ "libvirtd" ];
|
||||
|
||||
# Install necessary packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
virt-viewer
|
||||
spice spice-gtk
|
||||
spice-protocol
|
||||
win-virtio
|
||||
win-spice
|
||||
];
|
||||
|
||||
# Manage the virtualisation services
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
swtpm.enable = true;
|
||||
ovmf.enable = true;
|
||||
ovmf.packages = [ pkgs.OVMFFull.fd ];
|
||||
};
|
||||
};
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
||||
}
|
||||
27
history/20250327_162915/autostart.nix
Normal file
27
history/20250327_162915/autostart.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
systemd.user.services.ollama = {
|
||||
description = "Ollama Server Autostart";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.ollama}/bin/ollama serve";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# systemd.user.services.obs-studio = {
|
||||
# description = "OBS Studio Autostart mit Flags";
|
||||
# after = [ "graphical-session.target" ];
|
||||
# wantedBy = [ "default.target" ];
|
||||
# serviceConfig = {
|
||||
# Type = "simple";
|
||||
# ExecStart = "${pkgs.obs-studio}/bin/obs --startreplaybuffer --disable-shutdown-check";
|
||||
# Restart = "on-failure";
|
||||
# };
|
||||
# };
|
||||
|
||||
}
|
||||
14
history/20250327_162915/clean.nix
Normal file
14
history/20250327_162915/clean.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
#weekly update
|
||||
system.autoUpgrade.enable = true;
|
||||
system.autoUpgrade.dates = "weekly";
|
||||
|
||||
#auto cleanuo
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.dates = "daily";
|
||||
nix.gc.options = "--delete-older-than 10d";
|
||||
nix.settings.auto-optimise-store = true;
|
||||
|
||||
}
|
||||
170
history/20250327_162915/configuration.nix
Normal file
170
history/20250327_162915/configuration.nix
Normal file
@@ -0,0 +1,170 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./home.nix
|
||||
./vm.nix
|
||||
./clean.nix
|
||||
./autostart.nix
|
||||
./python.nix
|
||||
];
|
||||
# Bootloader
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "nixos-leo";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "micro";
|
||||
VISUAL = "micro";
|
||||
};
|
||||
|
||||
services.xserver.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
services.xserver.xkb = {
|
||||
layout = "de";
|
||||
variant = "";
|
||||
};
|
||||
console.keyMap = "de";
|
||||
|
||||
services.printing.enable = true;
|
||||
|
||||
services.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
};
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
|
||||
|
||||
|
||||
users.users.leo = {
|
||||
isNormalUser = true;
|
||||
description = "leo";
|
||||
extraGroups = [ "networkmanager" "wheel" "video" ];
|
||||
packages = with pkgs; [
|
||||
kdePackages.kate
|
||||
pkgs.vesktop
|
||||
pkgs.brave
|
||||
pkgs.localsend
|
||||
pkgs.git
|
||||
pkgs.pciutils
|
||||
pkgs.spotify
|
||||
pkgs.prismlauncher
|
||||
pkgs.speedtest-cli
|
||||
pkgs.yazi
|
||||
zsh
|
||||
starship
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
programs.firefox.enable = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
micro
|
||||
nano
|
||||
btop
|
||||
pkgs.flatpak
|
||||
pkgs.unzip
|
||||
pkgs.zip
|
||||
pkgs.dig
|
||||
pkgs.fish
|
||||
pkgs.kitty
|
||||
pkgs.vscode
|
||||
pkgs.nodejs_23
|
||||
pkgs.jq
|
||||
pkgs.xclip
|
||||
pkgs.ffmpeg_6-full
|
||||
pkgs.hyprland
|
||||
pkgs.temurin-jre-bin-23
|
||||
appimage-run
|
||||
pkgs.screenfetch
|
||||
pkgs.nerd-fonts.jetbrains-mono
|
||||
pkgs.pinta
|
||||
pkgs.qbittorrent-enhanced
|
||||
pkgs.adwaita-icon-theme
|
||||
pkgs.streamdeck-ui
|
||||
pkgs.mangohud
|
||||
pkgs.gamemode
|
||||
pkgs.ollama-cuda
|
||||
pkgs.lmstudio
|
||||
pkgs.tmux
|
||||
pkgs.obs-studio
|
||||
pkgs.waydroid
|
||||
pkgs.waydroid-helper
|
||||
pkgs.putty
|
||||
];
|
||||
|
||||
environment.shells = with pkgs; [
|
||||
fish
|
||||
];
|
||||
|
||||
programs.bash.shellAliases = {
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
};
|
||||
|
||||
|
||||
virtualisation.waydroid.enable = true;
|
||||
|
||||
systemd.services.startsteam = {
|
||||
enable = true;
|
||||
description = "Starts Steam automatically in background at boot";
|
||||
serviceConfig = {
|
||||
ExecStart = "steam -nochatui -nofriendsui -silent";
|
||||
};
|
||||
};
|
||||
|
||||
programs.steam.enable = true;
|
||||
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
|
||||
}
|
||||
38
history/20250327_162915/hardware-configuration.nix
Normal file
38
history/20250327_162915/hardware-configuration.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/2975466c-25c4-45bd-94e6-125d2f4b2c19";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/922A-1C77";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp9s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
24
history/20250327_162915/home.nix
Normal file
24
history/20250327_162915/home.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import "${home-manager}/nixos")
|
||||
];
|
||||
|
||||
home-manager.users.leo = {
|
||||
home.stateVersion = "24.11";
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font_family = "JetBrainsMono Nerd Font";
|
||||
font_size = 12.0;
|
||||
};
|
||||
shellIntegration = {
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
28
history/20250327_162915/python.nix
Normal file
28
history/20250327_162915/python.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
ssh-manager = pkgs.python3Packages.buildPythonApplication rec {
|
||||
pname = "ssh-manager";
|
||||
version = "0.1.0";
|
||||
src = /home/leo/Documents/Dev/ssh-manager;
|
||||
|
||||
propagatedBuildInputs = with pkgs.python3Packages; [
|
||||
cryptography
|
||||
paramiko
|
||||
];
|
||||
|
||||
# Make the script executable
|
||||
postInstall = ''
|
||||
chmod +x $out/bin/ssh-manager
|
||||
'';
|
||||
|
||||
# Create a wrapper script to ensure proper environment
|
||||
postFixup = ''
|
||||
makeWrapper ${pkgs.python3}/bin/python $out/bin/ssh-manager \
|
||||
--add-flags "$out/lib/python${pkgs.python3.pythonVersion}/site-packages/main.py"
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [ ssh-manager ];
|
||||
};
|
||||
35
history/20250327_162915/vm.nix
Normal file
35
history/20250327_162915/vm.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
# Enable dconf (System Management Tool)
|
||||
programs.dconf.enable = true;
|
||||
|
||||
# Add user to libvirtd group
|
||||
users.users.leo.extraGroups = [ "libvirtd" ];
|
||||
|
||||
# Install necessary packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
virt-viewer
|
||||
spice spice-gtk
|
||||
spice-protocol
|
||||
win-virtio
|
||||
win-spice
|
||||
];
|
||||
|
||||
# Manage the virtualisation services
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
swtpm.enable = true;
|
||||
ovmf.enable = true;
|
||||
ovmf.packages = [ pkgs.OVMFFull.fd ];
|
||||
};
|
||||
};
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
||||
}
|
||||
27
history/20250327_163036/autostart.nix
Normal file
27
history/20250327_163036/autostart.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
systemd.user.services.ollama = {
|
||||
description = "Ollama Server Autostart";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.ollama}/bin/ollama serve";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# systemd.user.services.obs-studio = {
|
||||
# description = "OBS Studio Autostart mit Flags";
|
||||
# after = [ "graphical-session.target" ];
|
||||
# wantedBy = [ "default.target" ];
|
||||
# serviceConfig = {
|
||||
# Type = "simple";
|
||||
# ExecStart = "${pkgs.obs-studio}/bin/obs --startreplaybuffer --disable-shutdown-check";
|
||||
# Restart = "on-failure";
|
||||
# };
|
||||
# };
|
||||
|
||||
}
|
||||
14
history/20250327_163036/clean.nix
Normal file
14
history/20250327_163036/clean.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
#weekly update
|
||||
system.autoUpgrade.enable = true;
|
||||
system.autoUpgrade.dates = "weekly";
|
||||
|
||||
#auto cleanuo
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.dates = "daily";
|
||||
nix.gc.options = "--delete-older-than 10d";
|
||||
nix.settings.auto-optimise-store = true;
|
||||
|
||||
}
|
||||
170
history/20250327_163036/configuration.nix
Normal file
170
history/20250327_163036/configuration.nix
Normal file
@@ -0,0 +1,170 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./home.nix
|
||||
./vm.nix
|
||||
./clean.nix
|
||||
./autostart.nix
|
||||
./python.nix
|
||||
];
|
||||
# Bootloader
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "nixos-leo";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "micro";
|
||||
VISUAL = "micro";
|
||||
};
|
||||
|
||||
services.xserver.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
services.xserver.xkb = {
|
||||
layout = "de";
|
||||
variant = "";
|
||||
};
|
||||
console.keyMap = "de";
|
||||
|
||||
services.printing.enable = true;
|
||||
|
||||
services.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
};
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
|
||||
|
||||
|
||||
users.users.leo = {
|
||||
isNormalUser = true;
|
||||
description = "leo";
|
||||
extraGroups = [ "networkmanager" "wheel" "video" ];
|
||||
packages = with pkgs; [
|
||||
kdePackages.kate
|
||||
pkgs.vesktop
|
||||
pkgs.brave
|
||||
pkgs.localsend
|
||||
pkgs.git
|
||||
pkgs.pciutils
|
||||
pkgs.spotify
|
||||
pkgs.prismlauncher
|
||||
pkgs.speedtest-cli
|
||||
pkgs.yazi
|
||||
zsh
|
||||
starship
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
programs.firefox.enable = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
micro
|
||||
nano
|
||||
btop
|
||||
pkgs.flatpak
|
||||
pkgs.unzip
|
||||
pkgs.zip
|
||||
pkgs.dig
|
||||
pkgs.fish
|
||||
pkgs.kitty
|
||||
pkgs.vscode
|
||||
pkgs.nodejs_23
|
||||
pkgs.jq
|
||||
pkgs.xclip
|
||||
pkgs.ffmpeg_6-full
|
||||
pkgs.hyprland
|
||||
pkgs.temurin-jre-bin-23
|
||||
appimage-run
|
||||
pkgs.screenfetch
|
||||
pkgs.nerd-fonts.jetbrains-mono
|
||||
pkgs.pinta
|
||||
pkgs.qbittorrent-enhanced
|
||||
pkgs.adwaita-icon-theme
|
||||
pkgs.streamdeck-ui
|
||||
pkgs.mangohud
|
||||
pkgs.gamemode
|
||||
pkgs.ollama-cuda
|
||||
pkgs.lmstudio
|
||||
pkgs.tmux
|
||||
pkgs.obs-studio
|
||||
pkgs.waydroid
|
||||
pkgs.waydroid-helper
|
||||
pkgs.putty
|
||||
];
|
||||
|
||||
environment.shells = with pkgs; [
|
||||
fish
|
||||
];
|
||||
|
||||
programs.bash.shellAliases = {
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
};
|
||||
|
||||
|
||||
virtualisation.waydroid.enable = true;
|
||||
|
||||
systemd.services.startsteam = {
|
||||
enable = true;
|
||||
description = "Starts Steam automatically in background at boot";
|
||||
serviceConfig = {
|
||||
ExecStart = "steam -nochatui -nofriendsui -silent";
|
||||
};
|
||||
};
|
||||
|
||||
programs.steam.enable = true;
|
||||
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
|
||||
}
|
||||
38
history/20250327_163036/hardware-configuration.nix
Normal file
38
history/20250327_163036/hardware-configuration.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/2975466c-25c4-45bd-94e6-125d2f4b2c19";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/922A-1C77";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp9s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
24
history/20250327_163036/home.nix
Normal file
24
history/20250327_163036/home.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import "${home-manager}/nixos")
|
||||
];
|
||||
|
||||
home-manager.users.leo = {
|
||||
home.stateVersion = "24.11";
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font_family = "JetBrainsMono Nerd Font";
|
||||
font_size = 12.0;
|
||||
};
|
||||
shellIntegration = {
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
28
history/20250327_163036/python.nix
Normal file
28
history/20250327_163036/python.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
ssh-manager = pkgs.python3Packages.buildPythonApplication rec {
|
||||
pname = "ssh-manager";
|
||||
version = "0.1.0";
|
||||
src = /home/leo/Documents/Dev/ssh-manager;
|
||||
|
||||
propagatedBuildInputs = with pkgs.python3Packages; [
|
||||
cryptography
|
||||
paramiko
|
||||
];
|
||||
|
||||
# Make the script executable
|
||||
postInstall = ''
|
||||
chmod +x $out/bin/ssh-manager
|
||||
'';
|
||||
|
||||
# Create a wrapper script to ensure proper environment
|
||||
postFixup = ''
|
||||
makeWrapper ${pkgs.python3}/bin/python $out/bin/ssh-manager \
|
||||
--add-flags "$out/lib/python${pkgs.python3.pythonVersion}/site-packages/main.py"
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [ ssh-manager ];
|
||||
};
|
||||
35
history/20250327_163036/vm.nix
Normal file
35
history/20250327_163036/vm.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
# Enable dconf (System Management Tool)
|
||||
programs.dconf.enable = true;
|
||||
|
||||
# Add user to libvirtd group
|
||||
users.users.leo.extraGroups = [ "libvirtd" ];
|
||||
|
||||
# Install necessary packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
virt-viewer
|
||||
spice spice-gtk
|
||||
spice-protocol
|
||||
win-virtio
|
||||
win-spice
|
||||
];
|
||||
|
||||
# Manage the virtualisation services
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
swtpm.enable = true;
|
||||
ovmf.enable = true;
|
||||
ovmf.packages = [ pkgs.OVMFFull.fd ];
|
||||
};
|
||||
};
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
||||
}
|
||||
27
history/20250327_163140/autostart.nix
Normal file
27
history/20250327_163140/autostart.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
systemd.user.services.ollama = {
|
||||
description = "Ollama Server Autostart";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.ollama}/bin/ollama serve";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# systemd.user.services.obs-studio = {
|
||||
# description = "OBS Studio Autostart mit Flags";
|
||||
# after = [ "graphical-session.target" ];
|
||||
# wantedBy = [ "default.target" ];
|
||||
# serviceConfig = {
|
||||
# Type = "simple";
|
||||
# ExecStart = "${pkgs.obs-studio}/bin/obs --startreplaybuffer --disable-shutdown-check";
|
||||
# Restart = "on-failure";
|
||||
# };
|
||||
# };
|
||||
|
||||
}
|
||||
14
history/20250327_163140/clean.nix
Normal file
14
history/20250327_163140/clean.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
#weekly update
|
||||
system.autoUpgrade.enable = true;
|
||||
system.autoUpgrade.dates = "weekly";
|
||||
|
||||
#auto cleanuo
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.dates = "daily";
|
||||
nix.gc.options = "--delete-older-than 10d";
|
||||
nix.settings.auto-optimise-store = true;
|
||||
|
||||
}
|
||||
170
history/20250327_163140/configuration.nix
Normal file
170
history/20250327_163140/configuration.nix
Normal file
@@ -0,0 +1,170 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./home.nix
|
||||
./vm.nix
|
||||
./clean.nix
|
||||
./autostart.nix
|
||||
./python.nix
|
||||
];
|
||||
# Bootloader
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "nixos-leo";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "micro";
|
||||
VISUAL = "micro";
|
||||
};
|
||||
|
||||
services.xserver.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
services.xserver.xkb = {
|
||||
layout = "de";
|
||||
variant = "";
|
||||
};
|
||||
console.keyMap = "de";
|
||||
|
||||
services.printing.enable = true;
|
||||
|
||||
services.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
};
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
|
||||
|
||||
|
||||
users.users.leo = {
|
||||
isNormalUser = true;
|
||||
description = "leo";
|
||||
extraGroups = [ "networkmanager" "wheel" "video" ];
|
||||
packages = with pkgs; [
|
||||
kdePackages.kate
|
||||
pkgs.vesktop
|
||||
pkgs.brave
|
||||
pkgs.localsend
|
||||
pkgs.git
|
||||
pkgs.pciutils
|
||||
pkgs.spotify
|
||||
pkgs.prismlauncher
|
||||
pkgs.speedtest-cli
|
||||
pkgs.yazi
|
||||
zsh
|
||||
starship
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
programs.firefox.enable = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
micro
|
||||
nano
|
||||
btop
|
||||
pkgs.flatpak
|
||||
pkgs.unzip
|
||||
pkgs.zip
|
||||
pkgs.dig
|
||||
pkgs.fish
|
||||
pkgs.kitty
|
||||
pkgs.vscode
|
||||
pkgs.nodejs_23
|
||||
pkgs.jq
|
||||
pkgs.xclip
|
||||
pkgs.ffmpeg_6-full
|
||||
pkgs.hyprland
|
||||
pkgs.temurin-jre-bin-23
|
||||
appimage-run
|
||||
pkgs.screenfetch
|
||||
pkgs.nerd-fonts.jetbrains-mono
|
||||
pkgs.pinta
|
||||
pkgs.qbittorrent-enhanced
|
||||
pkgs.adwaita-icon-theme
|
||||
pkgs.streamdeck-ui
|
||||
pkgs.mangohud
|
||||
pkgs.gamemode
|
||||
pkgs.ollama-cuda
|
||||
pkgs.lmstudio
|
||||
pkgs.tmux
|
||||
pkgs.obs-studio
|
||||
pkgs.waydroid
|
||||
pkgs.waydroid-helper
|
||||
pkgs.putty
|
||||
];
|
||||
|
||||
environment.shells = with pkgs; [
|
||||
fish
|
||||
];
|
||||
|
||||
programs.bash.shellAliases = {
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
};
|
||||
|
||||
|
||||
virtualisation.waydroid.enable = true;
|
||||
|
||||
systemd.services.startsteam = {
|
||||
enable = true;
|
||||
description = "Starts Steam automatically in background at boot";
|
||||
serviceConfig = {
|
||||
ExecStart = "steam -nochatui -nofriendsui -silent";
|
||||
};
|
||||
};
|
||||
|
||||
programs.steam.enable = true;
|
||||
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
|
||||
}
|
||||
38
history/20250327_163140/hardware-configuration.nix
Normal file
38
history/20250327_163140/hardware-configuration.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/2975466c-25c4-45bd-94e6-125d2f4b2c19";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/922A-1C77";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp9s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
24
history/20250327_163140/home.nix
Normal file
24
history/20250327_163140/home.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import "${home-manager}/nixos")
|
||||
];
|
||||
|
||||
home-manager.users.leo = {
|
||||
home.stateVersion = "24.11";
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font_family = "JetBrainsMono Nerd Font";
|
||||
font_size = 12.0;
|
||||
};
|
||||
shellIntegration = {
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
28
history/20250327_163140/python.nix
Normal file
28
history/20250327_163140/python.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
ssh-manager = pkgs.python3Packages.buildPythonApplication rec {
|
||||
pname = "ssh-manager";
|
||||
version = "0.1.0";
|
||||
src = /home/leo/Documents/Dev/ssh-manager;
|
||||
|
||||
propagatedBuildInputs = with pkgs.python3Packages; [
|
||||
cryptography
|
||||
paramiko
|
||||
];
|
||||
|
||||
# Make the script executable
|
||||
postInstall = ''
|
||||
chmod +x $out/bin/ssh-manager
|
||||
'';
|
||||
|
||||
# Create a wrapper script to ensure proper environment
|
||||
postFixup = ''
|
||||
makeWrapper ${pkgs.python3}/bin/python $out/bin/ssh-manager \
|
||||
--add-flags "$out/lib/python${pkgs.python3.pythonVersion}/site-packages/main.py"
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [ ssh-manager ];
|
||||
};
|
||||
35
history/20250327_163140/vm.nix
Normal file
35
history/20250327_163140/vm.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
# Enable dconf (System Management Tool)
|
||||
programs.dconf.enable = true;
|
||||
|
||||
# Add user to libvirtd group
|
||||
users.users.leo.extraGroups = [ "libvirtd" ];
|
||||
|
||||
# Install necessary packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
virt-viewer
|
||||
spice spice-gtk
|
||||
spice-protocol
|
||||
win-virtio
|
||||
win-spice
|
||||
];
|
||||
|
||||
# Manage the virtualisation services
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
swtpm.enable = true;
|
||||
ovmf.enable = true;
|
||||
ovmf.packages = [ pkgs.OVMFFull.fd ];
|
||||
};
|
||||
};
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
||||
}
|
||||
27
history/20250327_163213/autostart.nix
Normal file
27
history/20250327_163213/autostart.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
systemd.user.services.ollama = {
|
||||
description = "Ollama Server Autostart";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.ollama}/bin/ollama serve";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# systemd.user.services.obs-studio = {
|
||||
# description = "OBS Studio Autostart mit Flags";
|
||||
# after = [ "graphical-session.target" ];
|
||||
# wantedBy = [ "default.target" ];
|
||||
# serviceConfig = {
|
||||
# Type = "simple";
|
||||
# ExecStart = "${pkgs.obs-studio}/bin/obs --startreplaybuffer --disable-shutdown-check";
|
||||
# Restart = "on-failure";
|
||||
# };
|
||||
# };
|
||||
|
||||
}
|
||||
14
history/20250327_163213/clean.nix
Normal file
14
history/20250327_163213/clean.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
#weekly update
|
||||
system.autoUpgrade.enable = true;
|
||||
system.autoUpgrade.dates = "weekly";
|
||||
|
||||
#auto cleanuo
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.dates = "daily";
|
||||
nix.gc.options = "--delete-older-than 10d";
|
||||
nix.settings.auto-optimise-store = true;
|
||||
|
||||
}
|
||||
170
history/20250327_163213/configuration.nix
Normal file
170
history/20250327_163213/configuration.nix
Normal file
@@ -0,0 +1,170 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./home.nix
|
||||
./vm.nix
|
||||
./clean.nix
|
||||
./autostart.nix
|
||||
./python.nix
|
||||
];
|
||||
# Bootloader
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "nixos-leo";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "micro";
|
||||
VISUAL = "micro";
|
||||
};
|
||||
|
||||
services.xserver.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
services.xserver.xkb = {
|
||||
layout = "de";
|
||||
variant = "";
|
||||
};
|
||||
console.keyMap = "de";
|
||||
|
||||
services.printing.enable = true;
|
||||
|
||||
services.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
};
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
|
||||
|
||||
|
||||
users.users.leo = {
|
||||
isNormalUser = true;
|
||||
description = "leo";
|
||||
extraGroups = [ "networkmanager" "wheel" "video" ];
|
||||
packages = with pkgs; [
|
||||
kdePackages.kate
|
||||
pkgs.vesktop
|
||||
pkgs.brave
|
||||
pkgs.localsend
|
||||
pkgs.git
|
||||
pkgs.pciutils
|
||||
pkgs.spotify
|
||||
pkgs.prismlauncher
|
||||
pkgs.speedtest-cli
|
||||
pkgs.yazi
|
||||
zsh
|
||||
starship
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
programs.firefox.enable = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
micro
|
||||
nano
|
||||
btop
|
||||
pkgs.flatpak
|
||||
pkgs.unzip
|
||||
pkgs.zip
|
||||
pkgs.dig
|
||||
pkgs.fish
|
||||
pkgs.kitty
|
||||
pkgs.vscode
|
||||
pkgs.nodejs_23
|
||||
pkgs.jq
|
||||
pkgs.xclip
|
||||
pkgs.ffmpeg_6-full
|
||||
pkgs.hyprland
|
||||
pkgs.temurin-jre-bin-23
|
||||
appimage-run
|
||||
pkgs.screenfetch
|
||||
pkgs.nerd-fonts.jetbrains-mono
|
||||
pkgs.pinta
|
||||
pkgs.qbittorrent-enhanced
|
||||
pkgs.adwaita-icon-theme
|
||||
pkgs.streamdeck-ui
|
||||
pkgs.mangohud
|
||||
pkgs.gamemode
|
||||
pkgs.ollama-cuda
|
||||
pkgs.lmstudio
|
||||
pkgs.tmux
|
||||
pkgs.obs-studio
|
||||
pkgs.waydroid
|
||||
pkgs.waydroid-helper
|
||||
pkgs.putty
|
||||
];
|
||||
|
||||
environment.shells = with pkgs; [
|
||||
fish
|
||||
];
|
||||
|
||||
programs.bash.shellAliases = {
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
};
|
||||
|
||||
|
||||
virtualisation.waydroid.enable = true;
|
||||
|
||||
systemd.services.startsteam = {
|
||||
enable = true;
|
||||
description = "Starts Steam automatically in background at boot";
|
||||
serviceConfig = {
|
||||
ExecStart = "steam -nochatui -nofriendsui -silent";
|
||||
};
|
||||
};
|
||||
|
||||
programs.steam.enable = true;
|
||||
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
|
||||
}
|
||||
38
history/20250327_163213/hardware-configuration.nix
Normal file
38
history/20250327_163213/hardware-configuration.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/2975466c-25c4-45bd-94e6-125d2f4b2c19";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/922A-1C77";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp9s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
24
history/20250327_163213/home.nix
Normal file
24
history/20250327_163213/home.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import "${home-manager}/nixos")
|
||||
];
|
||||
|
||||
home-manager.users.leo = {
|
||||
home.stateVersion = "24.11";
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font_family = "JetBrainsMono Nerd Font";
|
||||
font_size = 12.0;
|
||||
};
|
||||
shellIntegration = {
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
28
history/20250327_163213/python.nix
Normal file
28
history/20250327_163213/python.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
ssh-manager = pkgs.python3Packages.buildPythonApplication rec {
|
||||
pname = "ssh-manager";
|
||||
version = "0.1.0";
|
||||
src = /home/leo/Documents/Dev/ssh-manager;
|
||||
|
||||
propagatedBuildInputs = with pkgs.python3Packages; [
|
||||
cryptography
|
||||
paramiko
|
||||
];
|
||||
|
||||
# Make the script executable
|
||||
postInstall = ''
|
||||
chmod +x $out/bin/ssh-manager
|
||||
'';
|
||||
|
||||
# Create a wrapper script to ensure proper environment
|
||||
postFixup = ''
|
||||
makeWrapper ${pkgs.python3}/bin/python $out/bin/ssh-manager \
|
||||
--add-flags "$out/lib/python${pkgs.python3.pythonVersion}/site-packages/main.py"
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [ ssh-manager ];
|
||||
}
|
||||
35
history/20250327_163213/vm.nix
Normal file
35
history/20250327_163213/vm.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
# Enable dconf (System Management Tool)
|
||||
programs.dconf.enable = true;
|
||||
|
||||
# Add user to libvirtd group
|
||||
users.users.leo.extraGroups = [ "libvirtd" ];
|
||||
|
||||
# Install necessary packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
virt-viewer
|
||||
spice spice-gtk
|
||||
spice-protocol
|
||||
win-virtio
|
||||
win-spice
|
||||
];
|
||||
|
||||
# Manage the virtualisation services
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
swtpm.enable = true;
|
||||
ovmf.enable = true;
|
||||
ovmf.packages = [ pkgs.OVMFFull.fd ];
|
||||
};
|
||||
};
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
||||
}
|
||||
27
history/20250327_163436/autostart.nix
Normal file
27
history/20250327_163436/autostart.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
systemd.user.services.ollama = {
|
||||
description = "Ollama Server Autostart";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.ollama}/bin/ollama serve";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# systemd.user.services.obs-studio = {
|
||||
# description = "OBS Studio Autostart mit Flags";
|
||||
# after = [ "graphical-session.target" ];
|
||||
# wantedBy = [ "default.target" ];
|
||||
# serviceConfig = {
|
||||
# Type = "simple";
|
||||
# ExecStart = "${pkgs.obs-studio}/bin/obs --startreplaybuffer --disable-shutdown-check";
|
||||
# Restart = "on-failure";
|
||||
# };
|
||||
# };
|
||||
|
||||
}
|
||||
14
history/20250327_163436/clean.nix
Normal file
14
history/20250327_163436/clean.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
#weekly update
|
||||
system.autoUpgrade.enable = true;
|
||||
system.autoUpgrade.dates = "weekly";
|
||||
|
||||
#auto cleanuo
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.dates = "daily";
|
||||
nix.gc.options = "--delete-older-than 10d";
|
||||
nix.settings.auto-optimise-store = true;
|
||||
|
||||
}
|
||||
170
history/20250327_163436/configuration.nix
Normal file
170
history/20250327_163436/configuration.nix
Normal file
@@ -0,0 +1,170 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./home.nix
|
||||
./vm.nix
|
||||
./clean.nix
|
||||
./autostart.nix
|
||||
];
|
||||
# Bootloader
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "nixos-leo";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "micro";
|
||||
VISUAL = "micro";
|
||||
};
|
||||
|
||||
services.xserver.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
services.xserver.xkb = {
|
||||
layout = "de";
|
||||
variant = "";
|
||||
};
|
||||
console.keyMap = "de";
|
||||
|
||||
services.printing.enable = true;
|
||||
|
||||
services.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
};
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
|
||||
|
||||
|
||||
users.users.leo = {
|
||||
isNormalUser = true;
|
||||
description = "leo";
|
||||
extraGroups = [ "networkmanager" "wheel" "video" ];
|
||||
packages = with pkgs; [
|
||||
kdePackages.kate
|
||||
pkgs.vesktop
|
||||
pkgs.brave
|
||||
pkgs.localsend
|
||||
pkgs.git
|
||||
pkgs.pciutils
|
||||
pkgs.spotify
|
||||
pkgs.prismlauncher
|
||||
pkgs.speedtest-cli
|
||||
pkgs.yazi
|
||||
zsh
|
||||
starship
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
programs.firefox.enable = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
micro
|
||||
nano
|
||||
btop
|
||||
pkgs.flatpak
|
||||
pkgs.unzip
|
||||
pkgs.zip
|
||||
pkgs.dig
|
||||
pkgs.fish
|
||||
pkgs.kitty
|
||||
pkgs.vscode
|
||||
pkgs.nodejs_23
|
||||
pkgs.jq
|
||||
pkgs.xclip
|
||||
pkgs.ffmpeg_6-full
|
||||
pkgs.hyprland
|
||||
pkgs.temurin-jre-bin-23
|
||||
appimage-run
|
||||
pkgs.screenfetch
|
||||
pkgs.nerd-fonts.jetbrains-mono
|
||||
pkgs.pinta
|
||||
pkgs.qbittorrent-enhanced
|
||||
pkgs.adwaita-icon-theme
|
||||
pkgs.streamdeck-ui
|
||||
pkgs.mangohud
|
||||
pkgs.gamemode
|
||||
pkgs.ollama-cuda
|
||||
pkgs.lmstudio
|
||||
pkgs.tmux
|
||||
pkgs.obs-studio
|
||||
pkgs.waydroid
|
||||
pkgs.waydroid-helper
|
||||
pkgs.putty
|
||||
];
|
||||
|
||||
environment.shells = with pkgs; [
|
||||
fish
|
||||
];
|
||||
|
||||
programs.bash.shellAliases = {
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
sshm = "/home/leo/Documents/Dev/ssh-manager/venv/bin/python /home/leo/Documents/Dev/ssh-manager/main.py";
|
||||
};
|
||||
|
||||
|
||||
virtualisation.waydroid.enable = true;
|
||||
|
||||
systemd.services.startsteam = {
|
||||
enable = true;
|
||||
description = "Starts Steam automatically in background at boot";
|
||||
serviceConfig = {
|
||||
ExecStart = "steam -nochatui -nofriendsui -silent";
|
||||
};
|
||||
};
|
||||
|
||||
programs.steam.enable = true;
|
||||
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
|
||||
}
|
||||
38
history/20250327_163436/hardware-configuration.nix
Normal file
38
history/20250327_163436/hardware-configuration.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/2975466c-25c4-45bd-94e6-125d2f4b2c19";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/922A-1C77";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp9s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
24
history/20250327_163436/home.nix
Normal file
24
history/20250327_163436/home.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import "${home-manager}/nixos")
|
||||
];
|
||||
|
||||
home-manager.users.leo = {
|
||||
home.stateVersion = "24.11";
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font_family = "JetBrainsMono Nerd Font";
|
||||
font_size = 12.0;
|
||||
};
|
||||
shellIntegration = {
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
35
history/20250327_163436/vm.nix
Normal file
35
history/20250327_163436/vm.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
# Enable dconf (System Management Tool)
|
||||
programs.dconf.enable = true;
|
||||
|
||||
# Add user to libvirtd group
|
||||
users.users.leo.extraGroups = [ "libvirtd" ];
|
||||
|
||||
# Install necessary packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
virt-viewer
|
||||
spice spice-gtk
|
||||
spice-protocol
|
||||
win-virtio
|
||||
win-spice
|
||||
];
|
||||
|
||||
# Manage the virtualisation services
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
swtpm.enable = true;
|
||||
ovmf.enable = true;
|
||||
ovmf.packages = [ pkgs.OVMFFull.fd ];
|
||||
};
|
||||
};
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
||||
}
|
||||
27
history/20250327_163800/autostart.nix
Normal file
27
history/20250327_163800/autostart.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
systemd.user.services.ollama = {
|
||||
description = "Ollama Server Autostart";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.ollama}/bin/ollama serve";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# systemd.user.services.obs-studio = {
|
||||
# description = "OBS Studio Autostart mit Flags";
|
||||
# after = [ "graphical-session.target" ];
|
||||
# wantedBy = [ "default.target" ];
|
||||
# serviceConfig = {
|
||||
# Type = "simple";
|
||||
# ExecStart = "${pkgs.obs-studio}/bin/obs --startreplaybuffer --disable-shutdown-check";
|
||||
# Restart = "on-failure";
|
||||
# };
|
||||
# };
|
||||
|
||||
}
|
||||
14
history/20250327_163800/clean.nix
Normal file
14
history/20250327_163800/clean.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
#weekly update
|
||||
system.autoUpgrade.enable = true;
|
||||
system.autoUpgrade.dates = "weekly";
|
||||
|
||||
#auto cleanuo
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.dates = "daily";
|
||||
nix.gc.options = "--delete-older-than 10d";
|
||||
nix.settings.auto-optimise-store = true;
|
||||
|
||||
}
|
||||
176
history/20250327_163800/configuration.nix
Normal file
176
history/20250327_163800/configuration.nix
Normal file
@@ -0,0 +1,176 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./home.nix
|
||||
./vm.nix
|
||||
./clean.nix
|
||||
./autostart.nix
|
||||
];
|
||||
# Bootloader
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "nixos-leo";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "micro";
|
||||
VISUAL = "micro";
|
||||
};
|
||||
|
||||
services.xserver.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
services.xserver.xkb = {
|
||||
layout = "de";
|
||||
variant = "";
|
||||
};
|
||||
console.keyMap = "de";
|
||||
|
||||
services.printing.enable = true;
|
||||
|
||||
services.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
};
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
|
||||
|
||||
|
||||
users.users.leo = {
|
||||
isNormalUser = true;
|
||||
description = "leo";
|
||||
extraGroups = [ "networkmanager" "wheel" "video" ];
|
||||
packages = with pkgs; [
|
||||
kdePackages.kate
|
||||
pkgs.vesktop
|
||||
pkgs.brave
|
||||
pkgs.localsend
|
||||
pkgs.git
|
||||
pkgs.pciutils
|
||||
pkgs.spotify
|
||||
pkgs.prismlauncher
|
||||
pkgs.speedtest-cli
|
||||
pkgs.yazi
|
||||
zsh
|
||||
starship
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
programs.firefox.enable = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
micro
|
||||
nano
|
||||
btop
|
||||
pkgs.flatpak
|
||||
pkgs.unzip
|
||||
pkgs.zip
|
||||
pkgs.dig
|
||||
pkgs.fish
|
||||
pkgs.kitty
|
||||
pkgs.vscode
|
||||
pkgs.nodejs_23
|
||||
pkgs.jq
|
||||
pkgs.xclip
|
||||
pkgs.ffmpeg_6-full
|
||||
pkgs.hyprland
|
||||
pkgs.temurin-jre-bin-23
|
||||
appimage-run
|
||||
pkgs.screenfetch
|
||||
pkgs.nerd-fonts.jetbrains-mono
|
||||
pkgs.pinta
|
||||
pkgs.qbittorrent-enhanced
|
||||
pkgs.adwaita-icon-theme
|
||||
pkgs.streamdeck-ui
|
||||
pkgs.mangohud
|
||||
pkgs.gamemode
|
||||
pkgs.ollama-cuda
|
||||
pkgs.lmstudio
|
||||
pkgs.tmux
|
||||
pkgs.obs-studio
|
||||
pkgs.waydroid
|
||||
pkgs.waydroid-helper
|
||||
pkgs.putty
|
||||
];
|
||||
|
||||
environment.shells = with pkgs; [
|
||||
fish
|
||||
];
|
||||
|
||||
programs.bash.shellAliases = {
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
sshm = "/home/leo/Documents/Dev/ssh-manager/venv/bin/python /home/leo/Documents/Dev/ssh-manager/main.py";x
|
||||
};
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
sshm = "/home/leo/Documents/Dev/ssh-manager/venv/bin/python /home/leo/Documents/Dev/ssh-manager/main.py";
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.waydroid.enable = true;
|
||||
|
||||
systemd.services.startsteam = {
|
||||
enable = true;
|
||||
description = "Starts Steam automatically in background at boot";
|
||||
serviceConfig = {
|
||||
ExecStart = "steam -nochatui -nofriendsui -silent";
|
||||
};
|
||||
};
|
||||
|
||||
programs.steam.enable = true;
|
||||
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
|
||||
}
|
||||
38
history/20250327_163800/hardware-configuration.nix
Normal file
38
history/20250327_163800/hardware-configuration.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/2975466c-25c4-45bd-94e6-125d2f4b2c19";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/922A-1C77";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp9s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
24
history/20250327_163800/home.nix
Normal file
24
history/20250327_163800/home.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import "${home-manager}/nixos")
|
||||
];
|
||||
|
||||
home-manager.users.leo = {
|
||||
home.stateVersion = "24.11";
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font_family = "JetBrainsMono Nerd Font";
|
||||
font_size = 12.0;
|
||||
};
|
||||
shellIntegration = {
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
35
history/20250327_163800/vm.nix
Normal file
35
history/20250327_163800/vm.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
# Enable dconf (System Management Tool)
|
||||
programs.dconf.enable = true;
|
||||
|
||||
# Add user to libvirtd group
|
||||
users.users.leo.extraGroups = [ "libvirtd" ];
|
||||
|
||||
# Install necessary packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
virt-viewer
|
||||
spice spice-gtk
|
||||
spice-protocol
|
||||
win-virtio
|
||||
win-spice
|
||||
];
|
||||
|
||||
# Manage the virtualisation services
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
swtpm.enable = true;
|
||||
ovmf.enable = true;
|
||||
ovmf.packages = [ pkgs.OVMFFull.fd ];
|
||||
};
|
||||
};
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
||||
}
|
||||
27
history/20250327_163902/autostart.nix
Normal file
27
history/20250327_163902/autostart.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
systemd.user.services.ollama = {
|
||||
description = "Ollama Server Autostart";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.ollama}/bin/ollama serve";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# systemd.user.services.obs-studio = {
|
||||
# description = "OBS Studio Autostart mit Flags";
|
||||
# after = [ "graphical-session.target" ];
|
||||
# wantedBy = [ "default.target" ];
|
||||
# serviceConfig = {
|
||||
# Type = "simple";
|
||||
# ExecStart = "${pkgs.obs-studio}/bin/obs --startreplaybuffer --disable-shutdown-check";
|
||||
# Restart = "on-failure";
|
||||
# };
|
||||
# };
|
||||
|
||||
}
|
||||
14
history/20250327_163902/clean.nix
Normal file
14
history/20250327_163902/clean.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
#weekly update
|
||||
system.autoUpgrade.enable = true;
|
||||
system.autoUpgrade.dates = "weekly";
|
||||
|
||||
#auto cleanuo
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.dates = "daily";
|
||||
nix.gc.options = "--delete-older-than 10d";
|
||||
nix.settings.auto-optimise-store = true;
|
||||
|
||||
}
|
||||
176
history/20250327_163902/configuration.nix
Normal file
176
history/20250327_163902/configuration.nix
Normal file
@@ -0,0 +1,176 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./home.nix
|
||||
./vm.nix
|
||||
./clean.nix
|
||||
./autostart.nix
|
||||
];
|
||||
# Bootloader
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "nixos-leo";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "micro";
|
||||
VISUAL = "micro";
|
||||
};
|
||||
|
||||
services.xserver.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
services.xserver.xkb = {
|
||||
layout = "de";
|
||||
variant = "";
|
||||
};
|
||||
console.keyMap = "de";
|
||||
|
||||
services.printing.enable = true;
|
||||
|
||||
services.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
};
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
|
||||
|
||||
|
||||
users.users.leo = {
|
||||
isNormalUser = true;
|
||||
description = "leo";
|
||||
extraGroups = [ "networkmanager" "wheel" "video" ];
|
||||
packages = with pkgs; [
|
||||
kdePackages.kate
|
||||
pkgs.vesktop
|
||||
pkgs.brave
|
||||
pkgs.localsend
|
||||
pkgs.git
|
||||
pkgs.pciutils
|
||||
pkgs.spotify
|
||||
pkgs.prismlauncher
|
||||
pkgs.speedtest-cli
|
||||
pkgs.yazi
|
||||
zsh
|
||||
starship
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
programs.firefox.enable = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
micro
|
||||
nano
|
||||
btop
|
||||
pkgs.flatpak
|
||||
pkgs.unzip
|
||||
pkgs.zip
|
||||
pkgs.dig
|
||||
pkgs.fish
|
||||
pkgs.kitty
|
||||
pkgs.vscode
|
||||
pkgs.nodejs_23
|
||||
pkgs.jq
|
||||
pkgs.xclip
|
||||
pkgs.ffmpeg_6-full
|
||||
pkgs.hyprland
|
||||
pkgs.temurin-jre-bin-23
|
||||
appimage-run
|
||||
pkgs.screenfetch
|
||||
pkgs.nerd-fonts.jetbrains-mono
|
||||
pkgs.pinta
|
||||
pkgs.qbittorrent-enhanced
|
||||
pkgs.adwaita-icon-theme
|
||||
pkgs.streamdeck-ui
|
||||
pkgs.mangohud
|
||||
pkgs.gamemode
|
||||
pkgs.ollama-cuda
|
||||
pkgs.lmstudio
|
||||
pkgs.tmux
|
||||
pkgs.obs-studio
|
||||
pkgs.waydroid
|
||||
pkgs.waydroid-helper
|
||||
pkgs.putty
|
||||
];
|
||||
|
||||
environment.shells = with pkgs; [
|
||||
fish
|
||||
];
|
||||
|
||||
programs.bash.shellAliases = {
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
sshm = "/home/leo/Documents/Dev/ssh-manager/venv/bin/python /home/leo/Documents/Dev/ssh-manager/main.py";
|
||||
};
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
sshm = "/home/leo/Documents/Dev/ssh-manager/venv/bin/python /home/leo/Documents/Dev/ssh-manager/main.py";
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.waydroid.enable = true;
|
||||
|
||||
systemd.services.startsteam = {
|
||||
enable = true;
|
||||
description = "Starts Steam automatically in background at boot";
|
||||
serviceConfig = {
|
||||
ExecStart = "steam -nochatui -nofriendsui -silent";
|
||||
};
|
||||
};
|
||||
|
||||
programs.steam.enable = true;
|
||||
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
|
||||
}
|
||||
38
history/20250327_163902/hardware-configuration.nix
Normal file
38
history/20250327_163902/hardware-configuration.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/2975466c-25c4-45bd-94e6-125d2f4b2c19";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/922A-1C77";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp9s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
24
history/20250327_163902/home.nix
Normal file
24
history/20250327_163902/home.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import "${home-manager}/nixos")
|
||||
];
|
||||
|
||||
home-manager.users.leo = {
|
||||
home.stateVersion = "24.11";
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font_family = "JetBrainsMono Nerd Font";
|
||||
font_size = 12.0;
|
||||
};
|
||||
shellIntegration = {
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
35
history/20250327_163902/vm.nix
Normal file
35
history/20250327_163902/vm.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
# Enable dconf (System Management Tool)
|
||||
programs.dconf.enable = true;
|
||||
|
||||
# Add user to libvirtd group
|
||||
users.users.leo.extraGroups = [ "libvirtd" ];
|
||||
|
||||
# Install necessary packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
virt-viewer
|
||||
spice spice-gtk
|
||||
spice-protocol
|
||||
win-virtio
|
||||
win-spice
|
||||
];
|
||||
|
||||
# Manage the virtualisation services
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
swtpm.enable = true;
|
||||
ovmf.enable = true;
|
||||
ovmf.packages = [ pkgs.OVMFFull.fd ];
|
||||
};
|
||||
};
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
||||
}
|
||||
27
history/20250327_163920/autostart.nix
Normal file
27
history/20250327_163920/autostart.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
systemd.user.services.ollama = {
|
||||
description = "Ollama Server Autostart";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.ollama}/bin/ollama serve";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# systemd.user.services.obs-studio = {
|
||||
# description = "OBS Studio Autostart mit Flags";
|
||||
# after = [ "graphical-session.target" ];
|
||||
# wantedBy = [ "default.target" ];
|
||||
# serviceConfig = {
|
||||
# Type = "simple";
|
||||
# ExecStart = "${pkgs.obs-studio}/bin/obs --startreplaybuffer --disable-shutdown-check";
|
||||
# Restart = "on-failure";
|
||||
# };
|
||||
# };
|
||||
|
||||
}
|
||||
14
history/20250327_163920/clean.nix
Normal file
14
history/20250327_163920/clean.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
#weekly update
|
||||
system.autoUpgrade.enable = true;
|
||||
system.autoUpgrade.dates = "weekly";
|
||||
|
||||
#auto cleanuo
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.dates = "daily";
|
||||
nix.gc.options = "--delete-older-than 10d";
|
||||
nix.settings.auto-optimise-store = true;
|
||||
|
||||
}
|
||||
175
history/20250327_163920/configuration.nix
Normal file
175
history/20250327_163920/configuration.nix
Normal file
@@ -0,0 +1,175 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./home.nix
|
||||
./vm.nix
|
||||
./clean.nix
|
||||
./autostart.nix
|
||||
];
|
||||
# Bootloader
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "nixos-leo";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "micro";
|
||||
VISUAL = "micro";
|
||||
};
|
||||
|
||||
services.xserver.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
services.xserver.xkb = {
|
||||
layout = "de";
|
||||
variant = "";
|
||||
};
|
||||
console.keyMap = "de";
|
||||
|
||||
services.printing.enable = true;
|
||||
|
||||
services.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
};
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
|
||||
|
||||
|
||||
users.users.leo = {
|
||||
isNormalUser = true;
|
||||
description = "leo";
|
||||
extraGroups = [ "networkmanager" "wheel" "video" ];
|
||||
packages = with pkgs; [
|
||||
kdePackages.kate
|
||||
pkgs.vesktop
|
||||
pkgs.brave
|
||||
pkgs.localsend
|
||||
pkgs.git
|
||||
pkgs.pciutils
|
||||
pkgs.spotify
|
||||
pkgs.prismlauncher
|
||||
pkgs.speedtest-cli
|
||||
pkgs.yazi
|
||||
zsh
|
||||
starship
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
programs.firefox.enable = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
micro
|
||||
nano
|
||||
btop
|
||||
pkgs.flatpak
|
||||
pkgs.unzip
|
||||
pkgs.zip
|
||||
pkgs.dig
|
||||
pkgs.fish
|
||||
pkgs.kitty
|
||||
pkgs.vscode
|
||||
pkgs.nodejs_23
|
||||
pkgs.jq
|
||||
pkgs.xclip
|
||||
pkgs.ffmpeg_6-full
|
||||
pkgs.hyprland
|
||||
pkgs.temurin-jre-bin-23
|
||||
appimage-run
|
||||
pkgs.screenfetch
|
||||
pkgs.nerd-fonts.jetbrains-mono
|
||||
pkgs.pinta
|
||||
pkgs.qbittorrent-enhanced
|
||||
pkgs.adwaita-icon-theme
|
||||
pkgs.streamdeck-ui
|
||||
pkgs.mangohud
|
||||
pkgs.gamemode
|
||||
pkgs.ollama-cuda
|
||||
pkgs.lmstudio
|
||||
pkgs.tmux
|
||||
pkgs.obs-studio
|
||||
pkgs.waydroid
|
||||
pkgs.waydroid-helper
|
||||
pkgs.putty
|
||||
];
|
||||
|
||||
environment.shells = with pkgs; [
|
||||
fish
|
||||
];
|
||||
|
||||
programs.bash.shellAliases = {
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
sshm = "/home/leo/Documents/Dev/ssh-manager/venv/bin/python /home/leo/Documents/Dev/ssh-manager/main.py";
|
||||
};
|
||||
|
||||
programs.fish = {
|
||||
shellAliases = {
|
||||
sshm = "/home/leo/Documents/Dev/ssh-manager/venv/bin/python /home/leo/Documents/Dev/ssh-manager/main.py";
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.waydroid.enable = true;
|
||||
|
||||
systemd.services.startsteam = {
|
||||
enable = true;
|
||||
description = "Starts Steam automatically in background at boot";
|
||||
serviceConfig = {
|
||||
ExecStart = "steam -nochatui -nofriendsui -silent";
|
||||
};
|
||||
};
|
||||
|
||||
programs.steam.enable = true;
|
||||
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
|
||||
}
|
||||
38
history/20250327_163920/hardware-configuration.nix
Normal file
38
history/20250327_163920/hardware-configuration.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/2975466c-25c4-45bd-94e6-125d2f4b2c19";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/922A-1C77";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp9s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
24
history/20250327_163920/home.nix
Normal file
24
history/20250327_163920/home.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import "${home-manager}/nixos")
|
||||
];
|
||||
|
||||
home-manager.users.leo = {
|
||||
home.stateVersion = "24.11";
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font_family = "JetBrainsMono Nerd Font";
|
||||
font_size = 12.0;
|
||||
};
|
||||
shellIntegration = {
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
35
history/20250327_163920/vm.nix
Normal file
35
history/20250327_163920/vm.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
# Enable dconf (System Management Tool)
|
||||
programs.dconf.enable = true;
|
||||
|
||||
# Add user to libvirtd group
|
||||
users.users.leo.extraGroups = [ "libvirtd" ];
|
||||
|
||||
# Install necessary packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
virt-viewer
|
||||
spice spice-gtk
|
||||
spice-protocol
|
||||
win-virtio
|
||||
win-spice
|
||||
];
|
||||
|
||||
# Manage the virtualisation services
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
swtpm.enable = true;
|
||||
ovmf.enable = true;
|
||||
ovmf.packages = [ pkgs.OVMFFull.fd ];
|
||||
};
|
||||
};
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
||||
}
|
||||
27
history/20250328_064854/autostart.nix
Normal file
27
history/20250328_064854/autostart.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
systemd.user.services.ollama = {
|
||||
description = "Ollama Server Autostart";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.ollama}/bin/ollama serve";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# systemd.user.services.obs-studio = {
|
||||
# description = "OBS Studio Autostart mit Flags";
|
||||
# after = [ "graphical-session.target" ];
|
||||
# wantedBy = [ "default.target" ];
|
||||
# serviceConfig = {
|
||||
# Type = "simple";
|
||||
# ExecStart = "${pkgs.obs-studio}/bin/obs --startreplaybuffer --disable-shutdown-check";
|
||||
# Restart = "on-failure";
|
||||
# };
|
||||
# };
|
||||
|
||||
}
|
||||
14
history/20250328_064854/clean.nix
Normal file
14
history/20250328_064854/clean.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
#weekly update
|
||||
system.autoUpgrade.enable = true;
|
||||
system.autoUpgrade.dates = "weekly";
|
||||
|
||||
#auto cleanuo
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.dates = "daily";
|
||||
nix.gc.options = "--delete-older-than 10d";
|
||||
nix.settings.auto-optimise-store = true;
|
||||
|
||||
}
|
||||
175
history/20250328_064854/configuration.nix
Normal file
175
history/20250328_064854/configuration.nix
Normal file
@@ -0,0 +1,175 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./home.nix
|
||||
./vm.nix
|
||||
./clean.nix
|
||||
./autostart.nix
|
||||
];
|
||||
# Bootloader
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "nixos-leo";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "micro";
|
||||
VISUAL = "micro";
|
||||
};
|
||||
|
||||
services.xserver.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
services.xserver.xkb = {
|
||||
layout = "de";
|
||||
variant = "";
|
||||
};
|
||||
console.keyMap = "de";
|
||||
|
||||
services.printing.enable = true;
|
||||
|
||||
services.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
};
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
|
||||
|
||||
|
||||
users.users.leo = {
|
||||
isNormalUser = true;
|
||||
description = "leo";
|
||||
extraGroups = [ "networkmanager" "wheel" "video" ];
|
||||
packages = with pkgs; [
|
||||
kdePackages.kate
|
||||
pkgs.vesktop
|
||||
pkgs.brave
|
||||
pkgs.localsend
|
||||
pkgs.git
|
||||
pkgs.pciutils
|
||||
pkgs.spotify
|
||||
pkgs.prismlauncher
|
||||
pkgs.speedtest-cli
|
||||
pkgs.yazi
|
||||
zsh
|
||||
starship
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
programs.firefox.enable = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
micro
|
||||
nano
|
||||
btop
|
||||
pkgs.flatpak
|
||||
pkgs.unzip
|
||||
pkgs.zip
|
||||
pkgs.dig
|
||||
pkgs.fish
|
||||
pkgs.kitty
|
||||
pkgs.vscode
|
||||
pkgs.nodejs_23
|
||||
pkgs.jq
|
||||
pkgs.xclip
|
||||
pkgs.ffmpeg_6-full
|
||||
pkgs.hyprland
|
||||
pkgs.temurin-jre-bin-23
|
||||
appimage-run
|
||||
pkgs.screenfetch
|
||||
pkgs.nerd-fonts.jetbrains-mono
|
||||
pkgs.pinta
|
||||
pkgs.qbittorrent-enhanced
|
||||
pkgs.adwaita-icon-theme
|
||||
pkgs.streamdeck-ui
|
||||
pkgs.mangohud
|
||||
pkgs.gamemode
|
||||
pkgs.ollama-cuda
|
||||
pkgs.lmstudio
|
||||
pkgs.tmux
|
||||
pkgs.obs-studio
|
||||
pkgs.waydroid
|
||||
pkgs.waydroid-helper
|
||||
pkgs.putty
|
||||
];
|
||||
|
||||
environment.shells = with pkgs; [
|
||||
fish
|
||||
];
|
||||
|
||||
programs.bash.shellAliases = {
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
sshm = "/home/leo/Documents/Dev/ssh-manager/venv/bin/python3 /home/leo/Documents/Dev/ssh-manager/main.py";
|
||||
};
|
||||
|
||||
programs.fish = {
|
||||
shellAliases = {
|
||||
sshm = "/home/leo/Documents/Dev/ssh-manager/venv/bin/python3 /home/leo/Documents/Dev/ssh-manager/main.py";
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.waydroid.enable = true;
|
||||
|
||||
systemd.services.startsteam = {
|
||||
enable = true;
|
||||
description = "Starts Steam automatically in background at boot";
|
||||
serviceConfig = {
|
||||
ExecStart = "steam -nochatui -nofriendsui -silent";
|
||||
};
|
||||
};
|
||||
|
||||
programs.steam.enable = true;
|
||||
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
|
||||
}
|
||||
38
history/20250328_064854/hardware-configuration.nix
Normal file
38
history/20250328_064854/hardware-configuration.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/2975466c-25c4-45bd-94e6-125d2f4b2c19";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/922A-1C77";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp9s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
24
history/20250328_064854/home.nix
Normal file
24
history/20250328_064854/home.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import "${home-manager}/nixos")
|
||||
];
|
||||
|
||||
home-manager.users.leo = {
|
||||
home.stateVersion = "24.11";
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
font_family = "JetBrainsMono Nerd Font";
|
||||
font_size = 12.0;
|
||||
};
|
||||
shellIntegration = {
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
35
history/20250328_064854/vm.nix
Normal file
35
history/20250328_064854/vm.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
# Enable dconf (System Management Tool)
|
||||
programs.dconf.enable = true;
|
||||
|
||||
# Add user to libvirtd group
|
||||
users.users.leo.extraGroups = [ "libvirtd" ];
|
||||
|
||||
# Install necessary packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
virt-viewer
|
||||
spice spice-gtk
|
||||
spice-protocol
|
||||
win-virtio
|
||||
win-spice
|
||||
];
|
||||
|
||||
# Manage the virtualisation services
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
qemu = {
|
||||
swtpm.enable = true;
|
||||
ovmf.enable = true;
|
||||
ovmf.packages = [ pkgs.OVMFFull.fd ];
|
||||
};
|
||||
};
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
||||
}
|
||||
27
history/20250328_065129/autostart.nix
Normal file
27
history/20250328_065129/autostart.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
systemd.user.services.ollama = {
|
||||
description = "Ollama Server Autostart";
|
||||
after = [ "graphical-session.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.ollama}/bin/ollama serve";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
# systemd.user.services.obs-studio = {
|
||||
# description = "OBS Studio Autostart mit Flags";
|
||||
# after = [ "graphical-session.target" ];
|
||||
# wantedBy = [ "default.target" ];
|
||||
# serviceConfig = {
|
||||
# Type = "simple";
|
||||
# ExecStart = "${pkgs.obs-studio}/bin/obs --startreplaybuffer --disable-shutdown-check";
|
||||
# Restart = "on-failure";
|
||||
# };
|
||||
# };
|
||||
|
||||
}
|
||||
14
history/20250328_065129/clean.nix
Normal file
14
history/20250328_065129/clean.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
#weekly update
|
||||
system.autoUpgrade.enable = true;
|
||||
system.autoUpgrade.dates = "weekly";
|
||||
|
||||
#auto cleanuo
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.dates = "daily";
|
||||
nix.gc.options = "--delete-older-than 10d";
|
||||
nix.settings.auto-optimise-store = true;
|
||||
|
||||
}
|
||||
175
history/20250328_065129/configuration.nix
Normal file
175
history/20250328_065129/configuration.nix
Normal file
@@ -0,0 +1,175 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./home.nix
|
||||
./vm.nix
|
||||
./clean.nix
|
||||
./autostart.nix
|
||||
];
|
||||
# Bootloader
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "nixos-leo";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "micro";
|
||||
VISUAL = "micro";
|
||||
};
|
||||
|
||||
services.xserver.enable = true;
|
||||
services.displayManager.sddm.enable = true;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
services.xserver.xkb = {
|
||||
layout = "de";
|
||||
variant = "";
|
||||
};
|
||||
console.keyMap = "de";
|
||||
|
||||
services.printing.enable = true;
|
||||
|
||||
services.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
};
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
|
||||
|
||||
|
||||
users.users.leo = {
|
||||
isNormalUser = true;
|
||||
description = "leo";
|
||||
extraGroups = [ "networkmanager" "wheel" "video" ];
|
||||
packages = with pkgs; [
|
||||
kdePackages.kate
|
||||
pkgs.vesktop
|
||||
pkgs.brave
|
||||
pkgs.localsend
|
||||
pkgs.git
|
||||
pkgs.pciutils
|
||||
pkgs.spotify
|
||||
pkgs.prismlauncher
|
||||
pkgs.speedtest-cli
|
||||
pkgs.yazi
|
||||
zsh
|
||||
starship
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
programs.firefox.enable = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
micro
|
||||
nano
|
||||
btop
|
||||
pkgs.flatpak
|
||||
pkgs.unzip
|
||||
pkgs.zip
|
||||
pkgs.dig
|
||||
pkgs.fish
|
||||
pkgs.kitty
|
||||
pkgs.vscode
|
||||
pkgs.nodejs_23
|
||||
pkgs.jq
|
||||
pkgs.xclip
|
||||
pkgs.ffmpeg_6-full
|
||||
pkgs.hyprland
|
||||
pkgs.temurin-jre-bin-23
|
||||
appimage-run
|
||||
pkgs.screenfetch
|
||||
pkgs.nerd-fonts.jetbrains-mono
|
||||
pkgs.pinta
|
||||
pkgs.qbittorrent-enhanced
|
||||
pkgs.adwaita-icon-theme
|
||||
pkgs.streamdeck-ui
|
||||
pkgs.mangohud
|
||||
pkgs.gamemode
|
||||
pkgs.ollama-cuda
|
||||
pkgs.lmstudio
|
||||
pkgs.tmux
|
||||
pkgs.obs-studio
|
||||
pkgs.waydroid
|
||||
pkgs.waydroid-helper
|
||||
pkgs.putty
|
||||
];
|
||||
|
||||
environment.shells = with pkgs; [
|
||||
fish
|
||||
];
|
||||
|
||||
programs.bash.shellAliases = {
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
sshm = "/home/leo/Documents/Dev/ssh-manager/venv/bin/python3 /home/leo/Documents/Dev/ssh-manager/main.py";
|
||||
};
|
||||
|
||||
programs.fish = {
|
||||
shellAliases = {
|
||||
sshm = "/home/leo/Documents/Dev/ssh-manager/venv/bin/python3 /home/leo/Documents/Dev/ssh-manager/main.py";
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.waydroid.enable = true;
|
||||
|
||||
systemd.services.startsteam = {
|
||||
enable = true;
|
||||
description = "Starts Steam automatically in background at boot";
|
||||
serviceConfig = {
|
||||
ExecStart = "steam -nochatui -nofriendsui -silent";
|
||||
};
|
||||
};
|
||||
|
||||
programs.steam.enable = true;
|
||||
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
|
||||
}
|
||||
38
history/20250328_065129/hardware-configuration.nix
Normal file
38
history/20250328_065129/hardware-configuration.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/2975466c-25c4-45bd-94e6-125d2f4b2c19";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/922A-1C77";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp9s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user