working on nvidia settings

This commit is contained in:
Matt Nish-Lapidus 2024-10-07 23:39:25 -04:00
parent 36798975c7
commit 1781b9c4ad
9 changed files with 2176 additions and 428 deletions

View file

@ -0,0 +1,9 @@
#!/usr/bin/env fish
begin
set -lx __NV_PRIME_RENDER_OFFLOAD=1
set -lx __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
set -lx __GLX_VENDOR_LIBRARY_NAME=nvidia
set -lx __VK_LAYER_NV_optimus=NVIDIA_only
exec $argv
end

View file

@ -0,0 +1,11 @@
# rebuild nixos from config
sysup:
sudo nixos-rebuild switch --flake ~/source/nixos-config/#eddie
# rebuild home from config
homeup:
home-manager switch --flake ~/source/nixos-config#emenel
# update flake repos
flakeup:
cd '~/source/nixos-config' && sudo nix flake update

View file

@ -0,0 +1,26 @@
(defcfg
input (device-file "/dev/input/by-id/usb-nullbits_SNAP-event-kbd")
output (uinput-sink "kmonad-snap")
fallthrough true)
(defsrc
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
grv 1 2 3 4 5 6 7 8 9 0 - = \ del
tab q w e r t y u i o p [ ] bspc
caps a s d f g h j k l ; ' ret
lsft z x c v b n m , . / rsft
lctl slck lmet lalt spc ralt rmet rctrl)
(defalias
ctrlesc (tap-hold-next-release 200 esc lctrl)
sp-lsft (tap-hold-next-release 200 \( lsft)
sp-rsft (tap-hold-next-release 200 \) lsft)
hypr C-A-M-S)
(deflayer qwerty
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
grv 1 2 3 4 5 6 7 8 9 0 - = \ del
tab q w e r t y u i o p [ ] bspc
@ctrlesc a s d f g h j k l ; ' ret
@sp-lsft z x c v b n m , . / @sp-rsft
@hypr lctl lalt lmet spc rmet ralt rctrl)

343
flake.lock generated
View file

