satori: yearly visit

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2024-02-25 17:07:30 +05:30
parent d4554d43ae
commit 855dd5d445
15 changed files with 307 additions and 341 deletions

21
hosts/modules/nix.nix Normal file
View File

@@ -0,0 +1,21 @@
{ config, pkgs, ... }:
{
nix = {
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
settings = {
auto-optimise-store = true;
trusted-users = [ "root" "natto" ];
substituters = [
"https://nix-gaming.cachix.org"
"https://nix-community.cachix.org"
];
trusted-public-keys = [
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
};
}

10
hosts/modules/wayland.nix Normal file
View File

@@ -0,0 +1,10 @@
{ inputs, pkgs, ... }:
{
xdg.portal = {
enable = true;
extraPortals = [
inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland
];
};
}

43
hosts/modules/xorg.nix Normal file
View File

@@ -0,0 +1,43 @@
{ config, lib, ... }:
#let
# compiledLayout = pkgs.runCommand "keyboard-layout" {} ''
# ${pkgs.xorg.xkbcomp}/bin/xkbcomp ${./colemak-dh.xkb} $out
# '';
#in
{
services = {
xserver = {
enable = true;
libinput = {
enable = true;
mouse = {
accelSpeed = "0";
# accelProfile = "flat";
};
touchpad = {
middleEmulation = false;
clickMethod = "buttonareas";
tapping = true;
naturalScrolling = true;
};
};
displayManager = {
startx = {
enable = true;
};
};
extraLayouts = {
colemak = {
description = "Colemak Layouts";
languages = [ "eng" ];
symbolsFile = ./colemak;
};
};
layout = "us";
xkbVariant = "colemak_dh"; # trying to ditch DHz now
autoRepeatDelay = 320;
autoRepeatInterval = 30;
};
};
}