completed cleanup of configuration.nix

This commit is contained in:
Sven Vogel 2023-12-24 13:38:08 +01:00
parent 6ef625239c
commit 0c0455a262
4 changed files with 31 additions and 47 deletions

View File

@ -34,52 +34,11 @@ in
i18n.defaultLocale = settings.system.defaultLocale; i18n.defaultLocale = settings.system.defaultLocale;
i18n.extraLocaleSettings = settings.system.extraLocales; i18n.extraLocaleSettings = settings.system.extraLocales;
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 = settings.system.ttykeymap; 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";
};
} }

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

@ -17,6 +17,12 @@ with import <nixpkgs> {};
LC_TELEPHONE = "de_DE.UTF-8"; LC_TELEPHONE = "de_DE.UTF-8";
LC_TIME = "de_DE.UTF-8"; LC_TIME = "de_DE.UTF-8";
}; };
pkgs = [
ffmpeg-full
openssl
imagemagick
];
}; };
hardware = { hardware = {
@ -49,6 +55,7 @@ with import <nixpkgs> {};
oxygen oxygen
khelpcenter khelpcenter
kcolorpicker kcolorpicker
konsole
]; ];
}; };
@ -69,6 +76,7 @@ with import <nixpkgs> {};
}; };
}; };
dev = { dev = {
devbox = true;
platformio = true; platformio = true;
latex = true; latex = true;
dotnet = false; dotnet = false;