This commit is contained in:
Ray Andrew 2024-10-27 00:33:43 -05:00
parent 76503f0e0c
commit a40973e93f
12 changed files with 111 additions and 7 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*.swp

View file

@ -8,6 +8,7 @@
./gnome.nix ./gnome.nix
./slack.nix ./slack.nix
./skype.nix ./skype.nix
./spotify.nix
./vscode.nix ./vscode.nix
./xdg-portal.nix ./xdg-portal.nix
./zathura.nix ./zathura.nix

14
src/home/gui/spotify.nix Normal file
View file

@ -0,0 +1,14 @@
{ pkgs, config, ... }:
{
home.packages = with pkgs; [
spotify
];
custom.persist = {
home.directories = [
".config/spotify"
];
};
}

View file

@ -3,6 +3,9 @@
{ {
imports = [ imports = [
./bash.nix ./bash.nix
./direnv.nix
./ripgrep.nix
./shell.nix ./shell.nix
./zoxide.nix
]; ];
} }

19
src/home/shell/direnv.nix Normal file
View file

@ -0,0 +1,19 @@
_: {
programs.direnv = {
enable = true;
silent = true;
nix-direnv.enable = true;
};
custom.shell.packages = {
rmdevenv = ''rm .direnv .devenv'';
rmdirenv = ''rm .direnv .devenv'';
};
custom.persist = {
home = {
directories = [ ".local/share/direnv" ];
cache.directories = [ ".cache/pip" ];
};
};
}

View file

@ -0,0 +1,18 @@
{ config, ... }:
{
programs.ripgrep = {
enable = true;
arguments = [
"--ignore-file=${config.xdg.configHome}/ripgrep/.ignore"
];
};
xdg.configFile."ripgrep/.ignore".text = ''
# global ignore file for ripgrep
.envrc
.ignore
*.lock
generated.nix
generated.json
'';
}

18
src/home/shell/zoxide.nix Normal file
View file

@ -0,0 +1,18 @@
_: {
home.shellAliases = {
z = "zoxide query -i";
};
programs.zoxide = {
enable = true;
enableBashIntegration = true;
enableFishIntegration = true;
options = [ "--cmd cd" ];
};
custom.persist = {
home = {
cache.directories = [ ".local/share/zoxide" ];
};
};
}

View file

@ -2,9 +2,13 @@
{ {
programs.ssh = { programs.ssh = {
enable = true; enable = false;
}; };
home.packages = with pkgs; [
openssh
];
custom.persist = { custom.persist = {
home.directories = [ home.directories = [
".ssh" ".ssh"

View file

@ -24,12 +24,6 @@
services.fwupd.enable = true; services.fwupd.enable = true;
hardware.framework.amd-7040.preventWakeOnAC = true; hardware.framework.amd-7040.preventWakeOnAC = true;
services.pipewire = {
enable = true;
pulse.enable = true;
jack.enable = true;
};
services.libinput.enable = true; services.libinput.enable = true;
users.groups.keyd = {}; users.groups.keyd = {};

29
src/nixos/audio.nix Normal file
View file

@ -0,0 +1,29 @@
{ pkgs, ... }:
{
# setup pipewire for audio
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
# disable camera to save battery
# https://reddit.com/r/linux/comments/1em8biv/psa_pipewire_has_been_halving_your_battery_life/
wireplumber = {
enable = true;
extraConfig = {
"10-disable-camera" = {
"wireplumber.profiles" = {
main."monitor.libcamera" = "disabled";
};
};
};
};
};
hardware.pulseaudio.enable = false;
environment.systemPackages = with pkgs; [ pwvucontrol ];
}

View file

@ -7,6 +7,7 @@
{ {
imports = [ imports = [
./audio.nix
./1password.nix ./1password.nix
./impermanence.nix ./impermanence.nix
./keyd.nix ./keyd.nix

View file

@ -103,6 +103,7 @@ in
"https://hyprland.cachix.org" "https://hyprland.cachix.org"
"https://nix-community.cachix.org" "https://nix-community.cachix.org"
"https://ghostty.cachix.org" "https://ghostty.cachix.org"
"https://rayandrew.cachix.org"
]; ];
# allow building and pushing of laptop config from desktop # allow building and pushing of laptop config from desktop
trusted-users = [ user ]; trusted-users = [ user ];
@ -110,6 +111,7 @@ in
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"ghostty.cachix.org-1:QB389yTa6gTyneehvqG58y0WnHjQOqgnA+wBnpWWxns=" "ghostty.cachix.org-1:QB389yTa6gTyneehvqG58y0WnHjQOqgnA+wBnpWWxns="
"rayandrew.cachix.org-1:kJnvdWgUyErPGaQWgh/yyu91szgRYD+V/WQ4Dbc4n9M="
]; ];
}; };
# // lib.optionalAttrs (config.nix.package.pname == "lix") { # // lib.optionalAttrs (config.nix.package.pname == "lix") {