Add partial config for dev-lt-63

This commit is contained in:
Riley Apeldoorn 2023-05-21 20:26:26 +00:00
parent b11aeb6664
commit 9076fb4c20
6 changed files with 66 additions and 7 deletions

View File

@ -54,7 +54,10 @@
"dev-lt-63" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
modules = [ ./system/dev-lt-63/home.nix ];
modules = [
./system/dev-lt-63/home.nix
./shared/home
];
};
};

View File

@ -6,6 +6,7 @@
./fish.nix
./git.nix
./nix.nix
./programs.nix
./gui
];

View File

@ -1,5 +1,4 @@
# Shell configuration, including common tools used within the shell and
# shell functions/aliases.
# Configuration of the shell.
{ pkgs, lib, config, ... }:
@ -21,11 +20,8 @@ in with lib; {
shellAliases = {} // cfg.extraAliases;
};
# Configure useful additions to the shell
programs.direnv.enable = true;
programs.skim.enable = true;
# Configure the prompt
programs.starship.enable = true;
programs.zoxide.enable = true;
};

34
shared/home/programs.nix Normal file
View File

@ -0,0 +1,34 @@
# Configures misc programs that have shared config values between
# machines. These are intended to be very simple, so if it becomes
# needed to do extra configuration for example, consider putting
# the affected programs in their own modules.
{ pkgs, ... }: {
home.packages = (import ../env.nix pkgs);
# CLI for accessing my passwords
programs.rbw = {
enable = true;
settings = {
email = "me@riley.lgbt";
base_url = "https://vault.steph.tools";
pinentry = "curses";
};
};
# It's like `top` but cooler
programs.bottom.enable = true;
programs.exa = {
enable = true;
extraOptions = [
"--group-directories-first"
];
};
programs.direnv.enable = true;
programs.skim.enable = true;
programs.zoxide.enable = true;
}

13
shared/lib.nix Normal file
View File

@ -0,0 +1,13 @@
{ pkgs, ... }:
with pkgs; rec {
nixGL =
let src = fetchGit { ref = "main"; url = "https://github.com/guibou/nixGL.git"; };
in (import src {}).auto.nixGLDefault;
nixGLWrapper = program: writeShellScriptBin program.pname ''
${nixGL}/bin/nixGL ${program}/bin/${program.pname} "$@"
'';
}

View File

@ -0,0 +1,12 @@
{ config, pkgs, lib, ... }:
{
home = {
username = "riley";
homeDirectory = "/home/riley";
stateVersion = "22.05";
};
programs = {
home-manager.enable = false;
};
}