Compare commits
No commits in common. "0c0455a2629df6fe38e90b5ebae9e3ac85e1feec" and "d2db42180d3eabe4ec1b23017fb8383382dee4aa" have entirely different histories.
0c0455a262
...
d2db42180d
|
@ -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,18 +27,72 @@ in
|
||||||
|
|
||||||
hardware.opengl.enable = true;
|
hardware.opengl.enable = true;
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = settings.system.timeZone;
|
time.timeZone = "Europe/Berlin";
|
||||||
|
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n.defaultLocale = settings.system.defaultLocale;
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
i18n.extraLocaleSettings = settings.system.extraLocales;
|
|
||||||
|
|
||||||
# use bash shell for other users
|
i18n.extraLocaleSettings = {
|
||||||
environment.shells = with pkgs; [ bash ];
|
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";
|
||||||
|
};
|
||||||
|
|
||||||
# Configure console keymap
|
services.rpcbind.enable = true; # needed for NFS
|
||||||
console.keyMap = settings.system.ttykeymap;
|
|
||||||
|
|
||||||
environment.systemPackages = settings.system.pkgs;
|
programs.partition-manager.enable = true;
|
||||||
|
|
||||||
|
# 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,13 +12,11 @@ in
|
||||||
xkbVariant = "";
|
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.
|
# Enable the KDE Plasma Desktop Environment.
|
||||||
services.xserver.desktopManager.plasma5.enable = true;
|
services.xserver.displayManager.sddm.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;
|
||||||
|
@ -28,11 +26,5 @@ in
|
||||||
|
|
||||||
environment.systemPackages = (with pkgs; [
|
environment.systemPackages = (with pkgs; [
|
||||||
filelight
|
filelight
|
||||||
]);
|
])
|
||||||
|
|
||||||
programs.partition-manager.enable = true;
|
|
||||||
|
|
||||||
environment.sessionVariables = rec {
|
|
||||||
GTK_THEME = "Breeze-Dark";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
{ pkgs, lib, config, ... }:
|
|
||||||
let
|
|
||||||
settings = import ./../settings.nix;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
programs.adb.enable = true;
|
|
||||||
|
|
||||||
services.udev.packages = [
|
|
||||||
pkgs.android-udev-rules
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
{ pkgs, lib, config, ... }:
|
|
||||||
let
|
|
||||||
settings = import ./../settings.nix;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
environment.systemPackages = (with pkgs;
|
|
||||||
lib.optionals settings.dev.devbox [ devbox ]
|
|
||||||
);
|
|
||||||
}
|
|
|
@ -12,6 +12,5 @@ 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,29 +2,6 @@ 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;
|
||||||
|
@ -44,7 +21,7 @@ with import <nixpkgs> {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
fish = false;
|
fish = true;
|
||||||
|
|
||||||
plasma5 = {
|
plasma5 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -55,7 +32,6 @@ with import <nixpkgs> {};
|
||||||
oxygen
|
oxygen
|
||||||
khelpcenter
|
khelpcenter
|
||||||
kcolorpicker
|
kcolorpicker
|
||||||
konsole
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -66,7 +42,7 @@ with import <nixpkgs> {};
|
||||||
};
|
};
|
||||||
qemu = {
|
qemu = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virt-manager = false;
|
virt-manager = true;
|
||||||
};
|
};
|
||||||
waydroid = false;
|
waydroid = false;
|
||||||
wine = {
|
wine = {
|
||||||
|
@ -76,7 +52,6 @@ with import <nixpkgs> {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
dev = {
|
dev = {
|
||||||
devbox = true;
|
|
||||||
platformio = true;
|
platformio = true;
|
||||||
latex = true;
|
latex = true;
|
||||||
dotnet = false;
|
dotnet = false;
|
||||||
|
@ -99,9 +74,6 @@ 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
|
||||||
|
@ -131,7 +103,7 @@ with import <nixpkgs> {};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
wireguard = true; # enable wireguard protocol
|
wireguard = true; # enable wireguard protocol
|
||||||
hostname = "servostar-nixos-flex";
|
hostname = "servostar-nixos-desktop";
|
||||||
};
|
};
|
||||||
|
|
||||||
games = {
|
games = {
|
||||||
|
|
Loading…
Reference in New Issue