working on nvidia settings
This commit is contained in:
parent
36798975c7
commit
1781b9c4ad
9 changed files with 2176 additions and 428 deletions
9
dotfiles/dot_config/fish/functions/nvoff.fish
Executable file
9
dotfiles/dot_config/fish/functions/nvoff.fish
Executable 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
|
|
@ -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
|
26
dotfiles/dot_config/kmonad/snap.kbd
Normal file
26
dotfiles/dot_config/kmonad/snap.kbd
Normal 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
343
flake.lock
generated
|
@ -1,38 +1,5 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"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": {
|
"flake-compat": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1717312683,
|
"lastModified": 1717312683,
|
||||||
|
@ -72,7 +39,7 @@
|
||||||
},
|
},
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_2"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1726560853,
|
"lastModified": 1726560853,
|
||||||
|
@ -109,194 +76,6 @@
|
||||||
"type": "github"
|
"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": {
|
"kmonad": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@ -327,11 +106,11 @@
|
||||||
"nixpkgs-lib": "nixpkgs-lib"
|
"nixpkgs-lib": "nixpkgs-lib"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1727710043,
|
"lastModified": 1728216729,
|
||||||
"narHash": "sha256-NpTnTg8oOVvntlTi/t8BUe5msrMmkiZFiOW22fc7B+g=",
|
"narHash": "sha256-HsisE2yMld0LckvQ3v/00bXFg11E5Q2XI8taPUewDPA=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "lib-aggregate",
|
"repo": "lib-aggregate",
|
||||||
"rev": "d03a5f88a345d26ca13918071d42dcc960233183",
|
"rev": "6c4cf448d33ce86bcc06c6d50bcecc33666105ee",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -364,15 +143,15 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"nix-github-actions": "nix-github-actions",
|
"nix-github-actions": "nix-github-actions",
|
||||||
"nixpkgs": "nixpkgs_3",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1726859423,
|
"lastModified": 1727953523,
|
||||||
"narHash": "sha256-7H4u29z/Qwi/KsXS3ucrvXr/gx2fqT48i8EpKMBpMvs=",
|
"narHash": "sha256-cT8fN56OHCqTajmj2JwDL5uhTIEFvVSnBRvypXfZ9f4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nix-eval-jobs",
|
"repo": "nix-eval-jobs",
|
||||||
"rev": "6684d2074e3cde8a180ef87fac284d6f02ac16d0",
|
"rev": "7ae693d28c5922533ce86f348ddb6709a2beffbf",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -420,11 +199,11 @@
|
||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1727665282,
|
"lastModified": 1728269138,
|
||||||
"narHash": "sha256-oKtfbQB1MBypqIyzkC8QCQcVGOa1soaXaGgcBIoh14o=",
|
"narHash": "sha256-oKxDImsOvgUZMY4NwXVyUc/c1HiU2qInX+b5BU0yXls=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "11c43c830e533dad1be527ecce379fcf994fbbb5",
|
"rev": "ecfcd787f373f43307d764762e139a7cdeb9c22b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -436,15 +215,15 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1727348695,
|
"lastModified": 1728018373,
|
||||||
"narHash": "sha256-J+PeFKSDV+pHL7ukkfpVzCOO7mBSrrpJ3svwBFABbhI=",
|
"narHash": "sha256-NOiTvBbRLIOe5F6RbHaAh6++BNjsb149fGZd1T4+KBg=",
|
||||||
"owner": "NixOS",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "1925c603f17fc89f4c8f6bf6f631a802ad85d784",
|
"rev": "bc947f541ae55e999ffdb4013441347d83b00feb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "nixos",
|
||||||
"ref": "nixos-unstable",
|
"ref": "nixos-unstable",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
|
@ -452,11 +231,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-lib": {
|
"nixpkgs-lib": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1727571693,
|
"lastModified": 1728176478,
|
||||||
"narHash": "sha256-b7sFVeqMtz8xntCL3tBY3O8suTg5PeF53LTL3eCcKyc=",
|
"narHash": "sha256-px3Q0W//c+mZ4kPMXq4poztsjtXM1Ja1rN+825YMDUQ=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixpkgs.lib",
|
"repo": "nixpkgs.lib",
|
||||||
"rev": "bb58a3bf239e03fca9d51062e2fe028a4ea5a3d1",
|
"rev": "b61309c3c1b6013d36299bc8285612865b3b9e4c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -467,11 +246,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1727907660,
|
"lastModified": 1728193676,
|
||||||
"narHash": "sha256-QftbyPoieM5M50WKUMzQmWtBWib/ZJbHo7mhj5riQec=",
|
"narHash": "sha256-PbDWAIjKJdlVg+qQRhzdSor04bAPApDqIv2DofTyynk=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5966581aa04be7eff830b9e1457d56dc70a0b798",
|
"rev": "ecbc1ca8ffd6aea8372ad16be9ebbb39889e55b6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -491,11 +270,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1727812556,
|
"lastModified": 1728219351,
|
||||||
"narHash": "sha256-U9cEs2W0eLvIS0kEMBGP8eZMdrpoHqynByth/mu2Nvc=",
|
"narHash": "sha256-FVXtRvS0IJCvIadkz/ULFKKceNY/d6hhcNZO73E51/A=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixpkgs-wayland",
|
"repo": "nixpkgs-wayland",
|
||||||
"rev": "a40e6b047b6166aed5fab801e99a8d6b980d4680",
|
"rev": "9463b5d319bc79665db902a1007d1846d4218f62",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -505,22 +284,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"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": {
|
"locked": {
|
||||||
"lastModified": 1723221148,
|
"lastModified": 1723221148,
|
||||||
"narHash": "sha256-7pjpeQlZUNQ4eeVntytU3jkw9dFK3k1Htgk2iuXjaD8=",
|
"narHash": "sha256-7pjpeQlZUNQ4eeVntytU3jkw9dFK3k1Htgk2iuXjaD8=",
|
||||||
|
@ -539,32 +302,16 @@
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"hyprland": "hyprland",
|
|
||||||
"kmonad": "kmonad",
|
"kmonad": "kmonad",
|
||||||
"musnix": "musnix",
|
"musnix": "musnix",
|
||||||
"nix-flatpak": "nix-flatpak",
|
"nix-flatpak": "nix-flatpak",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs",
|
||||||
"nixpkgs-stable": "nixpkgs-stable",
|
"nixpkgs-stable": "nixpkgs-stable",
|
||||||
"nixpkgs-wayland": "nixpkgs-wayland"
|
"nixpkgs-wayland": "nixpkgs-wayland"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems": {
|
"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": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1681028828,
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
@ -600,44 +347,6 @@
|
||||||
"repo": "treefmt-nix",
|
"repo": "treefmt-nix",
|
||||||
"type": "github"
|
"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",
|
"root": "root",
|
||||||
|
|
|
@ -30,10 +30,11 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
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 ];
|
nixpkgs.overlays = [ inputs.nixpkgs-wayland.overlay ];
|
||||||
|
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
@ -43,6 +44,7 @@
|
||||||
nix-flatpak.nixosModules.nix-flatpak
|
nix-flatpak.nixosModules.nix-flatpak
|
||||||
kmonad.nixosModules.default
|
kmonad.nixosModules.default
|
||||||
musnix.nixosModules.musnix
|
musnix.nixosModules.musnix
|
||||||
|
# razer-laptop-control.nixosModules.default
|
||||||
./system/eddie/configuration.nix
|
./system/eddie/configuration.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
113
home/home.nix
113
home/home.nix
|
@ -1,10 +1,6 @@
|
||||||
{ nix-flatpak, lib, pkgs, inputs, ... }:
|
{ nix-flatpak, lib, pkgs, inputs, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
imports = [
|
|
||||||
./razer-speaker-fix.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
|
@ -91,7 +87,6 @@
|
||||||
nodePackages.svelte-language-server
|
nodePackages.svelte-language-server
|
||||||
nodePackages.typescript
|
nodePackages.typescript
|
||||||
|
|
||||||
|
|
||||||
nixd
|
nixd
|
||||||
|
|
||||||
fishPlugins.foreign-env
|
fishPlugins.foreign-env
|
||||||
|
@ -110,9 +105,12 @@
|
||||||
gnomeExtensions.just-perfection
|
gnomeExtensions.just-perfection
|
||||||
gnomeExtensions.dash-to-dock
|
gnomeExtensions.dash-to-dock
|
||||||
gnomeExtensions.solaar-extension
|
gnomeExtensions.solaar-extension
|
||||||
|
gnomeExtensions.kmonad-toggle
|
||||||
|
gnomeExtensions.forge
|
||||||
gnome-software
|
gnome-software
|
||||||
gnome-tweaks
|
gnome-tweaks
|
||||||
gnome-photos
|
gnome-photos
|
||||||
|
sushi
|
||||||
colloid-gtk-theme
|
colloid-gtk-theme
|
||||||
colloid-icon-theme
|
colloid-icon-theme
|
||||||
whitesur-gtk-theme
|
whitesur-gtk-theme
|
||||||
|
@ -120,10 +118,14 @@
|
||||||
whitesur-icon-theme
|
whitesur-icon-theme
|
||||||
graphite-gtk-theme
|
graphite-gtk-theme
|
||||||
graphite-cursors
|
graphite-cursors
|
||||||
|
waycorner
|
||||||
|
|
||||||
|
icloudpd
|
||||||
|
squirreldisk
|
||||||
papers
|
papers
|
||||||
newsflash
|
newsflash
|
||||||
planify
|
planify
|
||||||
|
fuzzel
|
||||||
|
|
||||||
wineWowPackages.stagingFull
|
wineWowPackages.stagingFull
|
||||||
wineWowPackages.fonts
|
wineWowPackages.fonts
|
||||||
|
@ -212,7 +214,7 @@
|
||||||
username = "emenel";
|
username = "emenel";
|
||||||
homeDirectory = "/home/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 = {
|
sessionVariables = {
|
||||||
EDITOR = "emacsclient -r";
|
EDITOR = "emacsclient -r";
|
||||||
|
@ -235,6 +237,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
"ls" = "eza";
|
"ls" = "eza";
|
||||||
|
".j" = "just -g";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
starship = {
|
starship = {
|
||||||
|
@ -295,44 +298,6 @@
|
||||||
firefox.enable = true;
|
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";
|
home.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||||
|
|
||||||
dconf.settings = {
|
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 = [
|
xdg.systemDirs.data = [
|
||||||
"/home/emenel/.local/share/applications/wine/Programs"
|
"/home/emenel/.local/share/applications/wine/Programs"
|
||||||
"/home/emenel/.local/share/applications"
|
"/home/emenel/.local/share/applications"
|
||||||
|
@ -389,7 +379,7 @@
|
||||||
|
|
||||||
home.file.".npmrc".source = ../dotfiles/dot_npmrc;
|
home.file.".npmrc".source = ../dotfiles/dot_npmrc;
|
||||||
xdg.configFile."kmonad".source = ../dotfiles/dot_config/kmonad;
|
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."starship.toml".source = ../dotfiles/dot_config/starship.toml;
|
||||||
xdg.configFile."wezterm".source = ../dotfiles/dot_config/wezterm;
|
xdg.configFile."wezterm".source = ../dotfiles/dot_config/wezterm;
|
||||||
xdg.configFile."git".source = ../dotfiles/dot_config/git;
|
xdg.configFile."git".source = ../dotfiles/dot_config/git;
|
||||||
|
@ -405,37 +395,4 @@
|
||||||
home.file.".mbsyncrc".source = ../dotfiles/dot_mbsyncrc;
|
home.file.".mbsyncrc".source = ../dotfiles/dot_mbsyncrc;
|
||||||
|
|
||||||
home.file.".local/share/flf".source = ../dotfiles/dot_local/share/flf;
|
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" ];
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,9 +2,11 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
systemd.services.razer-speaker-fix = {
|
systemd.services.razer-speaker-fix = {
|
||||||
description = "Workaround for the Razer Blade 14 internal audio device";
|
enable = true;
|
||||||
|
# description = "Workaround for the Razer Blade 14 internal audio device";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
restartIfChanged = false;
|
after = [ "multi-user.target" ];
|
||||||
|
|
||||||
script = ''
|
script = ''
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
hda-verb /dev/snd/hwC2D0 0x20 0x500 0x7
|
hda-verb /dev/snd/hwC2D0 0x20 0x500 0x7
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
./razer-speaker-fix.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
|
@ -18,25 +19,35 @@
|
||||||
wget
|
wget
|
||||||
home-manager
|
home-manager
|
||||||
curl
|
curl
|
||||||
#git
|
|
||||||
git-lfs
|
git-lfs
|
||||||
tailscale
|
tailscale
|
||||||
rsync
|
rsync
|
||||||
kmonad
|
kmonad
|
||||||
gnupg
|
gnupg
|
||||||
openrazer-daemon
|
openrazer-daemon
|
||||||
|
linuxKernel.packages.linux_6_10.openrazer
|
||||||
clinfo
|
clinfo
|
||||||
pyprland
|
|
||||||
hyprpicker
|
|
||||||
hyprcursor
|
|
||||||
hyprlock
|
|
||||||
hypridle
|
|
||||||
hyprpaper
|
|
||||||
greetd.tuigreet
|
|
||||||
alsa-utils
|
alsa-utils
|
||||||
alsa-tools
|
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.
|
# Bootloader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
@ -50,8 +61,11 @@
|
||||||
systemd.services.tailscaled.after = ["NetworkManager-wait-online.service"];
|
systemd.services.tailscaled.after = ["NetworkManager-wait-online.service"];
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
openrazer.enable = true;
|
openrazer = {
|
||||||
openrazer.users = [ "emenel" ];
|
enable = true;
|
||||||
|
users = [ "emenel" ];
|
||||||
|
};
|
||||||
|
|
||||||
graphics = {
|
graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enable32Bit = true;
|
enable32Bit = true;
|
||||||
|
@ -116,8 +130,6 @@
|
||||||
nix.package = pkgs.nixFlakes;
|
nix.package = pkgs.nixFlakes;
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
|
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;
|
auto-optimise-store = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -127,23 +139,17 @@
|
||||||
|
|
||||||
services.xserver.enable = true;
|
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.
|
# Enable the GNOME Desktop Environment.
|
||||||
services.xserver.displayManager.gdm.enable = true;
|
services.xserver.displayManager.gdm.enable = true;
|
||||||
services.xserver.desktopManager.gnome.enable = true;
|
services.xserver.desktopManager.gnome.enable = true;
|
||||||
services.xserver.deviceSection = ''Option "TearFree" "true"''; # For amdgpu.
|
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;
|
programs.dconf.enable = true;
|
||||||
|
|
||||||
|
@ -154,6 +160,7 @@
|
||||||
|
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
|
services.envfs.enable = true;
|
||||||
|
|
||||||
#services.emacs = {
|
#services.emacs = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
|
@ -217,6 +224,10 @@
|
||||||
device = "/dev/input/by-id/usb-Keebio_Quefrency_Rev._5-event-kbd";
|
device = "/dev/input/by-id/usb-Keebio_Quefrency_Rev._5-event-kbd";
|
||||||
config = builtins.readFile ../../dotfiles/dot_config/kmonad/quefrency.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 = {
|
razer = {
|
||||||
device = "/dev/input/by-id/usb-Razer_Razer_Blade-if01-event-kbd";
|
device = "/dev/input/by-id/usb-Razer_Razer_Blade-if01-event-kbd";
|
||||||
config = builtins.readFile ../../dotfiles/dot_config/kmonad/razer.kbd;
|
config = builtins.readFile ../../dotfiles/dot_config/kmonad/razer.kbd;
|
||||||
|
|
2021
system/eddie/razer-speaker-fix.nix
Normal file
2021
system/eddie/razer-speaker-fix.nix
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue