mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 19:27:17 +00:00
enable comma and direnv
This commit is contained in:
parent
9a9b138b36
commit
7b7609011c
6 changed files with 68 additions and 4 deletions
21
#home.nix#
Normal file
21
#home.nix#
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ pkgs, config, lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib.systems.elaborate { system = builtins.currentSystem; }) isLinux isDarwin;
|
||||
in
|
||||
rec {
|
||||
home.stateVersion = "22.05";
|
||||
|
||||
home.packages = import ./packages.nix { inherit lib config pkgs isDarwin; };
|
||||
|
||||
programs = import ./programs.nix { inherit lib config pkgs isDarwin; };
|
||||
|
||||
home.file."${programs.gpg.homedir}/gpg-agent.conf" = {
|
||||
source = pkgs.writeTextFile {
|
||||
name = "gpg-agent-conf";
|
||||
text = ''
|
||||
pinentry-program ${pkgs.pinentry_mac.out}/${pkgs.pinentry_mac.binaryPath}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
1
.#home.nix
Symbolic link
1
.#home.nix
Symbolic link
|
@ -0,0 +1 @@
|
|||
willem@zeus.61424
|
14
brew.nix
Normal file
14
brew.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ pkgs, config, lib, ... }:
|
||||
|
||||
{
|
||||
casks = [
|
||||
"nordvpn"
|
||||
"blobsaver"
|
||||
"firefox"
|
||||
"vlc"
|
||||
"steam"
|
||||
"iterm2"
|
||||
"discord"
|
||||
"arduino"
|
||||
];
|
||||
}
|
|
@ -3,12 +3,17 @@
|
|||
let
|
||||
user = builtins.getEnv "USER";
|
||||
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz;
|
||||
cask2nixTarball = fetchTarball https://github.com/matthewbauer/cask2nix/archive/v0.1.tar.gz;
|
||||
nurTarball = fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz";
|
||||
in
|
||||
{
|
||||
imports = [ <home-manager/nix-darwin> ];
|
||||
|
||||
# List of packages to be installed in the system profile.
|
||||
environment.systemPackages = [];
|
||||
environment.systemPackages = [
|
||||
pkgs.iterm2
|
||||
pkgs.discord
|
||||
];
|
||||
|
||||
# $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix
|
||||
environment.darwinConfig = "$HOME/.config/nixpkgs/darwin-configuration.nix";
|
||||
|
@ -23,9 +28,13 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
nixpkgs.config.packageOverrides = pkgs: {
|
||||
unstable = import unstableTarball {
|
||||
config = config.nixpkgs.config;
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
packageOverrides = pkgs: {
|
||||
unstable = import unstableTarball {
|
||||
config = config.nixpkgs.config;
|
||||
};
|
||||
nur = import nurTarball { inherit pkgs; };
|
||||
};
|
||||
};
|
||||
|
||||
|
|
12
packages.nix
12
packages.nix
|
@ -1,6 +1,13 @@
|
|||
{ config, lib, pkgs, isDarwin, ... }:
|
||||
|
||||
let
|
||||
comma = (import (pkgs.fetchFromGitHub {
|
||||
owner = "nix-community";
|
||||
repo = "comma";
|
||||
rev = "v1.4.0";
|
||||
sha256 = "02zh0zn0yibbgn26r0idcsv8nl7pxlnq545qas0fzj5l70hdgyhh";
|
||||
})).default;
|
||||
|
||||
darwinPackages = with pkgs; [
|
||||
coreutils
|
||||
gnused
|
||||
|
@ -8,21 +15,26 @@ let
|
|||
colima
|
||||
pinentry_mac
|
||||
];
|
||||
|
||||
dockerPackages = with pkgs; [
|
||||
unstable.docker
|
||||
docker-compose
|
||||
];
|
||||
|
||||
editingPackages = with pkgs; [
|
||||
black
|
||||
shellcheck
|
||||
plantuml
|
||||
texlive.combined.scheme-full
|
||||
];
|
||||
|
||||
nodePackages = with pkgs.nodePackages; [
|
||||
bash-language-server
|
||||
];
|
||||
|
||||
sharedPackages = with pkgs; [
|
||||
zsh-powerlevel10k
|
||||
comma
|
||||
automake
|
||||
autoconf
|
||||
cmake
|
||||
|
|
|
@ -1,6 +1,13 @@
|
|||
{ lib, config, pkgs, isDarwin, ... }:
|
||||
|
||||
{
|
||||
direnv = {
|
||||
enable = true;
|
||||
nix-direnv = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
gpg = {
|
||||
enable = true;
|
||||
homedir = "${config.users.users.willem.home}/.gnupg";
|
||||
|
|
Loading…
Add table
Reference in a new issue