update hyprland config and reorganize
This commit is contained in:
@@ -84,18 +84,20 @@
|
|||||||
];
|
];
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
## Custom variables (e.g. ip, interface, etc)
|
## Custom variables (e.g. ip, interface, etc)
|
||||||
vars = (import ./systems/server/userdata.nix);
|
vars = import ./systems/userdata-default.nix // import ./systems/server/userdata.nix;
|
||||||
inherit inputs ;
|
inherit inputs ;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
nixosConfigurations."kop-pc" = nixpkgs.lib.nixosSystem {
|
nixosConfigurations."kop-pc" = nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
|
vars = import ./systems/userdata-default.nix // import ./systems/pc/userdata.nix;
|
||||||
inherit inputs ;
|
inherit inputs ;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
./users/kopatz.nix
|
./users/kopatz.nix
|
||||||
./modules/graphical/plasma.nix
|
./modules/graphical/plasma.nix
|
||||||
|
./modules/graphical/hyprland.nix
|
||||||
./modules/graphical/shared.nix
|
./modules/graphical/shared.nix
|
||||||
./modules/hardware/nvidia.nix
|
./modules/hardware/nvidia.nix
|
||||||
./modules/hardware/ssd.nix
|
./modules/hardware/ssd.nix
|
||||||
@@ -123,13 +125,14 @@
|
|||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
## Custom variables (e.g. ip, interface, etc)
|
## Custom variables (e.g. ip, interface, etc)
|
||||||
vars = (import ./systems/laptop/userdata.nix);
|
vars = import ./systems/userdata-default.nix // import ./systems/laptop/userdata.nix;
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
./users/kopatz.nix
|
./users/kopatz.nix
|
||||||
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
||||||
# Todo: refactor file layout
|
# Todo: refactor file layout
|
||||||
|
./modules/graphical/hyprland.nix
|
||||||
./modules/graphical/shared.nix
|
./modules/graphical/shared.nix
|
||||||
./laptop/configuration.nix
|
./laptop/configuration.nix
|
||||||
./modules/virt-manager.nix
|
./modules/virt-manager.nix
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./main.nix
|
./main.nix
|
||||||
./hyperland.nix
|
|
||||||
./gnome.nix
|
./gnome.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +1,19 @@
|
|||||||
{ config, pkgs, lib, inputs, ... }:
|
{ config, pkgs, lib, inputs, vars, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
patchedWaybar = pkgs.waybar.overrideAttrs (oldAttrs: {
|
patchedWaybar = pkgs.waybar.overrideAttrs (oldAttrs: {
|
||||||
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
|
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
|
||||||
});
|
});
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
layout = "at";
|
layout = vars.layout;
|
||||||
xkbVariant = "";
|
xkbVariant = vars.variant;
|
||||||
enable = true;
|
enable = true;
|
||||||
|
displayManager = lib.mkIf (!config.services.xserver.displayManager.gdm.enable) {
|
||||||
|
sddm.enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
@@ -19,6 +21,7 @@ in
|
|||||||
#WLR_NO_HARDWARE_CURSORS = "1";
|
#WLR_NO_HARDWARE_CURSORS = "1";
|
||||||
# Hint electron apps to use wayland
|
# Hint electron apps to use wayland
|
||||||
NIXOS_OZONE_WL = "1";
|
NIXOS_OZONE_WL = "1";
|
||||||
|
WLR_NO_HARDWARE_CURSORS="1";
|
||||||
WLR_DRM_DEVICES = "/dev/dri/card0";
|
WLR_DRM_DEVICES = "/dev/dri/card0";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -32,19 +35,13 @@ in
|
|||||||
|
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nvidiaPatches = true;
|
enableNvidiaPatches = true;
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.kopatz = {
|
home-manager.users.kopatz = {
|
||||||
#systemd.user.services.waybar.Service.ExecStart = lib.mkForce "${pkgs.waybar}/bin/waybar -b 0";
|
#systemd.user.services.waybar.Service.ExecStart = lib.mkForce "${pkgs.waybar}/bin/waybar -b 0";
|
||||||
gtk = {
|
|
||||||
enable = true;
|
|
||||||
theme = {
|
|
||||||
name = "palenight";
|
|
||||||
package = pkgs.palenight-theme;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
@@ -71,8 +68,8 @@ in
|
|||||||
|
|
||||||
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
||||||
input = {
|
input = {
|
||||||
kb_layout = "de";
|
kb_layout = vars.layout;
|
||||||
kb_variant = "";
|
kb_variant = vars.variant;
|
||||||
kb_model = "";
|
kb_model = "";
|
||||||
kb_options = "";
|
kb_options = "";
|
||||||
kb_rules = "";
|
kb_rules = "";
|
||||||
5
systems/pc/userdata.nix
Normal file
5
systems/pc/userdata.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
{
|
||||||
|
layout = "de";
|
||||||
|
variant = "us";
|
||||||
|
}
|
||||||
4
systems/userdata-default.nix
Normal file
4
systems/userdata-default.nix
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
layout = "de";
|
||||||
|
variant = "";
|
||||||
|
}
|
||||||
@@ -19,6 +19,18 @@ in
|
|||||||
};
|
};
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
users.${user} = {
|
users.${user} = {
|
||||||
|
gtk = {
|
||||||
|
enable = true;
|
||||||
|
theme = {
|
||||||
|
name = "palenight";
|
||||||
|
package = pkgs.palenight-theme;
|
||||||
|
};
|
||||||
|
cursorTheme = {
|
||||||
|
package = pkgs.libsForQt5.breeze-gtk;
|
||||||
|
name = "Breeze-gtk";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user