Compare commits
18 Commits
823cb71491
...
bb1560f6bb
| Author | SHA1 | Date | |
|---|---|---|---|
| bb1560f6bb | |||
| a64f759c85 | |||
| 4f3af0a21a | |||
| c490063598 | |||
| 77185ad8f3 | |||
| 7fbe36671b | |||
| 26259480b2 | |||
| 5064b95a3c | |||
| 0dd747dcf6 | |||
| a9d6431701 | |||
| 898c7d473b | |||
| f698d9c140 | |||
| 3744f294bc | |||
| f359432175 | |||
| 2955949475 | |||
| b075ed6888 | |||
| 29b0281c72 | |||
| f6629ce275 |
44
flake.lock
generated
44
flake.lock
generated
@@ -66,11 +66,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1714679908,
|
"lastModified": 1717316182,
|
||||||
"narHash": "sha256-KzcXzDvDJjX34en8f3Zimm396x6idbt+cu4tWDVS2FI=",
|
"narHash": "sha256-Xi0EpZcu39N0eW7apLjFfUOR9y80toyjYizez7J1wMI=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "9036fe9ef8e15a819fa76f47a8b1f287903fb848",
|
"rev": "9b53a10f4c91892f5af87cf55d08fba59ca086af",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -88,11 +88,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1714853356,
|
"lastModified": 1715437861,
|
||||||
"narHash": "sha256-2I7uFSeTAF0b8MU+Apb2JoczlAYmEAxj+ke/eWe1boA=",
|
"narHash": "sha256-GIYYcAEYHaHfCGfKY9Te3e+p+IK9V3tMYidUdas9UKA=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "a25078b1c1afd3fd887042ac8187bd9b300a6e83",
|
"rev": "048841f5881952e40e601d97ab825b9baac07c63",
|
||||||
"revCount": 51,
|
"revCount": 52,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.syzygial.cc/Syzygial/EmacsConfig.git"
|
"url": "https://git.syzygial.cc/Syzygial/EmacsConfig.git"
|
||||||
},
|
},
|
||||||
@@ -108,11 +108,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1713946171,
|
"lastModified": 1716993688,
|
||||||
"narHash": "sha256-lc75rgRQLdp4Dzogv5cfqOg6qYc5Rp83oedF2t0kDp8=",
|
"narHash": "sha256-vo5k2wQekfeoq/2aleQkBN41dQiQHNTniZeVONWiWLs=",
|
||||||
"owner": "LnL7",
|
"owner": "LnL7",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"rev": "230a197063de9287128e2c68a7a4b0cd7d0b50a7",
|
"rev": "c0d5b8c54d6828516c97f6be9f2d00c63a363df4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -124,11 +124,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1714635257,
|
"lastModified": 1717196966,
|
||||||
"narHash": "sha256-4cPymbty65RvF1DWQfc+Bc8B233A1BWxJnNULJKQ1EY=",
|
"narHash": "sha256-yZKhxVIKd2lsbOqYd5iDoUIwsRZFqE87smE2Vzf6Ck0=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "63c3a29ca82437c87573e4c6919b09a24ea61b0f",
|
"rev": "57610d2f8f0937f39dbd72251e9614b1561942d8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -156,11 +156,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-stable_2": {
|
"nixpkgs-stable_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1713638189,
|
"lastModified": 1717265169,
|
||||||
"narHash": "sha256-q7APLfB6FmmSMI1Su5ihW9IwntBsk2hWNXh8XtSdSIk=",
|
"narHash": "sha256-IITcGd6xpNoyq9SZBigCkv4+qMHSqot0RDPR4xsZ2CA=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "74574c38577914733b4f7a775dd77d24245081dd",
|
"rev": "3b1b4895b2c5f9f5544d02132896aeb9ceea77bc",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -172,11 +172,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1713596654,
|
"lastModified": 1717112898,
|
||||||
"narHash": "sha256-LJbHQQ5aX1LVth2ST+Kkse/DRzgxlVhTL1rxthvyhZc=",
|
"narHash": "sha256-7R2ZvOnvd9h8fDd65p0JnB7wXfUvreox3xFdYWd1BnY=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "fd16bb6d3bcca96039b11aa52038fafeb6e4f4be",
|
"rev": "6132b0f6e344ce2fe34fc051b72fb46e34f668e0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -201,11 +201,11 @@
|
|||||||
"nixpkgs-stable": "nixpkgs-stable_2"
|
"nixpkgs-stable": "nixpkgs-stable_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1713892811,
|
"lastModified": 1717297459,
|
||||||
"narHash": "sha256-uIGmA2xq41vVFETCF1WW4fFWFT2tqBln+aXnWrvjGRE=",
|
"narHash": "sha256-cZC2f68w5UrJ1f+2NWGV9Gx0dEYmxwomWN2B0lx0QRA=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "f1b0adc27265274e3b0c9b872a8f476a098679bd",
|
"rev": "ab2a43b0d21d1d37d4d5726a892f714eaeb4b075",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -13,6 +13,10 @@
|
|||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
||||||
|
# Desktop/Graphical Things defined:
|
||||||
|
./desktop/default.nix
|
||||||
|
./fonts.nix
|
||||||
|
|
||||||
# Secrets specified via:
|
# Secrets specified via:
|
||||||
./secrets.nix
|
./secrets.nix
|
||||||
|
|
||||||
@@ -87,7 +91,7 @@
|
|||||||
users.groups.net = {};
|
users.groups.net = {};
|
||||||
users.users.universe = {
|
users.users.universe = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "adbusers" "net" "brltty" "brlapi" "dialout" ];
|
extraGroups = [ "wheel" "adbusers" "net" "brltty" "brlapi" "dialout" "input" ];
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@@ -131,7 +135,7 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
documentation.dev.enable = true;
|
documentation.dev.enable = true;
|
||||||
documentation.man.generateCaches = true;
|
documentation.man.generateCaches = false;
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
|
|||||||
13
machines/universedesktop/desktop/audio.nix
Normal file
13
machines/universedesktop/desktop/audio.nix
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{ config, pkgs, lib, ... }: {
|
||||||
|
# Enable sound.
|
||||||
|
# rtkit is optional but recommended
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
# If you want to use JACK applications, uncomment this
|
||||||
|
# jack.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
6
machines/universedesktop/desktop/default.nix
Normal file
6
machines/universedesktop/desktop/default.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ config, pkgs, lib, ... }: {
|
||||||
|
imports = [
|
||||||
|
./audio.nix
|
||||||
|
./displaymanager.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
41
machines/universedesktop/desktop/displaymanager.nix
Normal file
41
machines/universedesktop/desktop/displaymanager.nix
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
{ config, pkgs, lib, ... }: let
|
||||||
|
empttyConf = pkgs.writeText "emptty-config" ''
|
||||||
|
TTY_NUMBER=7
|
||||||
|
|
||||||
|
WAYLAND_SESSIONS_PATH="${config.services.displayManager.sessionData.desktops}/share/wayland-sessions"
|
||||||
|
'';
|
||||||
|
in {
|
||||||
|
imports = [
|
||||||
|
./dwl.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
services.displayManager = {
|
||||||
|
enable = true;
|
||||||
|
execCmd = "${pkgs.emptty}/bin/emptty -d";
|
||||||
|
};
|
||||||
|
systemd.services.display-manager = {
|
||||||
|
enable = true;
|
||||||
|
path = [pkgs.dwl];
|
||||||
|
serviceConfig = {
|
||||||
|
EnvironmentFile = empttyConf;
|
||||||
|
Type="idle";
|
||||||
|
TTYPath="/dev/tty7";
|
||||||
|
TTYReset="yes";
|
||||||
|
SendSIGHUP="yes";
|
||||||
|
KillMode="process";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.etc."emptty/conf".source = empttyConf;
|
||||||
|
|
||||||
|
services.displayManager.sessionPackages = [ pkgs.dwl ];
|
||||||
|
|
||||||
|
security.pam.services = {
|
||||||
|
emptty.text = ''
|
||||||
|
auth substack sshd
|
||||||
|
account include sshd
|
||||||
|
password substack sshd
|
||||||
|
session include sshd
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
82
machines/universedesktop/desktop/dwl.nix
Normal file
82
machines/universedesktop/desktop/dwl.nix
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
{ config, pkgs, lib, ... }: let
|
||||||
|
launch_emacs = pkgs.writeScript "emacsclient-or-start" ''
|
||||||
|
#!${pkgs.bash}/bin/bash
|
||||||
|
emacsclient --create-frame --alternate-editor=""
|
||||||
|
'';
|
||||||
|
in {
|
||||||
|
imports = [
|
||||||
|
./wayland.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(final: prev: {
|
||||||
|
dwl = prev.dwl.overrideAttrs (old: let
|
||||||
|
dwl-patches = pkgs.fetchgit {
|
||||||
|
url = "https://codeberg.org/dwl/dwl-patches.git";
|
||||||
|
rev = "7f93815e9c9d50add8493e680b3057ed0cc6e8a0";
|
||||||
|
hash = "sha256-LK1+WjAlguBvITPyS4oHXW5bNP19WUEfo87GFmyv8Js=";
|
||||||
|
};
|
||||||
|
patches = let
|
||||||
|
dwl-patch = p: "${dwl-patches}/patches/${p}/${p}.patch";
|
||||||
|
in [
|
||||||
|
(dwl-patch "ipc")
|
||||||
|
(dwl-patch "restore-monitor")
|
||||||
|
(dwl-patch "regexrules")
|
||||||
|
(dwl-patch "autostart")
|
||||||
|
];
|
||||||
|
in {
|
||||||
|
version = "10-05-2024";
|
||||||
|
|
||||||
|
src = final.fetchFromGitea {
|
||||||
|
domain = "codeberg.org";
|
||||||
|
owner = "dwl";
|
||||||
|
repo = "dwl";
|
||||||
|
rev = "9825c26cdd5dfed34022b77a8936c5d8f485e134";
|
||||||
|
hash = "sha256-p7BhCbCduMNTEK5DYNGBYXf+9WU6WlRvR9VdOuSTrVU=";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = (old.patches or []) ++ patches;
|
||||||
|
postPatch = ''
|
||||||
|
export termcmd=${pkgs.foot}/bin/foot
|
||||||
|
export editcmd=${launch_emacs}
|
||||||
|
export menucmd=${pkgs.fuzzel}/bin/fuzzel
|
||||||
|
export barcmd=${pkgs.waybar}/bin/waybar
|
||||||
|
export playcmd=${pkgs.writeScript "playerctl-play-pause" ''
|
||||||
|
#!${pkgs.bash}/bin/bash
|
||||||
|
${pkgs.playerctl}/bin/playerctl play-pause
|
||||||
|
''}
|
||||||
|
export scrncmd=${pkgs.writeScript "screenshot-region" ''
|
||||||
|
#!${pkgs.bash}/bin/bash
|
||||||
|
${pkgs.slurp}/bin/slurp | ${pkgs.grim}/bin/grim -g - - | ${pkgs.wl-clipboard}/bin/wl-copy
|
||||||
|
''}
|
||||||
|
substituteAll ${./dwl/config.def.h} ./config.def.h
|
||||||
|
'';
|
||||||
|
postInstall = ''
|
||||||
|
chmod ugo+x $out/share/wayland-sessions/dwl.desktop
|
||||||
|
'';
|
||||||
|
passthru.providedSessions = ["dwl"];
|
||||||
|
});
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
environment.sessionVariables = {
|
||||||
|
NIXOS_OZONE_WL=1;
|
||||||
|
WLR_NO_HARDWARE_CURSORS=1;
|
||||||
|
SDL_VIDEODRIVER="wayland";
|
||||||
|
QT_QPA_PLATFORM="wayland-egl";
|
||||||
|
QT_WAYLAND_DISABLE_WINDOW_DECORATIONS="1";
|
||||||
|
__JAVA_AWT_WM_NONREPARENTING=1;
|
||||||
|
# Bug with Wayland: Fixed in 23.1
|
||||||
|
# Causes firefox & thunderbird to crash
|
||||||
|
# https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21646/diffs?commit_id=ee5d2250fd159689aae3f7d632a6226971bea85c
|
||||||
|
MOZ_ENABLE_WAYLAND=0;
|
||||||
|
GTK_THEME="Adwaita-dark";
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
dwl
|
||||||
|
waybar
|
||||||
|
foot
|
||||||
|
pwvucontrol
|
||||||
|
];
|
||||||
|
}
|
||||||
182
machines/universedesktop/desktop/dwl/config.def.h
Normal file
182
machines/universedesktop/desktop/dwl/config.def.h
Normal file
@@ -0,0 +1,182 @@
|
|||||||
|
/* Taken from https://github.com/djpohly/dwl/issues/466 */
|
||||||
|
#define COLOR(hex) { ((hex >> 24) & 0xFF) / 255.0f, \
|
||||||
|
((hex >> 16) & 0xFF) / 255.0f, \
|
||||||
|
((hex >> 8) & 0xFF) / 255.0f, \
|
||||||
|
(hex & 0xFF) / 255.0f }
|
||||||
|
/* appearance */
|
||||||
|
static const int sloppyfocus = 1; /* focus follows mouse */
|
||||||
|
static const int bypass_surface_visibility = 0; /* 1 means idle inhibitors will disable idle tracking even if it's surface isn't visible */
|
||||||
|
static const unsigned int borderpx = 3; /* border pixel of windows */
|
||||||
|
static const float rootcolor[] = COLOR(0x222222ff);
|
||||||
|
static const float bordercolor[] = COLOR(0x233e5dff);
|
||||||
|
static const float focuscolor[] = COLOR(0x005577ff);
|
||||||
|
static const float urgentcolor[] = COLOR(0xff0000ff);
|
||||||
|
/* This conforms to the xdg-protocol. Set the alpha to zero to restore the old behavior */
|
||||||
|
static const float fullscreen_bg[] = {0.0f, 0.0f, 0.0f, 1.0f}; /* You can also use glsl colors */
|
||||||
|
|
||||||
|
/* tagging - TAGCOUNT must be no greater than 31 */
|
||||||
|
#define TAGCOUNT (9)
|
||||||
|
|
||||||
|
/* logging */
|
||||||
|
static int log_level = WLR_ERROR;
|
||||||
|
/* Autostart */
|
||||||
|
static const char *const autostart[] = {
|
||||||
|
"@barcmd@", NULL,
|
||||||
|
NULL /* terminate */
|
||||||
|
};
|
||||||
|
|
||||||
|
static const Rule rules[] = {
|
||||||
|
/* app_id title tags mask isfloating monitor */
|
||||||
|
/* examples: */
|
||||||
|
{ "Gimp_EXAMPLE", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
|
||||||
|
{ "firefox_EXAMPLE", NULL, 1 << 8, 0, -1 }, /* Start on ONLY tag "9" */
|
||||||
|
};
|
||||||
|
|
||||||
|
/* layout(s) */
|
||||||
|
static const Layout layouts[] = {
|
||||||
|
/* symbol arrange function */
|
||||||
|
{ "[]=", tile },
|
||||||
|
{ "><>", NULL }, /* no layout function means floating behavior */
|
||||||
|
{ "[M]", monocle },
|
||||||
|
};
|
||||||
|
|
||||||
|
/* monitors */
|
||||||
|
/* NOTE: ALWAYS add a fallback rule, even if you are completely sure it won't be used */
|
||||||
|
static const MonitorRule monrules[] = {
|
||||||
|
/* name mfact nmaster scale layout rotate/reflect x y */
|
||||||
|
{ "DP-3", 0.5f, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, 0, 0 },
|
||||||
|
{ "DP-2", 0.5f, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, 2560, 0 },
|
||||||
|
{ "HDMI-A-1", 0.5f, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, 2560+3440, 0 },
|
||||||
|
/* defaults */
|
||||||
|
{ NULL, 0.55f, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1 },
|
||||||
|
};
|
||||||
|
|
||||||
|
/* keyboard */
|
||||||
|
static const struct xkb_rule_names xkb_rules = {
|
||||||
|
/* can specify fields: rules, model, layout, variant, options */
|
||||||
|
/* example:
|
||||||
|
.options = "ctrl:nocaps",
|
||||||
|
*/
|
||||||
|
.options = NULL,
|
||||||
|
};
|
||||||
|
|
||||||
|
static const int repeat_rate = 25;
|
||||||
|
static const int repeat_delay = 600;
|
||||||
|
|
||||||
|
/* Trackpad */
|
||||||
|
static const int tap_to_click = 1;
|
||||||
|
static const int tap_and_drag = 1;
|
||||||
|
static const int drag_lock = 1;
|
||||||
|
static const int natural_scrolling = 0;
|
||||||
|
static const int disable_while_typing = 1;
|
||||||
|
static const int left_handed = 0;
|
||||||
|
static const int middle_button_emulation = 0;
|
||||||
|
/* You can choose between:
|
||||||
|
LIBINPUT_CONFIG_SCROLL_NO_SCROLL
|
||||||
|
LIBINPUT_CONFIG_SCROLL_2FG
|
||||||
|
LIBINPUT_CONFIG_SCROLL_EDGE
|
||||||
|
LIBINPUT_CONFIG_SCROLL_ON_BUTTON_DOWN
|
||||||
|
*/
|
||||||
|
static const enum libinput_config_scroll_method scroll_method = LIBINPUT_CONFIG_SCROLL_2FG;
|
||||||
|
|
||||||
|
/* You can choose between:
|
||||||
|
LIBINPUT_CONFIG_CLICK_METHOD_NONE
|
||||||
|
LIBINPUT_CONFIG_CLICK_METHOD_BUTTON_AREAS
|
||||||
|
LIBINPUT_CONFIG_CLICK_METHOD_CLICKFINGER
|
||||||
|
*/
|
||||||
|
static const enum libinput_config_click_method click_method = LIBINPUT_CONFIG_CLICK_METHOD_BUTTON_AREAS;
|
||||||
|
|
||||||
|
/* You can choose between:
|
||||||
|
LIBINPUT_CONFIG_SEND_EVENTS_ENABLED
|
||||||
|
LIBINPUT_CONFIG_SEND_EVENTS_DISABLED
|
||||||
|
LIBINPUT_CONFIG_SEND_EVENTS_DISABLED_ON_EXTERNAL_MOUSE
|
||||||
|
*/
|
||||||
|
static const uint32_t send_events_mode = LIBINPUT_CONFIG_SEND_EVENTS_ENABLED;
|
||||||
|
|
||||||
|
/* You can choose between:
|
||||||
|
LIBINPUT_CONFIG_ACCEL_PROFILE_FLAT
|
||||||
|
LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE
|
||||||
|
*/
|
||||||
|
static const enum libinput_config_accel_profile accel_profile = LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE;
|
||||||
|
static const double accel_speed = 0.0;
|
||||||
|
|
||||||
|
/* You can choose between:
|
||||||
|
LIBINPUT_CONFIG_TAP_MAP_LRM -- 1/2/3 finger tap maps to left/right/middle
|
||||||
|
LIBINPUT_CONFIG_TAP_MAP_LMR -- 1/2/3 finger tap maps to left/middle/right
|
||||||
|
*/
|
||||||
|
static const enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TAP_MAP_LRM;
|
||||||
|
|
||||||
|
/* If you want to use the windows key for MODKEY, use WLR_MODIFIER_LOGO */
|
||||||
|
#define MODKEY WLR_MODIFIER_LOGO
|
||||||
|
|
||||||
|
#define TAGKEYS(KEY,SKEY,TAG) \
|
||||||
|
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
|
||||||
|
{ MODKEY|WLR_MODIFIER_CTRL, KEY, toggleview, {.ui = 1 << TAG} }, \
|
||||||
|
{ MODKEY|WLR_MODIFIER_SHIFT, SKEY, tag, {.ui = 1 << TAG} }, \
|
||||||
|
{ MODKEY|WLR_MODIFIER_CTRL|WLR_MODIFIER_SHIFT,SKEY,toggletag, {.ui = 1 << TAG} }
|
||||||
|
|
||||||
|
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
|
||||||
|
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
||||||
|
|
||||||
|
/* commands */
|
||||||
|
static const char *termcmd[] = { "@termcmd@", NULL };
|
||||||
|
static const char *editcmd[] = { "@editcmd@", NULL };
|
||||||
|
static const char *menucmd[] = { "@menucmd@", NULL };
|
||||||
|
static const char *playcmd[] = { "@playcmd@", NULL };
|
||||||
|
static const char *scrncmd[] = { "@scrncmd@", NULL };
|
||||||
|
|
||||||
|
static const Key keys[] = {
|
||||||
|
/* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */
|
||||||
|
/* modifier key function argument */
|
||||||
|
{ MODKEY, XKB_KEY_r, spawn, {.v = menucmd} },
|
||||||
|
{ MODKEY, XKB_KEY_Return, spawn, {.v = termcmd} },
|
||||||
|
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Return, spawn, {.v = editcmd} },
|
||||||
|
{ 0, XKB_KEY_XF86AudioPlay, spawn, {.v = playcmd} },
|
||||||
|
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Print, spawn, {.v = scrncmd} },
|
||||||
|
{ MODKEY, XKB_KEY_j, focusstack, {.i = +1} },
|
||||||
|
{ MODKEY, XKB_KEY_k, focusstack, {.i = -1} },
|
||||||
|
{ MODKEY, XKB_KEY_i, incnmaster, {.i = +1} },
|
||||||
|
{ MODKEY, XKB_KEY_d, incnmaster, {.i = -1} },
|
||||||
|
{ MODKEY, XKB_KEY_h, setmfact, {.f = -0.05f} },
|
||||||
|
{ MODKEY, XKB_KEY_l, setmfact, {.f = +0.05f} },
|
||||||
|
{ MODKEY, XKB_KEY_z, zoom, {0} },
|
||||||
|
{ MODKEY, XKB_KEY_Tab, view, {0} },
|
||||||
|
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_C, killclient, {0} },
|
||||||
|
{ MODKEY, XKB_KEY_t, setlayout, {.v = &layouts[0]} },
|
||||||
|
{ MODKEY, XKB_KEY_f, setlayout, {.v = &layouts[1]} },
|
||||||
|
{ MODKEY, XKB_KEY_m, setlayout, {.v = &layouts[2]} },
|
||||||
|
{ MODKEY, XKB_KEY_space, setlayout, {0} },
|
||||||
|
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_space, togglefloating, {0} },
|
||||||
|
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_F, togglefullscreen, {0} },
|
||||||
|
{ MODKEY, XKB_KEY_0, view, {.ui = ~0} },
|
||||||
|
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_parenright, tag, {.ui = ~0} },
|
||||||
|
{ MODKEY, XKB_KEY_comma, focusmon, {.i = WLR_DIRECTION_LEFT} },
|
||||||
|
{ MODKEY, XKB_KEY_period, focusmon, {.i = WLR_DIRECTION_RIGHT} },
|
||||||
|
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_less, tagmon, {.i = WLR_DIRECTION_LEFT} },
|
||||||
|
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_greater, tagmon, {.i = WLR_DIRECTION_RIGHT} },
|
||||||
|
TAGKEYS( XKB_KEY_1, XKB_KEY_exclam, 0),
|
||||||
|
TAGKEYS( XKB_KEY_2, XKB_KEY_at, 1),
|
||||||
|
TAGKEYS( XKB_KEY_3, XKB_KEY_numbersign, 2),
|
||||||
|
TAGKEYS( XKB_KEY_4, XKB_KEY_dollar, 3),
|
||||||
|
TAGKEYS( XKB_KEY_5, XKB_KEY_percent, 4),
|
||||||
|
TAGKEYS( XKB_KEY_6, XKB_KEY_asciicircum, 5),
|
||||||
|
TAGKEYS( XKB_KEY_7, XKB_KEY_ampersand, 6),
|
||||||
|
TAGKEYS( XKB_KEY_8, XKB_KEY_asterisk, 7),
|
||||||
|
TAGKEYS( XKB_KEY_9, XKB_KEY_parenleft, 8),
|
||||||
|
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Q, quit, {0} },
|
||||||
|
|
||||||
|
/* Ctrl-Alt-Backspace and Ctrl-Alt-Fx used to be handled by X server */
|
||||||
|
{ WLR_MODIFIER_CTRL|WLR_MODIFIER_ALT,XKB_KEY_Terminate_Server, quit, {0} },
|
||||||
|
/* Ctrl-Alt-Fx is used to switch to another VT, if you don't know what a VT is
|
||||||
|
* do not remove them.
|
||||||
|
*/
|
||||||
|
#define CHVT(n) { WLR_MODIFIER_CTRL|WLR_MODIFIER_ALT,XKB_KEY_XF86Switch_VT_##n, chvt, {.ui = (n)} }
|
||||||
|
CHVT(1), CHVT(2), CHVT(3), CHVT(4), CHVT(5), CHVT(6),
|
||||||
|
CHVT(7), CHVT(8), CHVT(9), CHVT(10), CHVT(11), CHVT(12),
|
||||||
|
};
|
||||||
|
|
||||||
|
static const Button buttons[] = {
|
||||||
|
{ MODKEY, BTN_LEFT, moveresize, {.ui = CurMove} },
|
||||||
|
{ MODKEY, BTN_MIDDLE, togglefloating, {0} },
|
||||||
|
{ MODKEY, BTN_RIGHT, moveresize, {.ui = CurResize} },
|
||||||
|
};
|
||||||
2
machines/universedesktop/desktop/emptty.conf
Normal file
2
machines/universedesktop/desktop/emptty.conf
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
TTY_NUMBER=7
|
||||||
|
|
||||||
137
machines/universedesktop/desktop/lemurs.toml
Normal file
137
machines/universedesktop/desktop/lemurs.toml
Normal file
@@ -0,0 +1,137 @@
|
|||||||
|
# The PAM service that should be used to login
|
||||||
|
pam_service = "sshd"
|
||||||
|
|
||||||
|
focus_behaviour = "password"
|
||||||
|
|
||||||
|
# General settings for background style
|
||||||
|
[background]
|
||||||
|
show_background = true
|
||||||
|
|
||||||
|
[background.style]
|
||||||
|
# Allow to set the default background color for the login shell
|
||||||
|
color = "black"
|
||||||
|
# Settings for the background block's borders
|
||||||
|
show_border = true
|
||||||
|
border_color = "white"
|
||||||
|
|
||||||
|
# Shutdown option
|
||||||
|
[[power_controls.base_entries]]
|
||||||
|
hint = "Shutdown"
|
||||||
|
hint_color = "dark gray"
|
||||||
|
hint_modifiers = ""
|
||||||
|
key = "F1"
|
||||||
|
cmd = "systemctl poweroff -l"
|
||||||
|
|
||||||
|
# Reboot option
|
||||||
|
[[power_controls.base_entries]]
|
||||||
|
hint = "Reboot"
|
||||||
|
hint_color = "dark gray"
|
||||||
|
hint_modifiers = ""
|
||||||
|
key = "F2"
|
||||||
|
cmd = "systemctl reboot -l"
|
||||||
|
|
||||||
|
[environment_switcher]
|
||||||
|
include_tty_shell = true
|
||||||
|
mover_color_focused = "light cyan"
|
||||||
|
mover_modifiers_focused = "bold"
|
||||||
|
left_mover = "<["
|
||||||
|
right_mover = "]>"
|
||||||
|
|
||||||
|
# Neighbours' color and modifiers whilst the selector is unfocused
|
||||||
|
neighbour_color = "dark gray"
|
||||||
|
neighbour_modifiers = ""
|
||||||
|
|
||||||
|
# Neighbours' color and modifiers whilst the selector is focused
|
||||||
|
neighbour_color_focused = "gray"
|
||||||
|
neighbour_modifiers_focused = ""
|
||||||
|
|
||||||
|
# Margin between neighbours and selected
|
||||||
|
neighbour_margin = 1
|
||||||
|
|
||||||
|
# Selected's color and modifiers whilst the selector is unfocused
|
||||||
|
selected_color = "gray"
|
||||||
|
selected_modifiers = "underlined"
|
||||||
|
|
||||||
|
# Selected's color and modifiers whilst the selector is focused
|
||||||
|
selected_color_focused = "white"
|
||||||
|
selected_modifiers_focused = "bold"
|
||||||
|
|
||||||
|
# The length of the name of the desktop environment which is displayed.
|
||||||
|
max_display_length = 8
|
||||||
|
|
||||||
|
# The text used when no desktop environments are available
|
||||||
|
no_envs_text = "No environments..."
|
||||||
|
|
||||||
|
# The color and modifiers of the 'no desktop environments available text'
|
||||||
|
# whilst the selector is unfocused
|
||||||
|
no_envs_color = "white"
|
||||||
|
no_envs_modifiers = ""
|
||||||
|
|
||||||
|
# The color and modifiers of the 'no desktop environments available text'
|
||||||
|
# whilst the selector is focused
|
||||||
|
no_envs_color_focused = "red"
|
||||||
|
no_envs_modifiers_focused = ""
|
||||||
|
|
||||||
|
[username_field]
|
||||||
|
|
||||||
|
# Remember the username for the next time after a successful login attempt.
|
||||||
|
remember = true
|
||||||
|
|
||||||
|
[username_field.style]
|
||||||
|
# Enables showing a title
|
||||||
|
show_title = true
|
||||||
|
# The text used within the title
|
||||||
|
title = "Login"
|
||||||
|
|
||||||
|
# The title's color and modifiers whilst the username field is unfocused
|
||||||
|
title_color = "white"
|
||||||
|
content_color = "white"
|
||||||
|
|
||||||
|
# The title's color and modifiers whilst the username field is focused
|
||||||
|
title_color_focused = "blue"
|
||||||
|
content_color_focused = "blue"
|
||||||
|
|
||||||
|
# Enables showing the borders
|
||||||
|
show_border = true
|
||||||
|
# The borders' color and modifiers whilst the username field is unfocused
|
||||||
|
border_color = "white"
|
||||||
|
# The borders' color and modifiers whilst the username field is focused
|
||||||
|
border_color_focused = "light blue"
|
||||||
|
|
||||||
|
# Constrain the width of the username field
|
||||||
|
use_max_width = true
|
||||||
|
# The contraint of the username field's width
|
||||||
|
max_width = 48
|
||||||
|
|
||||||
|
[password_field]
|
||||||
|
|
||||||
|
# The character used for replacement when typing a password. Leave empty for no
|
||||||
|
# feedback.
|
||||||
|
# Note: Only one character is accepted.
|
||||||
|
content_replacement_character = "▮"
|
||||||
|
|
||||||
|
[password_field.style]
|
||||||
|
# Enables showing a title
|
||||||
|
show_title = true
|
||||||
|
# The text used within the title
|
||||||
|
title = "Password"
|
||||||
|
|
||||||
|
# The title's color and modifiers whilst the password field is unfocused
|
||||||
|
title_color = "white"
|
||||||
|
content_color = "white"
|
||||||
|
|
||||||
|
# The title's color and modifiers whilst the password field is focused
|
||||||
|
title_color_focused = "blue"
|
||||||
|
content_color_focused = "blue"
|
||||||
|
|
||||||
|
# Enables showing the borders
|
||||||
|
show_border = true
|
||||||
|
# The borders' color and modifiers whilst the username field is unfocused
|
||||||
|
border_color = "white"
|
||||||
|
# The borders' color and modifiers whilst the username field is focused
|
||||||
|
border_color_focused = "blue"
|
||||||
|
|
||||||
|
# Constrain the width of the password field
|
||||||
|
use_max_width = true
|
||||||
|
# The contraint of the password field's width
|
||||||
|
max_width = 48
|
||||||
38
machines/universedesktop/desktop/wayland.nix
Normal file
38
machines/universedesktop/desktop/wayland.nix
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
{ config, pkgs, lib, ... }: {
|
||||||
|
# Wayland support
|
||||||
|
hardware = {
|
||||||
|
opengl.enable = true;
|
||||||
|
opengl.driSupport = true;
|
||||||
|
opengl.driSupport32Bit = true;
|
||||||
|
|
||||||
|
nvidia = {
|
||||||
|
modesetting.enable = true;
|
||||||
|
powerManagement.enable = false;
|
||||||
|
powerManagement.finegrained = false;
|
||||||
|
nvidiaSettings = true;
|
||||||
|
open = false;
|
||||||
|
package = let
|
||||||
|
rcu_patch = pkgs.fetchpatch {
|
||||||
|
url = "https://github.com/gentoo/gentoo/raw/c64caf53/x11-drivers/nvidia-drivers/files/nvidia-drivers-470.223.02-gpl-pfn_valid.patch";
|
||||||
|
hash = "sha256-eZiQQp2S/asE7MfGvfe6dA/kdCvek9SYa/FFGp24dVg=";
|
||||||
|
};
|
||||||
|
in config.boot.kernelPackages.nvidiaPackages.mkDriver {
|
||||||
|
version = "535.154.05";
|
||||||
|
sha256_64bit = "sha256-fpUGXKprgt6SYRDxSCemGXLrEsIA6GOinp+0eGbqqJg=";
|
||||||
|
sha256_aarch64 = "sha256-G0/GiObf/BZMkzzET8HQjdIcvCSqB1uhsinro2HLK9k=";
|
||||||
|
openSha256 = "sha256-wvRdHguGLxS0mR06P5Qi++pDJBCF8pJ8hr4T8O6TJIo=";
|
||||||
|
settingsSha256 = "sha256-9wqoDEWY4I7weWW05F4igj1Gj9wjHsREFMztfEmqm10=";
|
||||||
|
persistencedSha256 = "sha256-d0Q3Lk80JqkS1B54Mahu2yY/WocOqFFbZVBh+ToGhaE=";
|
||||||
|
patches = [ rcu_patch ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
programs.xwayland.enable = true;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
# Minecraft can behave oddly on wayland without this
|
||||||
|
glfw-wayland-minecraft
|
||||||
|
# Screen mirroring:
|
||||||
|
wdomirror
|
||||||
|
];
|
||||||
|
}
|
||||||
6
machines/universedesktop/fonts.nix
Normal file
6
machines/universedesktop/fonts.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ config, pkgs, lib, ... }: {
|
||||||
|
fonts.packages = with pkgs; [
|
||||||
|
julia-mono
|
||||||
|
bqn386
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -9,36 +9,6 @@
|
|||||||
};
|
};
|
||||||
})];
|
})];
|
||||||
|
|
||||||
# Wayland support
|
|
||||||
hardware = {
|
|
||||||
opengl.enable = true;
|
|
||||||
opengl.driSupport = true;
|
|
||||||
opengl.driSupport32Bit = true;
|
|
||||||
|
|
||||||
nvidia = {
|
|
||||||
modesetting.enable = true;
|
|
||||||
powerManagement.enable = true;
|
|
||||||
open = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
services.xserver.enable = true;
|
|
||||||
services.displayManager.sddm.enable = true;
|
|
||||||
services.xserver.desktopManager.plasma5.enable = true;
|
|
||||||
programs.xwayland.enable = true;
|
|
||||||
# Configure keymap in X11
|
|
||||||
services.xserver.xkb.layout = "us";
|
|
||||||
# Enable sound.
|
|
||||||
# rtkit is optional but recommended
|
|
||||||
security.rtkit.enable = true;
|
|
||||||
services.pipewire = {
|
|
||||||
enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
# If you want to use JACK applications, uncomment this
|
|
||||||
# jack.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Bitwarden Outdaed Nodejs
|
# Bitwarden Outdaed Nodejs
|
||||||
nixpkgs.config.permittedInsecurePackages = [
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
"openssl-1.1.1v"
|
"openssl-1.1.1v"
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
{ lib, config, pkgs, ... }: {
|
{ lib, config, pkgs, ... }: {
|
||||||
# For steam
|
# For steam
|
||||||
services.flatpak.enable = true;
|
services.flatpak.enable = true;
|
||||||
|
## Flatpak requires this
|
||||||
|
xdg.portal.enable = true;
|
||||||
|
xdg.portal.wlr.enable = true;
|
||||||
|
xdg.portal.config.common.default = "*";
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
# Game compat
|
# Game compat
|
||||||
programs.gamemode.enable = true;
|
programs.gamemode.enable = true;
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{ lib, config, pkgs, ... }: {
|
{ lib, config, pkgs, ... }: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
kitty
|
|
||||||
me-emacs
|
me-emacs
|
||||||
texlive.combined.scheme-full
|
texlive.combined.scheme-full
|
||||||
pandoc
|
pandoc
|
||||||
|
|||||||
Reference in New Issue
Block a user