mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 10:30:44 +02:00
windowManager: separated into new file
This commit is contained in:
@@ -28,6 +28,7 @@
|
|||||||
../../hostsModules/laptop/nixos/networking.nix # firewall, ssh, networkmanager, etc.
|
../../hostsModules/laptop/nixos/networking.nix # firewall, ssh, networkmanager, etc.
|
||||||
../../modules/nixos/bluetooth.nix
|
../../modules/nixos/bluetooth.nix
|
||||||
../../modules/nixos/audioAndMedia.nix
|
../../modules/nixos/audioAndMedia.nix
|
||||||
|
../../modules/nixos/windowManager.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
@@ -53,16 +54,6 @@
|
|||||||
"/share/applications"
|
"/share/applications"
|
||||||
"/share/xdg-desktop-portal"
|
"/share/xdg-desktop-portal"
|
||||||
];
|
];
|
||||||
xdg.portal = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
extraPortals = [
|
|
||||||
pkgs.xdg-desktop-portal-wlr
|
|
||||||
pkgs.xdg-desktop-portal-gtk
|
|
||||||
];
|
|
||||||
};
|
|
||||||
# removes uxterm
|
|
||||||
services.xserver.excludePackages = [pkgs.xterm];
|
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = "Europe/Zurich";
|
time.timeZone = "Europe/Zurich";
|
||||||
@@ -70,9 +61,6 @@
|
|||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
|
||||||
services.xserver.enable = true;
|
|
||||||
|
|
||||||
# zsh dont want to work if it is not initialzed here.
|
# zsh dont want to work if it is not initialzed here.
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
@@ -80,7 +68,6 @@
|
|||||||
programs.fuse.userAllowOther = true;
|
programs.fuse.userAllowOther = true;
|
||||||
programs.fuse.enable = true;
|
programs.fuse.enable = true;
|
||||||
|
|
||||||
|
|
||||||
security.wrappers.gsr-kms-server = {
|
security.wrappers.gsr-kms-server = {
|
||||||
# to remove the password prompt when using gpu-screen-recorder
|
# to remove the password prompt when using gpu-screen-recorder
|
||||||
owner = "root";
|
owner = "root";
|
||||||
@@ -89,26 +76,6 @@
|
|||||||
source = "${pkgs.gpu-screen-recorder}/bin/gsr-kms-server";
|
source = "${pkgs.gpu-screen-recorder}/bin/gsr-kms-server";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
# Enable the GNOME Desktop Environment.
|
|
||||||
# services.displayManager.gdm.enable = true;
|
|
||||||
# services.desktopManager.gnome.enable = true;
|
|
||||||
# we dont use gnome but some utils yes -> see pckgs
|
|
||||||
#enable sddm
|
|
||||||
#services.displayManager.sddm = {
|
|
||||||
# enable = true;
|
|
||||||
# wayland.enable = true;
|
|
||||||
#};
|
|
||||||
# we use ly as the displayManager. see ../../modules/nixos/ly.nix
|
|
||||||
|
|
||||||
# enable hyprland WM
|
|
||||||
programs.hyprland = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs-unstable.hyprland; # we use the unstable branch to get the latest features
|
|
||||||
withUWSM = true;
|
|
||||||
xwayland.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.upower.enable = true;
|
services.upower.enable = true;
|
||||||
|
|
||||||
# Configure keymap in X11
|
# Configure keymap in X11
|
||||||
@@ -186,7 +153,6 @@
|
|||||||
cmatrix
|
cmatrix
|
||||||
tomato-c # pomodoro timer
|
tomato-c # pomodoro timer
|
||||||
#hyprshot
|
#hyprshot
|
||||||
xdg-utils
|
|
||||||
mailcap
|
mailcap
|
||||||
pkgs-unstable.vimPluginsUpdater # used for building plugins
|
pkgs-unstable.vimPluginsUpdater # used for building plugins
|
||||||
hyprcursor
|
hyprcursor
|
||||||
|
|||||||
@@ -0,0 +1,43 @@
|
|||||||
|
# customization is in ../home-manager/hyprland.nix
|
||||||
|
{
|
||||||
|
pkgs-unstable,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
# Enable the X11 windowing system.
|
||||||
|
services.xserver.enable = true;
|
||||||
|
|
||||||
|
# Enable the GNOME Desktop Environment.
|
||||||
|
# services.displayManager.gdm.enable = true;
|
||||||
|
# services.desktopManager.gnome.enable = true;
|
||||||
|
# we dont use gnome but some utils yes -> see pckgs
|
||||||
|
#enable sddm
|
||||||
|
#services.displayManager.sddm = {
|
||||||
|
# enable = true;
|
||||||
|
# wayland.enable = true;
|
||||||
|
#};
|
||||||
|
# we use ly as the displayManager. see ../../modules/nixos/ly.nix
|
||||||
|
|
||||||
|
# enable hyprland WM
|
||||||
|
programs.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs-unstable.hyprland; # we use the unstable branch to get the latest features
|
||||||
|
withUWSM = true;
|
||||||
|
xwayland.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.portal = {
|
||||||
|
enable = true;
|
||||||
|
extraPortals = [
|
||||||
|
pkgs.xdg-desktop-portal-wlr
|
||||||
|
pkgs.xdg-desktop-portal-gtk
|
||||||
|
];
|
||||||
|
};
|
||||||
|
# removes uxterm
|
||||||
|
services.xserver.excludePackages = [pkgs.xterm];
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
xdg-utils
|
||||||
|
];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user