feat: Added gdm monitors.xml and kitty font update
This commit is contained in:
23
common/ghostty.nix
Normal file
23
common/ghostty.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
pkgs,
|
||||
device,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
programs.ghostty = {
|
||||
enable = pkgs.stdenv.isLinux;
|
||||
installBatSyntax = false;
|
||||
settings = {
|
||||
theme = "catppuccin-mocha";
|
||||
# font-family = [
|
||||
# ""
|
||||
# "Hasklug Nerd Font Mono"
|
||||
# ];
|
||||
window-decoration = false;
|
||||
title = "";
|
||||
command = "fish";
|
||||
background-opacity = 0.8;
|
||||
};
|
||||
package = pkgs.ghostty;
|
||||
};
|
||||
}
|
||||
@@ -20,7 +20,7 @@ lib.attrsets.optionalAttrs device.hasGui {
|
||||
WantedBy = ["graphical-session.target"];
|
||||
};
|
||||
};
|
||||
imports = [./kitty.nix];
|
||||
imports = [./kitty.nix ./ghostty.nix];
|
||||
|
||||
programs = {
|
||||
# Only for checking markdown previews
|
||||
@@ -32,14 +32,6 @@ lib.attrsets.optionalAttrs device.hasGui {
|
||||
asvetliakov.vscode-neovim
|
||||
];
|
||||
};
|
||||
ghostty = {
|
||||
enable = pkgs.stdenv.isLinux;
|
||||
installBatSyntax = false;
|
||||
settings = {
|
||||
theme = "catppuccin-mocha";
|
||||
};
|
||||
package = pkgs.ghostty;
|
||||
};
|
||||
};
|
||||
home.packages = with pkgs;
|
||||
[]
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
enable = device.hasGui;
|
||||
# enable = false;
|
||||
font = {
|
||||
name = "FiraCode Nerd Font Mono";
|
||||
# name = "FiraCode Nerd Font Mono";
|
||||
# name = "Hasklug Nerd Font Mono";
|
||||
# name = "Monaspace Krypton Var Light";
|
||||
name = "Monaspace Krypton Var Light";
|
||||
size = 13;
|
||||
};
|
||||
settings = {
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
};
|
||||
colors = {
|
||||
foreground = "f8f8f2";
|
||||
background = 0;
|
||||
background = "FFFFFF";
|
||||
alpha = 0.8;
|
||||
|
||||
"136" = "af8700";
|
||||
|
||||
@@ -37,6 +37,9 @@
|
||||
};
|
||||
|
||||
systemd.services.NetworkManager-wait-online.enable = lib.mkForce false;
|
||||
systemd.tmpfiles.rules = [
|
||||
"L+ /run/gdm/.config/monitors.xml - - - - ${./monitors.xml}"
|
||||
];
|
||||
security = {
|
||||
sudo.wheelNeedsPassword = false;
|
||||
polkit.enable = true;
|
||||
@@ -94,14 +97,19 @@
|
||||
devmon.enable = true;
|
||||
gvfs.enable = true;
|
||||
udisks2.enable = true;
|
||||
gnome.gnome-keyring.enable = true;
|
||||
|
||||
# Configure keymap in X11
|
||||
xserver.xkb = {
|
||||
layout = "us";
|
||||
variant = "";
|
||||
gnome = {
|
||||
gnome-keyring.enable = true;
|
||||
gnome-settings-daemon.enable = true;
|
||||
};
|
||||
xserver = {
|
||||
# Configure keymap in X11
|
||||
xkb = {
|
||||
layout = "us";
|
||||
variant = "";
|
||||
};
|
||||
displayManager.gdm.enable = true;
|
||||
desktopManager.gnome.enable = true;
|
||||
};
|
||||
xserver.displayManager.gdm.enable = true;
|
||||
pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
@@ -263,6 +271,23 @@
|
||||
NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
# etc
|
||||
gnome.excludePackages = with pkgs; [
|
||||
atomix # puzzle game
|
||||
cheese # webcam tool
|
||||
epiphany # web browser
|
||||
evince # document viewer
|
||||
geary # email reader
|
||||
gedit # text editor
|
||||
gnome-characters
|
||||
gnome-music
|
||||
gnome-photos
|
||||
gnome-terminal
|
||||
gnome-tour
|
||||
hitori # sudoku game
|
||||
iagno # go game
|
||||
tali # poker game
|
||||
totem # video player
|
||||
];
|
||||
};
|
||||
|
||||
musnix.enable = true;
|
||||
|
||||
68
nixos/ryu/monitors.xml
Normal file
68
nixos/ryu/monitors.xml
Normal file
@@ -0,0 +1,68 @@
|
||||
<monitors version="2">
|
||||
<configuration>
|
||||
<layoutmode>physical</layoutmode>
|
||||
<logicalmonitor>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<scale>1</scale>
|
||||
<transform>
|
||||
<rotation>left</rotation>
|
||||
<flipped>no</flipped>
|
||||
</transform>
|
||||
<monitor>
|
||||
<monitorspec>
|
||||
<connector>DP-3</connector>
|
||||
<vendor>ACR</vendor>
|
||||
<product>XV272U KV</product>
|
||||
<serial>331312FB44203</serial>
|
||||
</monitorspec>
|
||||
<mode>
|
||||
<width>2560</width>
|
||||
<height>1440</height>
|
||||
<rate>170.001</rate>
|
||||
</mode>
|
||||
</monitor>
|
||||
</logicalmonitor>
|
||||
<logicalmonitor>
|
||||
<x>4000</x>
|
||||
<y>0</y>
|
||||
<scale>1</scale>
|
||||
<transform>
|
||||
<rotation>right</rotation>
|
||||
<flipped>no</flipped>
|
||||
</transform>
|
||||
<monitor>
|
||||
<monitorspec>
|
||||
<connector>DP-1</connector>
|
||||
<vendor>GBT</vendor>
|
||||
<product>M27Q</product>
|
||||
<serial>20120B000001</serial>
|
||||
</monitorspec>
|
||||
<mode>
|
||||
<width>2560</width>
|
||||
<height>1440</height>
|
||||
<rate>169.831</rate>
|
||||
</mode>
|
||||
</monitor>
|
||||
</logicalmonitor>
|
||||
<logicalmonitor>
|
||||
<x>1440</x>
|
||||
<y>1120</y>
|
||||
<scale>1</scale>
|
||||
<primary>yes</primary>
|
||||
<monitor>
|
||||
<monitorspec>
|
||||
<connector>HDMI-1</connector>
|
||||
<vendor>GBT</vendor>
|
||||
<product>AORUS FO27Q3</product>
|
||||
<serial>0x01010101</serial>
|
||||
</monitorspec>
|
||||
<mode>
|
||||
<width>2560</width>
|
||||
<height>1440</height>
|
||||
<rate>359.979</rate>
|
||||
</mode>
|
||||
</monitor>
|
||||
</logicalmonitor>
|
||||
</configuration>
|
||||
</monitors>
|
||||
@@ -2,7 +2,6 @@
|
||||
services = {
|
||||
samba = {
|
||||
enable = true;
|
||||
securityType = "user";
|
||||
openFirewall = true;
|
||||
settings = {
|
||||
global = {
|
||||
|
||||
Reference in New Issue
Block a user