Compare commits

...

3 Commits

Author SHA1 Message Date
Sven Vogel 0c0455a262 completed cleanup of configuration.nix 2023-12-24 13:38:08 +01:00
Sven Vogel 6ef625239c moved locale to settings 2023-12-23 12:33:41 +01:00
Sven Vogel 8377a0b8b7 added android to dev 2023-12-23 12:13:43 +01:00
6 changed files with 78 additions and 75 deletions

View File

@ -5,16 +5,16 @@ in
{ {
imports = [ imports = [
./hardware-configuration.nix # Include the results of the hardware scan. ./hardware-configuration.nix # Include the results of the hardware scan.
./core # core system components
./system # system components such as kernel
./nix-settings.nix # nix related config ./nix-settings.nix # nix related config
./users ./users
./.luks-swap.nix ./.luks-swap.nix
./fonts.nix # system wide font settings ./fonts.nix # system wide font settings
./extra # extra packages ./extra # extra packages
./core # core system components
./dev # development stuff ./dev # development stuff
./games # games ./games # games
./hardware # hardware specific settings ./hardware # hardware specific settings
./system # system components such as kernel
]; ];
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
@ -28,71 +28,17 @@ in
hardware.opengl.enable = true; hardware.opengl.enable = true;
# Set your time zone. # Set your time zone.
time.timeZone = "Europe/Berlin"; time.timeZone = settings.system.timeZone;
# Select internationalisation properties. # Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = settings.system.defaultLocale;
i18n.extraLocaleSettings = settings.system.extraLocales;
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";
};
services.rpcbind.enable = true; # needed for NFS
programs.partition-manager.enable = true;
# use bash shell for other users # use bash shell for other users
environment.shells = with pkgs; [ bash ]; environment.shells = with pkgs; [ bash ];
# Configure console keymap # Configure console keymap
console.keyMap = "de"; console.keyMap = settings.system.ttykeymap;
# List packages installed in system profile. To search, run: environment.systemPackages = settings.system.pkgs;
# $ nix search wget
environment.systemPackages = (with pkgs; [
devbox
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
]);
environment.sessionVariables = rec {
# rust
CARGO_TERM_COLOR = "always";
RUST_BACKTRACE = "1";
# Wayland for electron Ozone
NIXOS_OZONE_WL = "1";
GTK_THEME = "Breeze-Dark";
};
} }

View File

@ -12,11 +12,13 @@ in
xkbVariant = ""; xkbVariant = "";
}; };
# Enable the KDE Plasma Desktop Environment. # SDDM
services.xserver.displayManager.sddm.enable = true; 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; services.xserver.desktopManager.plasma5.enable = true;
# set wayland as default session
services.xserver.displayManager.defaultSession = "plasmawayland";
# exclude packages from plasma5 # exclude packages from plasma5
environment.plasma5.excludePackages = settings.plasma5.excludePackages; environment.plasma5.excludePackages = settings.plasma5.excludePackages;
@ -26,5 +28,11 @@ in
environment.systemPackages = (with pkgs; [ environment.systemPackages = (with pkgs; [
filelight filelight
]) ]);
programs.partition-manager.enable = true;
environment.sessionVariables = rec {
GTK_THEME = "Breeze-Dark";
};
} }

11
dev/android.nix Normal file
View File

@ -0,0 +1,11 @@
{ pkgs, lib, config, ... }:
let
settings = import ./../settings.nix;
in
{
programs.adb.enable = true;
services.udev.packages = [
pkgs.android-udev-rules
];
}

9
dev/common.nix Normal file
View File

@ -0,0 +1,9 @@
{ pkgs, lib, config, ... }:
let
settings = import ./../settings.nix;
in
{
environment.systemPackages = (with pkgs;
lib.optionals settings.dev.devbox [ devbox ]
);
}

View File

@ -12,5 +12,6 @@ in
++ lib.optionals settings.dev.python3.enable [ ./python3.nix ] ++ lib.optionals settings.dev.python3.enable [ ./python3.nix ]
++ lib.optionals settings.virtualisation.waydroid [ ./waydroid.nix ] ++ lib.optionals settings.virtualisation.waydroid [ ./waydroid.nix ]
++ lib.optionals settings.virtualisation.wine.enable [ ./wine.nix ] ++ lib.optionals settings.virtualisation.wine.enable [ ./wine.nix ]
++ lib.optionals settings.dev.arduino.enable [ ./arduino.nix ]; ++ lib.optionals settings.dev.arduino.enable [ ./arduino.nix ]
++ lib.optionals settings.dev.android.enable [ ./android.nix ];
} }

View File

@ -2,6 +2,29 @@ with import <nixpkgs> {};
{ {
stateVersion = "23.11"; 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;
@ -21,7 +44,7 @@ with import <nixpkgs> {};
}; };
}; };
fish = true; fish = false;
plasma5 = { plasma5 = {
enable = true; enable = true;
@ -32,6 +55,7 @@ with import <nixpkgs> {};
oxygen oxygen
khelpcenter khelpcenter
kcolorpicker kcolorpicker
konsole
]; ];
}; };
@ -42,7 +66,7 @@ with import <nixpkgs> {};
}; };
qemu = { qemu = {
enable = true; enable = true;
virt-manager = true; virt-manager = false;
}; };
waydroid = false; waydroid = false;
wine = { wine = {
@ -52,6 +76,7 @@ with import <nixpkgs> {};
}; };
}; };
dev = { dev = {
devbox = true;
platformio = true; platformio = true;
latex = true; latex = true;
dotnet = false; dotnet = false;
@ -74,6 +99,9 @@ with import <nixpkgs> {};
enable = false; # enable arduino development platform enable = false; # enable arduino development platform
ide2 = true; # wether to use IDE 2.x or deprecated 1.x 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
@ -103,7 +131,7 @@ with import <nixpkgs> {};
networking = { networking = {
wireguard = true; # enable wireguard protocol wireguard = true; # enable wireguard protocol
hostname = "servostar-nixos-desktop"; hostname = "servostar-nixos-flex";
}; };
games = { games = {