Compare commits

...

4 commits

Author SHA1 Message Date
Sean Buckley
eb578f67be add PoC base64 functions 2024-08-15 19:15:37 -04:00
Sean Buckley
2e05efff6d disable gnomeExtensions.appindicator due to bug 2024-08-13 12:13:04 -04:00
Sean Buckley
6e8406a6a5 switch back to stable nvidia driver for wayland 2024-08-12 23:09:02 -04:00
Sean Buckley
788fb66cec flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/dc14ed91132ee3a26255d01d8fd0c1f5bff27b2f' (2024-07-23)
  → 'github:NixOS/nixpkgs/5e0ca22929f3342b19569b21b2f3462f053e497b' (2024-08-09)
2024-08-12 13:09:51 -04:00
5 changed files with 22 additions and 11 deletions

View file

@ -17,11 +17,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1721743106, "lastModified": 1723175592,
"narHash": "sha256-adRZhFpBTnHiK3XIELA3IBaApz70HwCYfv7xNrHjebA=", "narHash": "sha256-M0xJ3FbDUc4fRZ84dPGx5VvgFsOzds77KiBMW/mMTnI=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "dc14ed91132ee3a26255d01d8fd0c1f5bff27b2f", "rev": "5e0ca22929f3342b19569b21b2f3462f053e497b",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -34,6 +34,7 @@
nixpkgs.legacyPackages.${system}.nixpkgs-fmt); nixpkgs.legacyPackages.${system}.nixpkgs-fmt);
lib = { lib = {
base64 = import lib/base64.nix;
gen-ssh-config = import lib/gen-ssh-config.nix lib; gen-ssh-config = import lib/gen-ssh-config.nix lib;
ssh-keys = import lib/ssh-keys.nix; ssh-keys = import lib/ssh-keys.nix;

View file

@ -1,14 +1,7 @@
{ config, ... }:
{ {
# NVIDIA-only using MUX switch in BIOS. # NVIDIA-only using MUX switch in BIOS.
environment.variables.MUTTER_DEBUG_FORCE_KMS_MODE = "simple"; environment.variables.MUTTER_DEBUG_FORCE_KMS_MODE = "simple";
hardware.nvidia.modesetting.enable = true; hardware.nvidia.modesetting.enable = true;
hardware.nvidia.open = false; hardware.nvidia.open = false;
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ];
# Nvidia driver 555 is significant for wayland support.
# Currently version 555 is beta.
hardware.nvidia.package = builtins.trace
"Using beta nvidia driver"
config.boot.kernelPackages.nvidiaPackages.beta;
} }

15
lib/base64.nix Normal file
View file

@ -0,0 +1,15 @@
{ runCommand }: {
b64decode = input:
builtins.readFile
(runCommand "b64decode" { } ''
base64 -d >$out <${builtins.toFile "input" input}
'');
b64encode = input:
builtins.readFile
(runCommand "b64encode" { } ''
base64 -w0 >$out <${builtins.toFile "input" input}
'');
}

View file

@ -21,7 +21,9 @@ in
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
gnome3.gnome-tweaks gnome3.gnome-tweaks
gnomeExtensions.appindicator
# https://github.com/ubuntu/gnome-shell-extension-appindicator/issues/441
# gnomeExtensions.appindicator
(writeShellScriptBin "x-terminal-emulator" '' (writeShellScriptBin "x-terminal-emulator" ''
exec kitty "$@" exec kitty "$@"