diff --git a/configurations/host/materusPC/gnome.nix b/configurations/host/materusPC/gnome.nix new file mode 100644 index 0000000..e237696 --- /dev/null +++ b/configurations/host/materusPC/gnome.nix @@ -0,0 +1,44 @@ + +{ config, pkgs, lib, inputs, materusFlake, materusPkgs, ... }: +{ + + + + services.xserver.displayManager.gdm.enable = true; + services.xserver.displayManager.gdm.wayland = true; + + + + services.xserver.desktopManager.gnome.enable = true; + services.xserver.desktopManager.gnome.sessionPath = [ pkgs.gnome.gpaste ]; + + services.gnome.gnome-online-accounts.enable = true; + services.gnome.gnome-browser-connector.enable = true; + services.gnome.core-utilities.enable = true; + services.gnome.core-shell.enable = true; + services.gnome.core-os-services.enable = true; + + programs.gnupg.agent.pinentryFlavor = "gnome3"; + + programs.gnome-terminal.enable = true; + + services.udev.packages = with pkgs; [ gnome.gnome-settings-daemon ]; + services.dbus.packages = with pkgs; [ gnome2.GConf ]; + + environment.systemPackages = with pkgs; [ + + gnome3.adwaita-icon-theme + gnome3.gnome-tweaks + gnome3.gnome-color-manager + gnome3.gnome-shell-extensions + + gnomeExtensions.appindicator + gnomeExtensions.desktop-clock + gnomeExtensions.gtk4-desktop-icons-ng-ding + gnomeExtensions.compiz-windows-effect + gnomeExtensions.burn-my-windows + gnomeExtensions.user-themes + gnomeExtensions.gsconnect + + ]; +} \ No newline at end of file diff --git a/configurations/host/materusPC/kde.nix b/configurations/host/materusPC/kde.nix new file mode 100644 index 0000000..344d8b6 --- /dev/null +++ b/configurations/host/materusPC/kde.nix @@ -0,0 +1,54 @@ +{ config, pkgs, lib, inputs, materusFlake, materusPkgs, ... }: +let + westonSddm = pkgs.writeText "weston.ini" + '' + [core] + xwayland=true + shell=fullscreen-shell.so + + [keyboard] + keymap_layout=pl + + [output] + name=DP-1 + mode=1920x1080@240 + + [output] + name=DP-2 + mode=off + + [output] + name=HDMI-A-3 + mode=1920x1080@144 + '' + ; +in +{ + services.xserver.displayManager.defaultSession = "plasmawayland"; + services.xserver.displayManager.sddm.enable = true; + services.xserver.displayManager.sddm.settings = { + General = { + DisplayServer = "wayland"; + }; + Theme = { + CursorTheme = "breeze_cursors"; + CursorSize = "24"; + }; + Wayland = { + #CompositorCommand = "${pkgs.weston}/bin/weston --drm-device=card0 --additional-devices=card1 -c ${westonSddm}"; + }; + }; + services.xserver.desktopManager.plasma5.enable = true; + services.xserver.desktopManager.plasma5.phononBackend = "gstreamer"; + services.xserver.desktopManager.plasma5.useQtScaling = true; + services.xserver.desktopManager.plasma5.runUsingSystemd = true; + programs.gnupg.agent.pinentryFlavor = "qt"; + environment.plasma5.excludePackages = with pkgs; [ libsForQt5.kwallet libsForQt5.kwalletmanager libsForQt5.kwallet-pam ]; + + environment.variables = { + KWIN_DRM_NO_AMS = "1"; + }; + environment.systemPackages = with pkgs; [ + + ]; +} diff --git a/flake.lock b/flake.lock index 979378c..8344d05 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ "nixpkgs-stable": "nixpkgs-stable" }, "locked": { - "lastModified": 1693304662, - "narHash": "sha256-IOORzGsr+aetrf1fpppID0VT/NjxiUNzXJq1oEjvgRY=", + "lastModified": 1694801846, + "narHash": "sha256-+mYOCAuqDR4+4lPLiwGSN8fYhvmNyfUBbWpDHnBWGtM=", "owner": "nix-community", "repo": "emacs-overlay", - "rev": "76e1604362f675c6b9ee37bd9feca2b87730a987", + "rev": "90182afcb4fdb564a653959a8a2d818714e115fb", "type": "github" }, "original": { @@ -26,11 +26,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1692799911, - "narHash": "sha256-3eihraek4qL744EvQXsK1Ha6C3CR7nnT8X2qWap4RNk=", + "lastModified": 1694529238, + "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", "owner": "numtide", "repo": "flake-utils", - "rev": "f9e7cf818399d17d347f847525c5a5a8032e4e44", + "rev": "ff7b65b44d01cf9ba6a71320833626af21126384", "type": "github" }, "original": { @@ -46,11 +46,11 @@ ] }, "locked": { - "lastModified": 1693187908, - "narHash": "sha256-cTcNpsqi1llmUFl9bmCdD0mTyfjhBrNFPhu2W12WXzA=", + "lastModified": 1694643239, + "narHash": "sha256-pv2k/5FvyirDE8g4TNehzwZ0T4UOMMmqWSQnM/luRtE=", "owner": "nix-community", "repo": "home-manager", - "rev": "8bde7a651b94ba30bd0baaa9c4a08aae88cc2e92", + "rev": "d9b88b43524db1591fb3d9410a21428198d75d49", "type": "github" }, "original": { @@ -62,11 +62,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1693158576, - "narHash": "sha256-aRTTXkYvhXosGx535iAFUaoFboUrZSYb1Ooih/auGp0=", + "lastModified": 1694669921, + "narHash": "sha256-6ESpJ6FsftHV96JO/zn6je07tyV2dlLR7SdLsmkegTY=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "a999c1cc0c9eb2095729d5aa03e0d8f7ed256780", + "rev": "f2ea252d23ebc9a5336bf6a61e0644921f64e67c", "type": "github" }, "original": { @@ -78,11 +78,11 @@ }, "nixpkgs-stable": { "locked": { - "lastModified": 1693183237, - "narHash": "sha256-c7OtyBkZ/vZE/WosBpRGRtkbWZjDHGJP7fg1FyB9Dsc=", + "lastModified": 1694499547, + "narHash": "sha256-R7xMz1Iia6JthWRHDn36s/E248WB1/je62ovC/dUVKI=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "ea5234e7073d5f44728c499192544a84244bf35a", + "rev": "e5f018cf150e29aac26c61dac0790ea023c46b24", "type": "github" }, "original": { @@ -94,11 +94,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1693158576, - "narHash": "sha256-aRTTXkYvhXosGx535iAFUaoFboUrZSYb1Ooih/auGp0=", + "lastModified": 1694767346, + "narHash": "sha256-5uH27SiVFUwsTsqC5rs3kS7pBoNhtoy9QfTP9BmknGk=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "a999c1cc0c9eb2095729d5aa03e0d8f7ed256780", + "rev": "ace5093e36ab1e95cb9463863491bee90d5a4183", "type": "github" }, "original": { @@ -110,11 +110,11 @@ }, "nur": { "locked": { - "lastModified": 1693305898, - "narHash": "sha256-8R1PBgMEqDDttazM3wFsvebMe/HE8c2zNcNBxm7a50E=", + "lastModified": 1694814340, + "narHash": "sha256-eo9444JGI/G9jZF+X3xmS5TMRuIT4VYPKyZQ11iF65Q=", "owner": "nix-community", "repo": "NUR", - "rev": "0da294f40840d6360d5c4ea2f24bf2a27ad34caa", + "rev": "9b70f21fd41d3b96580e7ca4a3d1c29e87bdab36", "type": "github" }, "original": {