[feat] Add some stuff for nix

This commit is contained in:
Uttarayan Mondal
2024-02-15 06:46:02 +05:30
parent 6a009ef91c
commit 5ca9d2165c
9 changed files with 498 additions and 359 deletions

View File

@@ -1,10 +1,38 @@
{pkgs, ...}: {
{
pkgs,
device,
...
}: {
imports = [
./yabai.nix
./skhd.nix
];
environment.systemPackages = with pkgs; [
nix
neovim
];
nix = {
settings = {
experimental-features = "nix-command flakes repl-flake";
max-jobs = 8;
trusted-users = ["root" "fs0c131y"];
};
extraOptions = ''
build-users-group = nixbld
extra-nix-path = nixpkgs=flake:nixpkgs
'';
package = pkgs.nix;
};
programs.bash.enable = true;
programs.zsh.enable = true;
programs.fish.enable = true;
nixpkgs.hostPlatform = device.system;
services.nix-daemon.enable = true;
system.stateVersion = 4;
system.keyboard.enableKeyMapping = true;
system.keyboard.remapCapsLockToControl = true;
system.keyboard.swapLeftCommandAndLeftAlt = true;