Separated Kde-Plasma from other configs. Started work on Hyprland config!
This commit is contained in:
@ -22,11 +22,6 @@
|
|||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
#Moved to flake.nix
|
|
||||||
#./packages.nix
|
|
||||||
#./firefox.nix
|
|
||||||
#./zsh.nix
|
|
||||||
#./lockscreen.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
@ -83,21 +78,6 @@
|
|||||||
LC_TIME = "de_DE.UTF-8";
|
LC_TIME = "de_DE.UTF-8";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
|
||||||
# You can disable this if you're only using the Wayland session.
|
|
||||||
services.xserver.enable = true;
|
|
||||||
|
|
||||||
# Enable the KDE Plasma Desktop Environment.
|
|
||||||
services.displayManager.sddm.enable = true;
|
|
||||||
services.desktopManager.plasma6 = {
|
|
||||||
enable = true;
|
|
||||||
#Wallpaper options isnt available anymore in Plasma6
|
|
||||||
#wallpaper = {
|
|
||||||
# mode = "scale";
|
|
||||||
# image = "/etc/nixos/other/wallpaper.png";
|
|
||||||
#};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.ollama = {
|
services.ollama = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# Optional: load models on startup
|
# Optional: load models on startup
|
||||||
@ -108,16 +88,10 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.plocate;
|
package = pkgs.plocate;
|
||||||
#To get rid of warning
|
#To get rid of warning
|
||||||
#Depircated:
|
#Depricated:
|
||||||
#localuser = null;
|
#localuser = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configure keymap in X11
|
|
||||||
services.xserver.xkb = {
|
|
||||||
layout = "de";
|
|
||||||
variant = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
|
|
||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
@ -133,21 +107,21 @@
|
|||||||
# Enable CUPS to print documents.
|
# Enable CUPS to print documents.
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
|
|
||||||
# Enable sound with pipewire.
|
# # Enable sound with pipewire.
|
||||||
services.pulseaudio.enable = false;
|
# services.pulseaudio.enable = false;
|
||||||
security.rtkit.enable = true;
|
# security.rtkit.enable = true;
|
||||||
services.pipewire = {
|
# services.pipewire = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
alsa.enable = true;
|
# alsa.enable = true;
|
||||||
alsa.support32Bit = true;
|
# alsa.support32Bit = true;
|
||||||
pulse.enable = true;
|
# pulse.enable = true;
|
||||||
# If you want to use JACK applications, uncomment this
|
# # If you want to use JACK applications, uncomment this
|
||||||
#jack.enable = true;
|
# #jack.enable = true;
|
||||||
|
#
|
||||||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
# # 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)
|
# # no need to redefine it in your config for now)
|
||||||
#media-session.enable = true;
|
# #media-session.enable = true;
|
||||||
};
|
# };
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
# Enable touchpad support (enabled default in most desktopManager).
|
||||||
# services.xserver.libinput.enable = true;
|
# services.xserver.libinput.enable = true;
|
||||||
@ -165,15 +139,6 @@
|
|||||||
#So no user in the group Wheel has to input the password in order to use sudo
|
#So no user in the group Wheel has to input the password in order to use sudo
|
||||||
security.sudo.wheelNeedsPassword = false;
|
security.sudo.wheelNeedsPassword = false;
|
||||||
|
|
||||||
#theme-reminder uses a definitive /home/cookiez path!!!
|
|
||||||
system.activationScripts.script.text = ''
|
|
||||||
source /etc/nixos/other/colors.sh
|
|
||||||
source /etc/nixos/other/pfp.sh
|
|
||||||
|
|
||||||
source /etc/nixos/other/theme-reminder.sh
|
|
||||||
'';
|
|
||||||
|
|
||||||
|
|
||||||
# #Install firefox.
|
# #Install firefox.
|
||||||
#programs.firefox.enable = true;
|
#programs.firefox.enable = true;
|
||||||
#Enabled in a separate firefox.nix
|
#Enabled in a separate firefox.nix
|
||||||
@ -187,8 +152,6 @@
|
|||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
programs.steam.enable = true;
|
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
# programs.mtr.enable = true;
|
# programs.mtr.enable = true;
|
||||||
|
|||||||
@ -68,10 +68,10 @@
|
|||||||
./configuration.nix
|
./configuration.nix
|
||||||
./firefox.nix
|
./firefox.nix
|
||||||
./zsh.nix
|
./zsh.nix
|
||||||
./autostart.nix
|
#./kde-plasma.nix
|
||||||
#./neovim.nix
|
#./neovim.nix
|
||||||
|
./hyprland.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
./lockscreen.nix
|
|
||||||
grub2-themes.nixosModules.default
|
grub2-themes.nixosModules.default
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
|
|||||||
24
home.nix
24
home.nix
@ -103,4 +103,28 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
wayland.windowManager.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
xwayland.enable = true;
|
||||||
|
|
||||||
|
extraConfig =
|
||||||
|
''
|
||||||
|
input {
|
||||||
|
kb_layout = de
|
||||||
|
kb_variant =
|
||||||
|
kb_model =
|
||||||
|
kb_rules =
|
||||||
|
# kb_options = caps:Super_L
|
||||||
|
follow_mouse = 1
|
||||||
|
accel_profile = flat
|
||||||
|
force_no_accel = true
|
||||||
|
touchpad {
|
||||||
|
natural_scroll = no
|
||||||
|
}
|
||||||
|
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
22
hyprland.nix
22
hyprland.nix
@ -20,18 +20,18 @@
|
|||||||
# xwayland.enable = true;
|
# xwayland.enable = true;
|
||||||
#};
|
#};
|
||||||
|
|
||||||
#xdg.portal = {
|
xdg.portal = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||||
#};
|
};
|
||||||
|
|
||||||
#sound.enable = true;
|
#sound.enable = true;
|
||||||
#security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
#services.pipewire = {
|
services.pipewire = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# alsa.enable = true;
|
alsa.enable = true;
|
||||||
#alsa.support3Bbit = true;
|
#alsa.support3Bbit = true;
|
||||||
# pulse.enable = true;
|
pulse.enable = true;
|
||||||
# jack.enable = true;
|
jack.enable = true;
|
||||||
#}
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
62
kde-plasma.nix
Normal file
62
kde-plasma.nix
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
{config, pkgs, ...}:
|
||||||
|
|
||||||
|
let
|
||||||
|
# Define the custom background package with the correct relative path
|
||||||
|
background-package = pkgs.stdenvNoCC.mkDerivation {
|
||||||
|
name = "background-image";
|
||||||
|
src = ./other/wallpaper.png; # Place wallpaper.jpg in the same directory as this config file
|
||||||
|
dontUnpack = true;
|
||||||
|
installPhase = ''
|
||||||
|
cp $src $out
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[
|
||||||
|
#Example:
|
||||||
|
#./hardware-configuration.nix
|
||||||
|
./autostart.nix
|
||||||
|
#Moved Back to flake until plasma theme configuration is done!
|
||||||
|
#./zsh.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
# Enable the X11 windowing system.
|
||||||
|
# You can disable this if you're only using the Wayland session.
|
||||||
|
services.xserver.enable = true;
|
||||||
|
|
||||||
|
# Configure keymap in X11
|
||||||
|
services.xserver.xkb = {
|
||||||
|
layout = "de";
|
||||||
|
variant = "";
|
||||||
|
};
|
||||||
|
|
||||||
|
#theme-reminder uses a definitive /home/cookiez path!!!
|
||||||
|
system.activationScripts.script.text = ''
|
||||||
|
source /etc/nixos/other/colors.sh
|
||||||
|
source /etc/nixos/other/pfp.sh
|
||||||
|
|
||||||
|
source /etc/nixos/other/theme-reminder.sh
|
||||||
|
'';
|
||||||
|
|
||||||
|
services.displayManager.sddm = {
|
||||||
|
enable = true;
|
||||||
|
theme = "breeze";
|
||||||
|
wayland.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable the KDE Plasma Desktop Environment.
|
||||||
|
services.desktopManager.plasma6.enable = true;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
(pkgs.writeTextDir "share/sddm/themes/breeze/theme.conf.user" ''
|
||||||
|
[General]
|
||||||
|
background = "${background-package}"
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
programs.steam.enable = true;
|
||||||
|
}
|
||||||
|
|
||||||
@ -1,29 +0,0 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
# Define the custom background package with the correct relative path
|
|
||||||
background-package = pkgs.stdenvNoCC.mkDerivation {
|
|
||||||
name = "background-image";
|
|
||||||
src = ./other/wallpaper.png; # Place wallpaper.jpg in the same directory as this config file
|
|
||||||
dontUnpack = true;
|
|
||||||
installPhase = ''
|
|
||||||
cp $src $out
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
in
|
|
||||||
|
|
||||||
{
|
|
||||||
# X11 and KDE Plasma configuration
|
|
||||||
#services.xserver.enable = true;
|
|
||||||
services.displayManager.sddm = {
|
|
||||||
enable = lib.mkDefault true;
|
|
||||||
theme = "breeze";
|
|
||||||
wayland.enable = true;
|
|
||||||
};
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
(pkgs.writeTextDir "share/sddm/themes/breeze/theme.conf.user" ''
|
|
||||||
[General]
|
|
||||||
background = "${background-package}"
|
|
||||||
'')
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@ -6,7 +6,7 @@
|
|||||||
#-----
|
#-----
|
||||||
alias py="python3"
|
alias py="python3"
|
||||||
alias mcrow="sudo micro"
|
alias mcrow="sudo micro"
|
||||||
|
alias srcals="source /etc/nixos/other/aliases && echo 'Sourced Aliases ... successful!'"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -36,3 +36,10 @@ alias nix-clear="sudo nix-store --gc"
|
|||||||
alias home-edit="sudoedit /etc/nixos/home.nix"
|
alias home-edit="sudoedit /etc/nixos/home.nix"
|
||||||
|
|
||||||
alias cd-nix="cd /etc/nixos/"
|
alias cd-nix="cd /etc/nixos/"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#Hyprland Specific
|
||||||
|
#-----
|
||||||
|
alias exit-hyprland="hyprctl dispatch exit"
|
||||||
|
alias hyprland-exit="hyprctl dispatch exit"
|
||||||
|
|||||||
2
zsh.nix
2
zsh.nix
@ -12,6 +12,8 @@
|
|||||||
source /etc/nixos/other/theme-reminder.sh
|
source /etc/nixos/other/theme-reminder.sh
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
||||||
|
#To reset powerlevel10k, write 'p10k configure' in shell!
|
||||||
promptInit = ''
|
promptInit = ''
|
||||||
source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
|
source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user