mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
Compare commits
4 commits
108cda24bd
...
eb578f67be
Author | SHA1 | Date | |
---|---|---|---|
|
eb578f67be | ||
|
2e05efff6d | ||
|
6e8406a6a5 | ||
|
788fb66cec |
5 changed files with 22 additions and 11 deletions
|
@ -17,11 +17,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1721743106,
|
||||
"narHash": "sha256-adRZhFpBTnHiK3XIELA3IBaApz70HwCYfv7xNrHjebA=",
|
||||
"lastModified": 1723175592,
|
||||
"narHash": "sha256-M0xJ3FbDUc4fRZ84dPGx5VvgFsOzds77KiBMW/mMTnI=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "dc14ed91132ee3a26255d01d8fd0c1f5bff27b2f",
|
||||
"rev": "5e0ca22929f3342b19569b21b2f3462f053e497b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
nixpkgs.legacyPackages.${system}.nixpkgs-fmt);
|
||||
|
||||
lib = {
|
||||
base64 = import lib/base64.nix;
|
||||
gen-ssh-config = import lib/gen-ssh-config.nix lib;
|
||||
ssh-keys = import lib/ssh-keys.nix;
|
||||
|
||||
|
|
|
@ -1,14 +1,7 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
# NVIDIA-only using MUX switch in BIOS.
|
||||
environment.variables.MUTTER_DEBUG_FORCE_KMS_MODE = "simple";
|
||||
hardware.nvidia.modesetting.enable = true;
|
||||
hardware.nvidia.open = false;
|
||||
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
15
lib/base64.nix
Normal 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}
|
||||
'');
|
||||
|
||||
}
|
|
@ -21,7 +21,9 @@ in
|
|||
|
||||
environment.systemPackages = with pkgs; [
|
||||
gnome3.gnome-tweaks
|
||||
gnomeExtensions.appindicator
|
||||
|
||||
# https://github.com/ubuntu/gnome-shell-extension-appindicator/issues/441
|
||||
# gnomeExtensions.appindicator
|
||||
|
||||
(writeShellScriptBin "x-terminal-emulator" ''
|
||||
exec kitty "$@"
|
||||
|
|
Loading…
Reference in a new issue