Compare commits
3 Commits
d2db42180d
...
0c0455a262
Author | SHA1 | Date |
---|---|---|
Sven Vogel | 0c0455a262 | |
Sven Vogel | 6ef625239c | |
Sven Vogel | 8377a0b8b7 |
|
@ -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
|
||||||
|
@ -27,72 +27,18 @@ 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 = {
|
# use bash shell for other users
|
||||||
LC_ADDRESS = "de_DE.UTF-8";
|
environment.shells = with pkgs; [ bash ];
|
||||||
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
|
# Configure console keymap
|
||||||
|
console.keyMap = settings.system.ttykeymap;
|
||||||
|
|
||||||
programs.partition-manager.enable = true;
|
environment.systemPackages = settings.system.pkgs;
|
||||||
|
|
||||||
# use bash shell for other users
|
|
||||||
environment.shells = with pkgs; [ bash ];
|
|
||||||
|
|
||||||
# Configure console keymap
|
|
||||||
console.keyMap = "de";
|
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
|
||||||
# $ 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";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.desktopManager.plasma5.enable = true;
|
services.xserver.displayManager.sddm.wayland.enable = true;
|
||||||
# set wayland as default session
|
services.xserver.displayManager.defaultSession = "plasmawayland"; # set wayland as default session
|
||||||
services.xserver.displayManager.defaultSession = "plasmawayland";
|
|
||||||
|
# Enable the KDE Plasma Desktop Environment.
|
||||||
|
services.xserver.desktopManager.plasma5.enable = true;
|
||||||
|
|
||||||
# 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";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,9 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
let
|
||||||
|
settings = import ./../settings.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
environment.systemPackages = (with pkgs;
|
||||||
|
lib.optionals settings.dev.devbox [ devbox ]
|
||||||
|
);
|
||||||
|
}
|
|
@ -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 ];
|
||||||
}
|
}
|
||||||
|
|
34
settings.nix
34
settings.nix
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in New Issue