@ -1,38 +1,5 @@
{
"nodes": {
"aquamarine": {
"inputs": {
"hyprutils": [
"hyprland",
"hyprutils"
],
"hyprwayland-scanner": [
"hyprland",
"hyprwayland-scanner"
],
"nixpkgs": [
"hyprland",
"nixpkgs"
],
"systems": [
"hyprland",
"systems"
]
},
"locked": {
"lastModified": 1727261104,
"narHash": "sha256-rxDI7WrxIRV9it9mDCHcLa7xQykf1JloXnoXr5xQ8zI=",
"owner": "hyprwm",
"repo": "aquamarine",
"rev": "b82fdaff917582a9d568969e15e61b398c71e990",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "aquamarine",
"type": "github"
}
},
"flake-compat": {
"locked": {
"lastModified": 1717312683,
@ -72,7 +39,7 @@
},
"flake-utils": {
"inputs": {
"systems": "systems_2"
"systems": "systems"
},
"locked": {
"lastModified": 1726560853,
@ -109,194 +76,6 @@
"type": "github"
}
},
"hyprcursor": {
"inputs": {
"hyprlang": [
"hyprland",
"hyprlang"
],
"nixpkgs": [
"hyprland",
"nixpkgs"
],
"systems": [
"hyprland",
"systems"
]
},
"locked": {
"lastModified": 1727532803,
"narHash": "sha256-ZaZ7h7PY8mQc4vtGmVqWLAq9CAO02gHMyNR5yY8zDmM=",
"owner": "hyprwm",
"repo": "hyprcursor",
"rev": "b98726e431d4d3ed58bd58bee1047cdb81cec69f",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "hyprcursor",
"type": "github"
}
},
"hyprland": {
"inputs": {
"aquamarine": "aquamarine",
"hyprcursor": "hyprcursor",
"hyprland-protocols": "hyprland-protocols",
"hyprlang": "hyprlang",
"hyprutils": "hyprutils",
"hyprwayland-scanner": "hyprwayland-scanner",
"nixpkgs": "nixpkgs",
"systems": "systems",
"xdph": "xdph"
},
"locked": {
"lastModified": 1728031287,
"narHash": "sha256-uGudMapfYGI7mY5mOZrb5tXYeGhp8Oar7w72qyeFiQA=",
"ref": "refs/heads/main",
"rev": "1ed925b69c2854a3f345cbeb7dca29a6286ca926",
"revCount": 5289,
"submodules": true,
"type": "git",
"url": "https://github.com/hyprwm/Hyprland"
},
"original": {
"submodules": true,
"type": "git",
"url": "https://github.com/hyprwm/Hyprland"
}
},
"hyprland-protocols": {
"inputs": {
"nixpkgs": [
"hyprland",
"nixpkgs"
],
"systems": [
"hyprland",
"systems"
]
},
"locked": {
"lastModified": 1727451107,
"narHash": "sha256-qV9savtHwmZUa0eJE294WYJjKPGB2+bJhwByFShsVyo=",
"owner": "hyprwm",
"repo": "hyprland-protocols",
"rev": "6b3261ee13a6d2b99de79a31d352f6996e35bde3",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "hyprland-protocols",
"type": "github"
}
},
"hyprland-protocols_2": {
"inputs": {
"nixpkgs": [
"hyprland",
"xdph",
"nixpkgs"
],
"systems": [
"hyprland",
"xdph",
"systems"
]
},
"locked": {
"lastModified": 1721326555,
"narHash": "sha256-zCu4R0CSHEactW9JqYki26gy8h9f6rHmSwj4XJmlHgg=",
"owner": "hyprwm",
"repo": "hyprland-protocols",
"rev": "5a11232266bf1a1f5952d5b179c3f4b2facaaa84",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "hyprland-protocols",
"type": "github"
}
},
"hyprlang": {
"inputs": {
"hyprutils": [
"hyprland",
"hyprutils"
],
"nixpkgs": [
"hyprland",
"nixpkgs"
],
"systems": [
"hyprland",
"systems"
]
},
"locked": {
"lastModified": 1725997860,
"narHash": "sha256-d/rZ/fHR5l1n7PeyLw0StWMNLXVU9c4HFyfskw568so=",
"owner": "hyprwm",
"repo": "hyprlang",
"rev": "dfeb5811dd6485490cce18d6cc1e38a055eea876",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "hyprlang",
"type": "github"
}
},
"hyprutils": {
"inputs": {
"nixpkgs": [
"hyprland",
"nixpkgs"
],
"systems": [
"hyprland",
"systems"
]
},
"locked": {
"lastModified": 1727300645,
"narHash": "sha256-OvAtVLaSRPnbXzOwlR1fVqCXR7i+ICRX3aPMCdIiv+c=",
"owner": "hyprwm",
"repo": "hyprutils",
"rev": "3f5293432b6dc6a99f26aca2eba3876d2660665c",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "hyprutils",
"type": "github"
}
},
"hyprwayland-scanner": {
"inputs": {
"nixpkgs": [
"hyprland",
"nixpkgs"
],
"systems": [
"hyprland",
"systems"
]
},
"locked": {
"lastModified": 1726874836,
"narHash": "sha256-VKR0sf0PSNCB0wPHVKSAn41mCNVCnegWmgkrneKDhHM=",
"owner": "hyprwm",
"repo": "hyprwayland-scanner",
"rev": "500c81a9e1a76760371049a8d99e008ea77aa59e",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "hyprwayland-scanner",
"type": "github"
}
},
"kmonad": {
"inputs": {
"nixpkgs": [
@ -327,11 +106,11 @@
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1727710043,
"narHash": "sha256-NpTnTg8oOVvntlTi/t8BUe5msrMmkiZFiOW22fc7B+g=",
"lastModified": 1728216729,
"narHash": "sha256-HsisE2yMld0LckvQ3v/00bXFg11E5Q2XI8taPUewDPA=",
"owner": "nix-community",
"repo": "lib-aggregate",
"rev": "d03a5f88a345d26ca13918071d42dcc960233183",
"rev": "6c4cf448d33ce86bcc06c6d50bcecc33666105ee",
"type": "github"
},
"original": {
@ -364,15 +143,15 @@
"inputs": {
"flake-parts": "flake-parts",
"nix-github-actions": "nix-github-actions",
"nixpkgs": "nixpkgs_3",
"nixpkgs": "nixpkgs_2",
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1726859423,
"narHash": "sha256-7H4u29z/Qwi/KsXS3ucrvXr/gx2fqT48i8EpKMBpMvs=",
"lastModified": 1727953523,
"narHash": "sha256-cT8fN56OHCqTajmj2JwDL5uhTIEFvVSnBRvypXfZ9f4=",
"owner": "nix-community",
"repo": "nix-eval-jobs",
"rev": "6684d2074e3cde8a180ef87fac284d6f02ac16d0",
"rev": "7ae693d28c5922533ce86f348ddb6709a2beffbf",
"type": "github"
},
"original": {
@ -420,11 +199,11 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1727665282,
"narHash": "sha256-oKtfbQB1MBypqIyzkC8QCQcVGOa1soaXaGgcBIoh14o=",
"lastModified": 1728269138,
"narHash": "sha256-oKxDImsOvgUZMY4NwXVyUc/c1HiU2qInX+b5BU0yXls=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "11c43c830e533dad1be527ecce379fcf994fbbb5",
"rev": "ecfcd787f373f43307d764762e139a7cdeb9c22b",
"type": "github"
},
"original": {
@ -436,15 +215,15 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1727348695,
"narHash": "sha256-J+PeFKSDV+pHL7ukkfpVzCOO7mBSrrpJ3svwBFABbhI=",
"owner": "NixOS",
"lastModified": 1728018373,
"narHash": "sha256-NOiTvBbRLIOe5F6RbHaAh6++BNjsb149fGZd1T4+KBg=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "1925c603f17fc89f4c8f6bf6f631a802ad85d784",
"rev": "bc947f541ae55e999ffdb4013441347d83b00feb",
"type": "github"
},
"original": {
"owner": "NixOS",
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
@ -452,11 +231,11 @@
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1727571693,
"narHash": "sha256-b7sFVeqMtz8xntCL3tBY3O8suTg5PeF53LTL3eCcKyc=",
"lastModified": 1728176478,
"narHash": "sha256-px3Q0W//c+mZ4kPMXq4poztsjtXM1Ja1rN+825YMDUQ=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "bb58a3bf239e03fca9d51062e2fe028a4ea5a3d1",
"rev": "b61309c3c1b6013d36299bc8285612865b3b9e4c",
"type": "github"
},
"original": {
@ -467,11 +246,11 @@
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1727907660,
"narHash": "sha256-QftbyPoieM5M50WKUMzQmWtBWib/ZJbHo7mhj5riQec=",
"lastModified": 1728193676,
"narHash": "sha256-PbDWAIjKJdlVg+qQRhzdSor04bAPApDqIv2DofTyynk=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "5966581aa04be7eff830b9e1457d56dc70a0b798",
"rev": "ecbc1ca8ffd6aea8372ad16be9ebbb39889e55b6",
"type": "github"
},
"original": {
@ -491,11 +270,11 @@
]
},
"locked": {
"lastModified": 1727812556,
"narHash": "sha256-U9cEs2W0eLvIS0kEMBGP8eZMdrpoHqynByth/mu2Nvc=",
"lastModified": 1728219351,
"narHash": "sha256-FVXtRvS0IJCvIadkz/ULFKKceNY/d6hhcNZO73E51/A=",
"owner": "nix-community",
"repo": "nixpkgs-wayland",
"rev": "a40e6b047b6166aed5fab801e99a8d6b980d4680",
"rev": "9463b5d319bc79665db902a1007d1846d4218f62",
"type": "github"
},
"original": {
@ -505,22 +284,6 @@
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1727802920,
"narHash": "sha256-HP89HZOT0ReIbI7IJZJQoJgxvB2Tn28V6XS3MNKnfLs=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "27e30d177e57d912d614c88c622dcfdb2e6e6515",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1723221148,
"narHash": "sha256-7pjpeQlZUNQ4eeVntytU3jkw9dFK3k1Htgk2iuXjaD8=",
@ -539,32 +302,16 @@
"root": {
"inputs": {
"home-manager": "home-manager",
"hyprland": "hyprland",
"kmonad": "kmonad",
"musnix": "musnix",
"nix-flatpak": "nix-flatpak",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_2",
"nixpkgs": "nixpkgs",
"nixpkgs-stable": "nixpkgs-stable",
"nixpkgs-wayland": "nixpkgs-wayland"
}
},
"systems": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"owner": "nix-systems",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default-linux",
"type": "github"
}
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
@ -600,44 +347,6 @@
"repo": "treefmt-nix",
"type": "github"
}
},
"xdph": {
"inputs": {
"hyprland-protocols": "hyprland-protocols_2",
"hyprlang": [
"hyprland",
"hyprlang"
],
"hyprutils": [
"hyprland",
"hyprutils"
],
"hyprwayland-scanner": [
"hyprland",
"hyprwayland-scanner"
],
"nixpkgs": [
"hyprland",
"nixpkgs"
],
"systems": [
"hyprland",
"systems"
]
},
"locked": {
"lastModified": 1727524473,
"narHash": "sha256-1DGktDtSWIJpnDbVoj/qpvJSH5zg6JbOfuh6xqZMap0=",
"owner": "hyprwm",
"repo": "xdg-desktop-portal-hyprland",
"rev": "7e500e679ede40e79cf2d89b5f5fa3e34923bd26",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "xdg-desktop-portal-hyprland",
"type": "github"
}
}
},
"root": "root",

View file

@ -30,10 +30,11 @@
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
#razer-laptop-control.url = "path:/home/emenel/source/_src/razer-laptop-control-no-dkms";
# razer-laptop-control.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs @ {self, nixpkgs, nixpkgs-stable, home-manager, nix-flatpak, kmonad, musnix, hyprland, ... }: {
outputs = inputs @ {self, nixpkgs, nixpkgs-stable, home-manager, nix-flatpak, kmonad, musnix, ... }: {
nixpkgs.overlays = [ inputs.nixpkgs-wayland.overlay ];
nixosConfigurations = {
@ -43,6 +44,7 @@
nix-flatpak.nixosModules.nix-flatpak
kmonad.nixosModules.default
musnix.nixosModules.musnix
# razer-laptop-control.nixosModules.default
./system/eddie/configuration.nix
];
};

View file

@ -1,10 +1,6 @@
{ nix-flatpak, lib, pkgs, inputs, ... }:
{
imports = [
./razer-speaker-fix.nix
];
nixpkgs.config.allowUnfree = true;
home = {
@ -91,7 +87,6 @@
nodePackages.svelte-language-server
nodePackages.typescript
nixd
fishPlugins.foreign-env
@ -110,9 +105,12 @@
gnomeExtensions.just-perfection
gnomeExtensions.dash-to-dock
gnomeExtensions.solaar-extension
gnomeExtensions.kmonad-toggle
gnomeExtensions.forge
gnome-software
gnome-tweaks
gnome-photos
sushi
colloid-gtk-theme
colloid-icon-theme
whitesur-gtk-theme
@ -120,10 +118,14 @@
whitesur-icon-theme
graphite-gtk-theme
graphite-cursors
waycorner
icloudpd
squirreldisk
papers
newsflash
planify
fuzzel
wineWowPackages.stagingFull
wineWowPackages.fonts
@ -212,7 +214,7 @@
username = "emenel";
homeDirectory = "/home/emenel";
sessionPath = [ "/home/emenel/.config/emacs/bin" "/home/emenel/.npm-packages/bin" "/home/emenel/Applications" ];
sessionPath = [ "/home/emenel/.config/emacs/bin" "/home/emenel/.npm-packages/bin" "/home/emenel/Applications" "/home/emenel/.local/bin" "/home/emenel/.local/share" ];
sessionVariables = {
EDITOR = "emacsclient -r";
@ -235,6 +237,7 @@
enable = true;
shellAliases = {
"ls" = "eza";
".j" = "just -g";
};
};
starship = {
@ -295,44 +298,6 @@
firefox.enable = true;
};
wayland.windowManager.hyprland = {
enable = true; # enable Hyprland
xwayland.enable = true;
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
systemd.variables = ["--all"];
# plugins = [
# inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprbars
# ];
settings = {
"$mod" = "SUPER";
bind =
[
"$mod, F, exec, zen"
"$mod, T, exec, wezterm"
", Print, exec, grimblast copy area"
];
# ++ (
# # workspaces
# # binds $mod + [shift +] {1..9} to [move to] workspace {1..9}
# builtins.concatLists (builtins.genList (i:
# let ws = i + 1;
# in [
# "$mod, code:1${toString i}, workspace, ${toString ws}"
# "$mod SHIFT, code:1${toString i}, movetoworkspace, ${toString ws}"
# ]
# )
# 9)
# );
# terminal = "wezterm";
};
extraConfig = ''
# Monitor
monitor=eDP-1,2560x1600@240,auto,1
'';
};
home.sessionVariables.NIXOS_OZONE_WL = "1";
dconf.settings = {
@ -371,6 +336,31 @@
};
};
# wayland.windowManager.sway = {
# enable = true;
# config = rec {
# modifier = "Mod4";
# terminal = "wezterm";
# startup = [
# # Launch Firefox on start
# {command = "firefox";}
# ];
# };
# };
# kanshi systemd service
# systemd.user.services.kanshi = {
# #description = "kanshi daemon";
# environment = {
# WAYLAND_DISPLAY="wayland-1";
# DISPLAY = ":0";
# };
# serviceConfig = {
# Type = "simple";
# ExecStart = ''${pkgs.kanshi}/bin/kanshi -c kanshi_config_file'';
# };
# };
xdg.systemDirs.data = [
"/home/emenel/.local/share/applications/wine/Programs"
"/home/emenel/.local/share/applications"
@ -389,7 +379,7 @@
home.file.".npmrc".source = ../dotfiles/dot_npmrc;
xdg.configFile."kmonad".source = ../dotfiles/dot_config/kmonad;
xdg.configFile."just".source = ../dotfiles/dot_config/just/justfile;
xdg.configFile."just/justfile".source = ../dotfiles/dot_config/just/justfile;
xdg.configFile."starship.toml".source = ../dotfiles/dot_config/starship.toml;
xdg.configFile."wezterm".source = ../dotfiles/dot_config/wezterm;
xdg.configFile."git".source = ../dotfiles/dot_config/git;
@ -405,37 +395,4 @@
home.file.".mbsyncrc".source = ../dotfiles/dot_mbsyncrc;
home.file.".local/share/flf".source = ../dotfiles/dot_local/share/flf;
############ ACCOUNTS
# accounts.calendar = {
# basePath = ".calendars";
# accounts = {
# emenel = {
# primaryCollection = "Primary";
# name = "matt@emenel.ca";
# primary = true;
# remote = {
# passwordCommand = [ "rbw" "get" "nixos-fastmail" ];
# type = "caldav";
# url = "https://caldav.fastmail.com";
# userName = "matt@emenel.ca";
# };
# local = {
# fileExt = ".ics";
# type = "filesystem";
# };
# vdirsyncer = {
# enable = true;
# collections = [ "87220838-CCD7-11ED-AB3D-F5DBFBDED781" ];
# itemTypes = ["VEVENT"];
# metadata = ["displayname" "color"];
# };
# khal.enable = true;
# khal.color = "dark cyan";
# khal.type = "discover";
# khal.addresses = [ "matt@emenel.ca" ];
# };
# };
# };
}

View file

@ -1,11 +1,13 @@
{ config, lib, pkgs, ... }:
{
systemd.services.razer-speaker-fix = {
description = "Workaround for the Razer Blade 14 internal audio device";
wantedBy = [ "multi-user.target" ];
restartIfChanged = false;
script = ''
systemd.services.razer-speaker-fix = {
enable = true;
# description = "Workaround for the Razer Blade 14 internal audio device";
wantedBy = [ "multi-user.target" ];
after = [ "multi-user.target" ];
script = ''
#!/bin/sh
hda-verb /dev/snd/hwC2D0 0x20 0x500 0x7
hda-verb /dev/snd/hwC2D0 0x20 0x500 0x7
@ -2009,5 +2011,5 @@ hda-verb /dev/snd/hwC2D0 0x20 0x500 0x23
hda-verb /dev/snd/hwC2D0 0x20 0x400 0xdd00
'';
};
};
}

View file

@ -8,6 +8,7 @@
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./razer-speaker-fix.nix
];
# Allow unfree packages
@ -18,25 +19,35 @@
wget
home-manager
curl
#git
git-lfs
tailscale
rsync
kmonad
gnupg
openrazer-daemon
linuxKernel.packages.linux_6_10.openrazer
clinfo
pyprland
hyprpicker
hyprcursor
hyprlock
hypridle
hyprpaper
greetd.tuigreet
alsa-utils
alsa-tools
util-linux
];
# services.razer-laptop-control = {
# enable = true;
# };
#services.upower.enable = true;
# systemd.user.services."razerdaemon" = {
# description = "Razer laptop control daemon";
# serviceConfig = {
# Type = "simple";
# ExecStartPre = "${pkgs.coreutils}/bin/mkdir -p %h/.local/share/razercontrol";
# ExecStart = "${pkgs.razer-laptop-control}/libexec/daemon";
# };
# wantedBy = [ "default.target" ];
# };
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
@ -50,8 +61,11 @@
systemd.services.tailscaled.after = ["NetworkManager-wait-online.service"];
hardware = {
openrazer.enable = true;
openrazer.users = [ "emenel" ];
openrazer = {
enable = true;
users = [ "emenel" ];
};
graphics = {
enable = true;
enable32Bit = true;
@ -116,8 +130,6 @@
nix.package = pkgs.nixFlakes;
nix.settings = {
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
substituters = ["https://hyprland.cachix.org"];
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
auto-optimise-store = true;
};
@ -127,23 +139,17 @@
services.xserver.enable = true;
# Enable hyprland and greetd
# services.greetd = {
# enable = true;
# settings = {
# default_session = {
# command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --time-format '%I:%M %p | %a • %h | %F' --cmd Hyprland";
# user = "greeter";
# };
# };
# };
# programs.hyprland.enable = true; # enable Hyprland
# Enable the GNOME Desktop Environment.
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
services.xserver.deviceSection = ''Option "TearFree" "true"''; # For amdgpu.
services.gnome.gnome-keyring.enable = true;
# enable Sway window manager
# programs.sway = {
# enable = true;
# wrapperFeatures.gtk = true;
# };
programs.dconf.enable = true;
@ -154,6 +160,7 @@
services.printing.enable = true;
services.tailscale.enable = true;
services.envfs.enable = true;
#services.emacs = {
# enable = true;
@ -217,6 +224,10 @@
device = "/dev/input/by-id/usb-Keebio_Quefrency_Rev._5-event-kbd";
config = builtins.readFile ../../dotfiles/dot_config/kmonad/quefrency.kbd;
};
snap = {
device = "/dev/input/by-id/usb-nullbits_SNAP-event-kbd";
config = builtins.readFile ../../dotfiles/dot_config/kmonad/snap.kbd;
};
razer = {
device = "/dev/input/by-id/usb-Razer_Razer_Blade-if01-event-kbd";
config = builtins.readFile ../../dotfiles/dot_config/kmonad/razer.kbd;

File diff suppressed because it is too large Load diff