updating and adding some better nix management
This commit is contained in:
parent
12c6e36a11
commit
9f406deb53
10 changed files with 436 additions and 607 deletions
|
@ -1,24 +1,23 @@
|
|||
{ pkgs, lib, config, stable, ... }:
|
||||
|
||||
with lib;
|
||||
{
|
||||
|
||||
# nix = {
|
||||
# package = pkgs.nixVersions.git;
|
||||
# };
|
||||
|
||||
|
||||
# This adds hyprland cache to cachix and relaxes sandbox
|
||||
nix.settings = {
|
||||
substituters = ["https://hyprland.cachix.org"];
|
||||
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
|
||||
substituters = [ "https://hyprland.cachix.org" ];
|
||||
trusted-public-keys =
|
||||
[ "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" ];
|
||||
sandbox = "relaxed";
|
||||
};
|
||||
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_zen;
|
||||
kernelParams = [ "mem_sleep_default=deep" "nvme.noacpi=1"];
|
||||
kernelParams = [ "mem_sleep_default=deep" "nvme.noacpi=1" ];
|
||||
# initrd.kernelModules = [ "amdgpu" ];
|
||||
};
|
||||
|
||||
|
@ -72,24 +71,22 @@ with lib;
|
|||
# };
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
nerdfonts
|
||||
noto-fonts
|
||||
noto-fonts-cjk
|
||||
noto-fonts-emoji
|
||||
liberation_ttf
|
||||
mplus-outline-fonts.githubRelease
|
||||
dina-font
|
||||
proggyfonts
|
||||
];
|
||||
nerdfonts
|
||||
noto-fonts
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-emoji
|
||||
liberation_ttf
|
||||
mplus-outline-fonts.githubRelease
|
||||
dina-font
|
||||
proggyfonts
|
||||
];
|
||||
|
||||
hardware = {
|
||||
keyboard.qmk.enable = true;
|
||||
};
|
||||
hardware = { keyboard.qmk.enable = true; };
|
||||
|
||||
security.pam.services = {
|
||||
# sddm.enableKwallet = true;
|
||||
greetd.enableKwallet = true;
|
||||
swaylock = {};
|
||||
swaylock = { };
|
||||
};
|
||||
|
||||
# services.displayManager.sddm = {
|
||||
|
@ -107,7 +104,8 @@ with lib;
|
|||
user = "chris";
|
||||
};
|
||||
default_session = {
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time -r --window-padding 2 --cmd 'dbus-run-session Hyprland' -s /etc/greetd/environments";
|
||||
command =
|
||||
"${pkgs.greetd.tuigreet}/bin/tuigreet --time -r --window-padding 2 --cmd 'dbus-run-session Hyprland' -s /etc/greetd/environments";
|
||||
user = "greeter";
|
||||
};
|
||||
plasma_session = {
|
||||
|
@ -121,9 +119,7 @@ with lib;
|
|||
};
|
||||
};
|
||||
|
||||
programs.regreet = {
|
||||
enable = true;
|
||||
};
|
||||
programs.regreet = { enable = true; };
|
||||
|
||||
environment.etc."greetd/environments".text = ''
|
||||
hyprland
|
||||
|
@ -153,6 +149,9 @@ with lib;
|
|||
extraPortals = [ pkgs.xdg-desktop-portal-kde ];
|
||||
};
|
||||
|
||||
# programs.cosmic = {
|
||||
# };
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
|
@ -182,33 +181,33 @@ with lib;
|
|||
programs.dconf.enable = true;
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "emacsclient -t -a";
|
||||
VISUAL = "emacsclient -c -a";
|
||||
QT_LOGGING_RULES = "js=true; kwin_*.debug=true";
|
||||
# GTK_USE_PORTAL = "1";
|
||||
# Fixing Qt apps in other environments
|
||||
# Thought I needed this but apparently they are working fine without it.
|
||||
# QT_XCB_GL_INTEGRATION = "xcb_egl";
|
||||
# QT_QPA_PLATFORM_PLUGIN_PATH = "${pkgs.qt5.qtbase.bin}/lib/qt-${pkgs.qt5.qtbase.qtCompatVersion}/plugins/platforms";
|
||||
NIXOS_OZONE_WL = "1";
|
||||
_JAVA_AWT_WM_NONEREPARENTING = "1";
|
||||
# DISABLE_QT5_COMPAT = "0";
|
||||
GDK_BACKEND = "wayland";
|
||||
ANKI_WAYLAND = "1";
|
||||
WLR_DRM_NO_ATOMIC = "1";
|
||||
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
|
||||
QT_QPA_PLATFORM = "wayland";
|
||||
# QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
||||
# QT_QPA_PLATFORMTHEME = "qt5ct";
|
||||
MOZ_ENABLE_WAYLAND = "1";
|
||||
MOZ_DBUS_REMOTE = "1";
|
||||
WLR_BACKEND = "vulkan";
|
||||
WLR_RENDERER = "vulkan";
|
||||
XDG_SESSION_TYPE = "wayland";
|
||||
# Remember that this causes issues in some games use "unset SDL_VIDEODRIVER &&"
|
||||
SDL_VIDEODRIVER = "wayland";
|
||||
CLUTTER_BACKEND = "wayland";
|
||||
WLR_NO_HARDWARE_CURSORS = "1";
|
||||
EDITOR = "emacsclient -t -a";
|
||||
VISUAL = "emacsclient -c -a";
|
||||
QT_LOGGING_RULES = "js=true; kwin_*.debug=true";
|
||||
# GTK_USE_PORTAL = "1";
|
||||
# Fixing Qt apps in other environments
|
||||
# Thought I needed this but apparently they are working fine without it.
|
||||
# QT_XCB_GL_INTEGRATION = "xcb_egl";
|
||||
# QT_QPA_PLATFORM_PLUGIN_PATH = "${pkgs.qt5.qtbase.bin}/lib/qt-${pkgs.qt5.qtbase.qtCompatVersion}/plugins/platforms";
|
||||
NIXOS_OZONE_WL = "1";
|
||||
_JAVA_AWT_WM_NONEREPARENTING = "1";
|
||||
# DISABLE_QT5_COMPAT = "0";
|
||||
GDK_BACKEND = "wayland";
|
||||
ANKI_WAYLAND = "1";
|
||||
WLR_DRM_NO_ATOMIC = "1";
|
||||
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
|
||||
QT_QPA_PLATFORM = "wayland";
|
||||
# QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
||||
# QT_QPA_PLATFORMTHEME = "qt5ct";
|
||||
MOZ_ENABLE_WAYLAND = "1";
|
||||
MOZ_DBUS_REMOTE = "1";
|
||||
WLR_BACKEND = "vulkan";
|
||||
WLR_RENDERER = "vulkan";
|
||||
XDG_SESSION_TYPE = "wayland";
|
||||
# Remember that this causes issues in some games use "unset SDL_VIDEODRIVER &&"
|
||||
SDL_VIDEODRIVER = "wayland";
|
||||
CLUTTER_BACKEND = "wayland";
|
||||
WLR_NO_HARDWARE_CURSORS = "1";
|
||||
};
|
||||
|
||||
programs.partition-manager.enable = true;
|
||||
|
@ -223,7 +222,8 @@ with lib;
|
|||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
services.printing.drivers = [ pkgs.gutenprint pkgs.gutenprintBin pkgs.cnijfilter2 ];
|
||||
services.printing.drivers =
|
||||
[ pkgs.gutenprint pkgs.gutenprintBin pkgs.cnijfilter2 ];
|
||||
|
||||
services.usbmuxd.enable = true;
|
||||
services.fstrim.enable = true;
|
||||
|
@ -291,7 +291,5 @@ with lib;
|
|||
programs.adb.enable = true;
|
||||
services.udev.packages = [ pkgs.android-udev-rules ];
|
||||
|
||||
services.esphome = {
|
||||
enable = true;
|
||||
};
|
||||
services.esphome = { enable = true; };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue