Compare commits
18 Commits
dedicated-
...
main
Author | SHA1 | Date |
---|---|---|
Sven Vogel | 839f2c6991 | |
Sven Vogel | 0c0455a262 | |
Sven Vogel | 6ef625239c | |
Sven Vogel | 8377a0b8b7 | |
Sven Vogel | d2db42180d | |
Sven Vogel | a076aba69f | |
Sven Vogel | 690823d2cd | |
Sven Vogel | 665a1c0264 | |
Sven Vogel | 052ae88a78 | |
Sven Vogel | ab21bce48d | |
Sven Vogel | 26215eed7b | |
Sven Vogel | f7f02a2f26 | |
Sven Vogel | 9ff402fd12 | |
Sven Vogel | ee06cf9b12 | |
Sven Vogel | 157288dced | |
Sven Vogel | 2c08c0bd11 | |
Sven Vogel | 826823ccf4 | |
Sven Vogel | 601e8948d8 |
|
@ -1,228 +1,44 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz";
|
settings = import ./settings.nix;
|
||||||
# python packages to include with python3
|
|
||||||
python-packages = import ./python-packages.nix;
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
./hardware-configuration.nix # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./core # core system components
|
||||||
(import "${home-manager}/nixos")
|
./system # system components such as kernel
|
||||||
./nix-settings.nix
|
./nix-settings.nix # nix related config
|
||||||
./boot.nix
|
./users
|
||||||
./users/servostar/user.nix
|
./.luks-swap.nix
|
||||||
./.luks-swap.nix
|
./fonts.nix # system wide font settings
|
||||||
./fonts.nix
|
./extra # extra packages
|
||||||
./extra
|
./dev # development stuff
|
||||||
./core
|
./games # games
|
||||||
./dev
|
./hardware # hardware specific settings
|
||||||
./games
|
];
|
||||||
./hardware
|
|
||||||
];
|
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
# on your system were taken. It's perfectly fine and recommended to leave
|
# on your system were taken. It's perfectly fine and recommended to leave
|
||||||
# this value at the release version of the first install of this system.
|
# this value at the release version of the first install of this system.
|
||||||
# Before changing this value read the documentation for this option
|
# Before changing this value read the documentation for this option
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "23.11"; # Did you read the comment?
|
system.stateVersion = settings.stateVersion; # Did you read the comment?
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
hardware.opengl.enable = true;
|
||||||
hardware.opengl.enable = true;
|
|
||||||
# for rotation sensors
|
|
||||||
hardware.sensor.iio.enable = true;
|
|
||||||
# screen and keybord backlight
|
|
||||||
hardware.acpilight.enable = true;
|
|
||||||
|
|
||||||
networking.firewall.checkReversePath = false;
|
# Set your time zone.
|
||||||
networking.hostName = "servostar-nixos-flex"; # Define your hostname.
|
time.timeZone = settings.system.timeZone;
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
||||||
|
|
||||||
# Configure network proxy if necessary
|
# Select internationalisation properties.
|
||||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
i18n.defaultLocale = settings.system.defaultLocale;
|
||||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
i18n.extraLocaleSettings = settings.system.extraLocales;
|
||||||
|
|
||||||
# Enable networking
|
# use bash shell for other users
|
||||||
networking.networkmanager.enable = true;
|
environment.shells = with pkgs; [ bash ];
|
||||||
|
|
||||||
# Set your time zone.
|
# Configure console keymap
|
||||||
time.timeZone = "Europe/Berlin";
|
console.keyMap = settings.system.ttykeymap;
|
||||||
|
|
||||||
# Select internationalisation properties.
|
environment.systemPackages = settings.system.pkgs;
|
||||||
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";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
|
||||||
services.xserver.enable = true;
|
|
||||||
services.rpcbind.enable = true; # needed for NFS
|
|
||||||
|
|
||||||
# Enable the KDE Plasma Desktop Environment.
|
|
||||||
services.xserver.displayManager.sddm.enable = true;
|
|
||||||
services.xserver.desktopManager.plasma5.enable = true;
|
|
||||||
# set wayland as default session
|
|
||||||
services.xserver.displayManager.defaultSession = "plasmawayland";
|
|
||||||
|
|
||||||
programs.partition-manager.enable = true;
|
|
||||||
programs.fish.enable = true;
|
|
||||||
|
|
||||||
# use bash shell for other users
|
|
||||||
environment.shells = with pkgs; [ bash ];
|
|
||||||
|
|
||||||
programs.dconf.enable = true;
|
|
||||||
programs.xwayland.enable = true;
|
|
||||||
|
|
||||||
# exclude packages from plasma5
|
|
||||||
environment.plasma5.excludePackages = with pkgs.libsForQt5; [
|
|
||||||
elisa
|
|
||||||
oxygen
|
|
||||||
khelpcenter
|
|
||||||
kcolorpicker
|
|
||||||
];
|
|
||||||
|
|
||||||
# Configure keymap in X11
|
|
||||||
services.xserver = {
|
|
||||||
layout = "de";
|
|
||||||
xkbVariant = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Configure console keymap
|
|
||||||
console.keyMap = "de";
|
|
||||||
|
|
||||||
################################################
|
|
||||||
# __ ___ _ _ _ _ _
|
|
||||||
# \ \ / (_)_ __| |_ _ _ __ _| (_)___ __ _| |_(_) ___ _ __
|
|
||||||
# \ \ / /| | '__| __| | | |/ _` | | / __|/ _` | __| |/ _ \| '_ \
|
|
||||||
# \ V / | | | | |_| |_| | (_| | | \__ \ (_| | |_| | (_) | | | |
|
|
||||||
# \_/ |_|_| \__|\__,_|\__,_|_|_|___/\__,_|\__|_|\___/|_| |_|
|
|
||||||
#
|
|
||||||
# This sections enbales host virtualisation for:
|
|
||||||
# - KVM
|
|
||||||
# - Waydroid (android based on LineageOS)
|
|
||||||
# - Docker
|
|
||||||
################################################
|
|
||||||
|
|
||||||
# android container
|
|
||||||
virtualisation.waydroid.enable = true;
|
|
||||||
|
|
||||||
################################################
|
|
||||||
# ____ _ _
|
|
||||||
# | _ \(_)_ __ _____ _(_)_ __ ___
|
|
||||||
# | |_) | | '_ \ / _ \ \ /\ / / | '__/ _ \
|
|
||||||
# | __/| | |_) | __/\ V V /| | | | __/
|
|
||||||
# |_| |_| .__/ \___| \_/\_/ |_|_| \___|
|
|
||||||
# |_|
|
|
||||||
################################################
|
|
||||||
|
|
||||||
# Enable sound with pipewire.
|
|
||||||
sound.enable = true;
|
|
||||||
hardware.pulseaudio.enable = false;
|
|
||||||
security.rtkit.enable = true;
|
|
||||||
services.pipewire = {
|
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
# If you want to use JACK applications, uncomment this
|
|
||||||
#jack.enable = true;
|
|
||||||
|
|
||||||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
|
||||||
# no need to redefine it in your config for now)
|
|
||||||
#media-session.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
|
||||||
# services.xserver.libinput.enable = true;
|
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
|
||||||
# $ nix search wget
|
|
||||||
environment.systemPackages = (with pkgs; [
|
|
||||||
(python3.withPackages(python-packages))
|
|
||||||
|
|
||||||
fishPlugins.done # notifications for background process finished
|
|
||||||
fishPlugins.fzf-fish
|
|
||||||
fishPlugins.forgit
|
|
||||||
fzf
|
|
||||||
fishPlugins.grc
|
|
||||||
grc
|
|
||||||
fishPlugins.tide # asynchronous prompt for fish shell
|
|
||||||
fishPlugins.autopair
|
|
||||||
|
|
||||||
distrobox
|
|
||||||
|
|
||||||
go
|
|
||||||
|
|
||||||
nodejs
|
|
||||||
|
|
||||||
sass
|
|
||||||
|
|
||||||
devbox
|
|
||||||
filelight
|
|
||||||
ffmpeg-full
|
|
||||||
openssl
|
|
||||||
imagemagick
|
|
||||||
gnumake
|
|
||||||
cmake
|
|
||||||
|
|
||||||
# Clipboard support for Wayland Session
|
|
||||||
# used by Vim/Neovim and etc.
|
|
||||||
wl-clipboard
|
|
||||||
|
|
||||||
# GNU Compiler Collection and toolchain
|
|
||||||
glibc
|
|
||||||
gcc
|
|
||||||
gdb
|
|
||||||
stdenv.cc
|
|
||||||
stdenv.cc.libc
|
|
||||||
stdenv.cc.libc_dev
|
|
||||||
|
|
||||||
pkg-config
|
|
||||||
fontconfig
|
|
||||||
|
|
||||||
# SCSI driver
|
|
||||||
sg3_utils
|
|
||||||
|
|
||||||
wineWowPackages.stable
|
|
||||||
winetricks
|
|
||||||
]);
|
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
|
||||||
# started in user sessions.
|
|
||||||
# programs.mtr.enable = true;
|
|
||||||
# programs.gnupg.agent = {
|
|
||||||
# enable = true;
|
|
||||||
# enableSSHSupport = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
# List services that you want to enable:
|
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
|
||||||
# services.openssh.enable = true;
|
|
||||||
|
|
||||||
# Or disable the firewall altogether.
|
|
||||||
# networking.firewall.enable = false;
|
|
||||||
|
|
||||||
environment.sessionVariables = rec {
|
|
||||||
# rust
|
|
||||||
CARGO_TERM_COLOR = "always";
|
|
||||||
RUST_BACKTRACE = "1";
|
|
||||||
|
|
||||||
# Wayland for electron Ozone
|
|
||||||
NIXOS_OZONE_WL = "1";
|
|
||||||
|
|
||||||
GTK_THEME = "Breeze-Dark";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,8 +3,11 @@ let
|
||||||
settings = import ./../settings.nix;
|
settings = import ./../settings.nix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = lib.optionals settings.printing.enable [ ./printing.nix ]
|
imports = [ ./fonts.nix ]
|
||||||
|
++ lib.optionals settings.fish [ ./fish.nix ]
|
||||||
|
++ lib.optionals settings.printing.enable [ ./printing.nix ]
|
||||||
++ lib.optionals settings.xdg.enable [ ./xdg.nix ]
|
++ lib.optionals settings.xdg.enable [ ./xdg.nix ]
|
||||||
++ lib.optionals settings.java [ ./java.nix ]
|
++ lib.optionals settings.java [ ./java.nix ]
|
||||||
++ lib.optionals settings.dotnet [ ./dotnet.nix ];
|
++ lib.optionals settings.dotnet [ ./dotnet.nix ]
|
||||||
|
++ lib.optionals settings.plasma5.enable [ ./plasma5.nix ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
let
|
||||||
|
settings = import ./../settings.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
programs.fish.enable = true;
|
||||||
|
|
||||||
|
environment.systemPackages = (with pkgs; [
|
||||||
|
fishPlugins.done # notifications for background process finished
|
||||||
|
fishPlugins.fzf-fish
|
||||||
|
fishPlugins.forgit
|
||||||
|
fzf
|
||||||
|
fishPlugins.grc
|
||||||
|
grc
|
||||||
|
fishPlugins.tide # asynchronous prompt for fish shell
|
||||||
|
fishPlugins.autopair
|
||||||
|
]);
|
||||||
|
}
|
|
@ -0,0 +1,38 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
let
|
||||||
|
settings = import ./../settings.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
# Enable the X11 windowing system.
|
||||||
|
services.xserver.enable = true;
|
||||||
|
|
||||||
|
# Configure keymap in X11
|
||||||
|
services.xserver = {
|
||||||
|
layout = "de";
|
||||||
|
xkbVariant = "";
|
||||||
|
};
|
||||||
|
|
||||||
|
# SDDM
|
||||||
|
services.xserver.displayManager.sddm.enable = true;
|
||||||
|
services.xserver.displayManager.sddm.wayland.enable = true;
|
||||||
|
services.xserver.displayManager.defaultSession = "plasmawayland"; # set wayland as default session
|
||||||
|
|
||||||
|
# Enable the KDE Plasma Desktop Environment.
|
||||||
|
services.xserver.desktopManager.plasma5.enable = true;
|
||||||
|
|
||||||
|
# exclude packages from plasma5
|
||||||
|
environment.plasma5.excludePackages = settings.plasma5.excludePackages;
|
||||||
|
|
||||||
|
programs.dconf.enable = settings.plasma5.dconf;
|
||||||
|
programs.xwayland.enable = settings.plasma5.xwayland;
|
||||||
|
|
||||||
|
environment.systemPackages = (with pkgs; [
|
||||||
|
filelight
|
||||||
|
]);
|
||||||
|
|
||||||
|
programs.partition-manager.enable = true;
|
||||||
|
|
||||||
|
environment.sessionVariables = rec {
|
||||||
|
GTK_THEME = "Breeze-Dark";
|
||||||
|
};
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
let
|
||||||
|
settings = import ./../settings.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
programs.adb.enable = true;
|
||||||
|
|
||||||
|
services.udev.packages = [
|
||||||
|
pkgs.android-udev-rules
|
||||||
|
];
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
let
|
||||||
|
settings = import ./../settings.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkMerge [
|
||||||
|
# Arduino IDE 1.x
|
||||||
|
(lib.mkIf (!settings.dev.arduino.ide2) {
|
||||||
|
environment.systemPackages = (with pkgs; [
|
||||||
|
arduino
|
||||||
|
]);
|
||||||
|
})
|
||||||
|
|
||||||
|
# Arduino IDE 2.x
|
||||||
|
(lib.mkIf settings.dev.arduino.ide2 {
|
||||||
|
environment.systemPackages = (with pkgs; [
|
||||||
|
arduino-ide
|
||||||
|
]);
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
let
|
||||||
|
settings = import ./../settings.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
environment.systemPackages = (with pkgs;
|
||||||
|
lib.optionals settings.dev.devbox [ devbox ]
|
||||||
|
);
|
||||||
|
}
|
|
@ -8,5 +8,10 @@ in
|
||||||
++ lib.optionals settings.virtualisation.qemu.enable [ ./qemu.nix ]
|
++ lib.optionals settings.virtualisation.qemu.enable [ ./qemu.nix ]
|
||||||
++ lib.optionals settings.dev.platformio [ ./platformio.nix ]
|
++ lib.optionals settings.dev.platformio [ ./platformio.nix ]
|
||||||
++ lib.optionals settings.dev.latex [ ./latex.nix ]
|
++ lib.optionals settings.dev.latex [ ./latex.nix ]
|
||||||
++ lib.optionals settings.dev.dotnet [ ./dotnet.nix ];
|
++ lib.optionals settings.dev.dotnet [ ./dotnet.nix ]
|
||||||
|
++ lib.optionals settings.dev.python3.enable [ ./python3.nix ]
|
||||||
|
++ lib.optionals settings.virtualisation.waydroid [ ./waydroid.nix ]
|
||||||
|
++ lib.optionals settings.virtualisation.wine.enable [ ./wine.nix ]
|
||||||
|
++ lib.optionals settings.dev.arduino.enable [ ./arduino.nix ]
|
||||||
|
++ lib.optionals settings.dev.android.enable [ ./android.nix ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
{ pkgs, config, lib, ... }:
|
||||||
|
let
|
||||||
|
settings = import ./../settings.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
(python3.withPackages(settings.dev.python3.packages))
|
||||||
|
];
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
{ pkgs, config, ... }: {
|
||||||
|
# android container
|
||||||
|
virtualisation.waydroid.enable = true;
|
||||||
|
}
|
|
@ -0,0 +1,31 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
let
|
||||||
|
settings = import ./../settings.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkMerge [
|
||||||
|
# optionally enable native wine for wayland
|
||||||
|
(lib.mkIf settings.virtualisation.wine.wayland {
|
||||||
|
environment.systemPackages = (with pkgs; [
|
||||||
|
# native wayland support (unstable)
|
||||||
|
wineWowPackages.waylandFull
|
||||||
|
]);
|
||||||
|
})
|
||||||
|
|
||||||
|
# if wayland is off, use package for Xorg
|
||||||
|
(lib.mkIf (!settings.virtualisation.wine.wayland) {
|
||||||
|
environment.systemPackages = (with pkgs; [
|
||||||
|
# support both 32- and 64-bit applications
|
||||||
|
wineWowPackages.stagingFull
|
||||||
|
]);
|
||||||
|
})
|
||||||
|
|
||||||
|
# winetricks
|
||||||
|
(lib.mkIf settings.virtualisation.wine.winetricks {
|
||||||
|
environment.systemPackages = (with pkgs; [
|
||||||
|
# winetricks (works for all versions of wine)
|
||||||
|
winetricks
|
||||||
|
]);
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
settings = import ./../settings.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
hardware.bluetooth.enable = settings.hardware.bluetooth;
|
||||||
|
|
||||||
|
# for rotation sensors
|
||||||
|
hardware.sensor.iio.enable = settings.hardware.iio;
|
||||||
|
# screen and keybord backlight
|
||||||
|
hardware.acpilight.enable = settings.hardware.acpilight;
|
||||||
|
}
|
|
@ -4,8 +4,8 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Optionally import modules for specific hardware
|
# Optionally import modules for specific hardware
|
||||||
imports =
|
imports = [ ./common.nix ]
|
||||||
lib.optionals settings.hardware.amdgpu [ ./amdgpu.nix ]
|
++ lib.optionals settings.hardware.amdgpu [ ./amdgpu.nix ]
|
||||||
++ lib.optionals settings.hardware.intelgpu [ ./intelgpu.nix ]
|
++ lib.optionals settings.hardware.intelgpu [ ./intelgpu.nix ]
|
||||||
++ lib.optionals settings.hardware.nvidiagpu [ ./nvidiagpu.nix ];
|
++ lib.optionals settings.hardware.nvidiagpu [ ./nvidiagpu.nix ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,7 @@ case "$choice" in
|
||||||
cp -rv *.nix /etc/nixos/
|
cp -rv *.nix /etc/nixos/
|
||||||
cp -rv games /etc/nixos/
|
cp -rv games /etc/nixos/
|
||||||
cp -rv hardware /etc/nixos/
|
cp -rv hardware /etc/nixos/
|
||||||
|
cp -rv system /etc/nixos/
|
||||||
;;
|
;;
|
||||||
n|N )
|
n|N )
|
||||||
echo "aborting..."
|
echo "aborting..."
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
ps: with ps;
|
|
||||||
[
|
|
||||||
pandas
|
|
||||||
requests
|
|
||||||
pygments
|
|
||||||
tkinter
|
|
||||||
numpy
|
|
||||||
setuptools
|
|
||||||
youtube-dl
|
|
||||||
pip
|
|
||||||
setuptools
|
|
||||||
ipykernel
|
|
||||||
scipy
|
|
||||||
]
|
|
92
settings.nix
92
settings.nix
|
@ -1,10 +1,40 @@
|
||||||
with import <nixpkgs> {}; {
|
with import <nixpkgs> {};
|
||||||
|
{
|
||||||
|
stateVersion = "23.11";
|
||||||
|
|
||||||
|
system = {
|
||||||
|
ttykeymap = "de";
|
||||||
|
timeZone = "Europe/Berlin";
|
||||||
|
defaultLocale = "en_US.UTF-8";
|
||||||
|
extraLocales = {
|
||||||
|
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 = "en_US.UTF-8";
|
||||||
|
LC_PAPER = "de_DE.UTF-8";
|
||||||
|
LC_TELEPHONE = "de_DE.UTF-8";
|
||||||
|
LC_TIME = "de_DE.UTF-8";
|
||||||
|
};
|
||||||
|
|
||||||
|
pkgs = [
|
||||||
|
ffmpeg-full
|
||||||
|
openssl
|
||||||
|
imagemagick
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
# support for GPUs
|
# support for GPUs
|
||||||
amdgpu = true;
|
amdgpu = true;
|
||||||
intelgpu = false;
|
intelgpu = false;
|
||||||
nvidiagpu = false;
|
nvidiagpu = false;
|
||||||
|
|
||||||
|
bluetooth = true;
|
||||||
|
acpilight = false;
|
||||||
|
iio = true;
|
||||||
|
|
||||||
# support for yubikey and additional software
|
# support for yubikey and additional software
|
||||||
yubikey = {
|
yubikey = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -14,6 +44,21 @@ with import <nixpkgs> {}; {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fish = false;
|
||||||
|
|
||||||
|
plasma5 = {
|
||||||
|
enable = true;
|
||||||
|
dconf = true;
|
||||||
|
xwayland = true;
|
||||||
|
excludePackages = with pkgs.libsForQt5; [
|
||||||
|
elisa
|
||||||
|
oxygen
|
||||||
|
khelpcenter
|
||||||
|
kcolorpicker
|
||||||
|
konsole
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
docker-rootless = {
|
docker-rootless = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -21,14 +66,42 @@ with import <nixpkgs> {}; {
|
||||||
};
|
};
|
||||||
qemu = {
|
qemu = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virt-manager = true;
|
virt-manager = false;
|
||||||
|
};
|
||||||
|
waydroid = false;
|
||||||
|
wine = {
|
||||||
|
enable = true;
|
||||||
|
wayland = false;
|
||||||
|
winetricks = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
dev = {
|
dev = {
|
||||||
|
devbox = true;
|
||||||
platformio = true;
|
platformio = true;
|
||||||
latex = true;
|
latex = true;
|
||||||
dotnet = false;
|
dotnet = false;
|
||||||
|
python3 = {
|
||||||
|
enable = true;
|
||||||
|
packages = ps: with ps; [
|
||||||
|
pandas
|
||||||
|
requests
|
||||||
|
pygments
|
||||||
|
tkinter
|
||||||
|
numpy
|
||||||
|
setuptools
|
||||||
|
youtube-dl
|
||||||
|
pip
|
||||||
|
ipykernel
|
||||||
|
scipy
|
||||||
|
];
|
||||||
|
};
|
||||||
|
arduino = {
|
||||||
|
enable = false; # enable arduino development platform
|
||||||
|
ide2 = true; # wether to use IDE 2.x or deprecated 1.x
|
||||||
|
};
|
||||||
|
android = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
lsp = {
|
lsp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# various language server
|
# various language server
|
||||||
|
@ -58,10 +131,23 @@ with import <nixpkgs> {}; {
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
wireguard = true; # enable wireguard protocol
|
wireguard = true; # enable wireguard protocol
|
||||||
|
hostname = "servostar-nixos-flex";
|
||||||
};
|
};
|
||||||
|
|
||||||
games = {
|
games = {
|
||||||
prismlauncher = true;
|
prismlauncher = true;
|
||||||
steam = true;
|
steam = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sound = {
|
||||||
|
pipewire = {
|
||||||
|
enable = true;
|
||||||
|
alsa = true;
|
||||||
|
pulse = true;
|
||||||
|
jack = true;
|
||||||
|
};
|
||||||
|
pulseaudio = {
|
||||||
|
enable = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
let
|
||||||
|
settings = import ./../settings.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./grub.nix
|
||||||
|
./kernel.nix
|
||||||
|
./networking.nix
|
||||||
|
] ++ lib.optionals settings.sound.pipewire.enable [ ./pipewire.nix ]
|
||||||
|
++ lib.optionals settings.sound.pulseaudio.enable [ ./pulseaudio.nix ];
|
||||||
|
}
|
|
@ -27,21 +27,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
|
|
||||||
# extra enabled kernel modules
|
|
||||||
boot.kernelModules = [
|
|
||||||
"sg" # for generic SCSI devices such as /dev/sg0
|
|
||||||
];
|
|
||||||
|
|
||||||
# Kernel parameter on boot
|
|
||||||
boot.kernelParams = [
|
|
||||||
"quiet"
|
|
||||||
"splash"
|
|
||||||
"psi=1"
|
|
||||||
"boot_delay=0"
|
|
||||||
];
|
|
||||||
|
|
||||||
# Setup keyfile
|
# Setup keyfile
|
||||||
boot.initrd.secrets = {
|
boot.initrd.secrets = {
|
||||||
"/crypto_keyfile.bin" = null;
|
"/crypto_keyfile.bin" = null;
|
|
@ -0,0 +1,20 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
|
# extra enabled kernel modules
|
||||||
|
boot.kernelModules = [
|
||||||
|
"sg" # for generic SCSI devices such as /dev/sg0
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.consoleLogLevel = 0;
|
||||||
|
|
||||||
|
# Kernel parameter on boot
|
||||||
|
boot.kernelParams = [
|
||||||
|
"quiet"
|
||||||
|
"udev.log_level=3"
|
||||||
|
"splash"
|
||||||
|
"psi=1"
|
||||||
|
"boot_delay=0"
|
||||||
|
];
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
settings = import ./../settings.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
networking.firewall.checkReversePath = false;
|
||||||
|
networking.hostName = settings.networking.hostname; # Define your hostname.
|
||||||
|
|
||||||
|
# Configure network proxy if necessary
|
||||||
|
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||||
|
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||||
|
|
||||||
|
# Enable networking
|
||||||
|
networking.networkmanager.enable = true;
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
settings = import ./../settings.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
# Remove sound.enable or set it to false if you had it set previously, as sound.enable is only meant for ALSA-based configurations
|
||||||
|
sound.enable = false;
|
||||||
|
|
||||||
|
# rtkit is optional but recommended
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
|
services.pipewire = {
|
||||||
|
enable = settings.sound.pipewire.enable;
|
||||||
|
audio.enable = settings.sound.pipewire.enable;
|
||||||
|
pulse.enable = settings.sound.pipewire.pulse;
|
||||||
|
jack.enable = settings.sound.pipewire.jack;
|
||||||
|
alsa = {
|
||||||
|
enable = settings.sound.pipewire.alsa;
|
||||||
|
support32Bit = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
settings = import ./../settings.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
hardware.pulseaudio.enable = true;
|
||||||
|
hardware.pulseaudio.support32Bit = true; ## If compatibility with 32-bit applications is desired.
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
let
|
||||||
|
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
(import "${home-manager}/nixos")
|
||||||
|
./servostar/user.nix
|
||||||
|
];
|
||||||
|
}
|
|
@ -9,6 +9,8 @@
|
||||||
#
|
#
|
||||||
# Configuration for user servostar
|
# Configuration for user servostar
|
||||||
|
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with passwd.
|
# Define a user account. Don't forget to set a password with passwd.
|
||||||
users.users.servostar = {
|
users.users.servostar = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
@ -23,9 +25,10 @@
|
||||||
"uucp"
|
"uucp"
|
||||||
"plugdev"
|
"plugdev"
|
||||||
"docker"
|
"docker"
|
||||||
|
"adbusers"
|
||||||
];
|
];
|
||||||
# use fish
|
|
||||||
shell = pkgs.fish;
|
shell = pkgs.zsh;
|
||||||
|
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
# user packages
|
# user packages
|
||||||
|
@ -107,6 +110,14 @@
|
||||||
xournalpp
|
xournalpp
|
||||||
|
|
||||||
jetbrains-toolbox
|
jetbrains-toolbox
|
||||||
|
|
||||||
|
# Clipboard support for Wayland Session
|
||||||
|
# used by Vim/Neovim and etc.
|
||||||
|
wl-clipboard
|
||||||
|
|
||||||
|
chroma # general purpose syntax highlighter (for ohmyzsh/colorize)
|
||||||
|
fzf
|
||||||
|
thefuck
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -184,9 +195,34 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
shellAliases = { };
|
||||||
|
oh-my-zsh = {
|
||||||
|
enable = true;
|
||||||
|
plugins = [
|
||||||
|
"git"
|
||||||
|
"thefuck"
|
||||||
|
"colored-man-pages"
|
||||||
|
"colorize"
|
||||||
|
"command-not-found"
|
||||||
|
"docker"
|
||||||
|
"docker-compose"
|
||||||
|
"fzf"
|
||||||
|
];
|
||||||
|
theme = "robbyrussell";
|
||||||
|
};
|
||||||
|
enableAutosuggestions = true;
|
||||||
|
syntaxHighlighting = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
autocd = true;
|
||||||
|
defaultKeymap = "emacs";
|
||||||
|
};
|
||||||
|
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableZshIntegration = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.eza = {
|
programs.eza = {
|
||||||
|
|
Loading…
Reference in New Issue