mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-15 04:37:21 +00:00
fix errors
This commit is contained in:
parent
b582ed09a7
commit
6579f8d012
6 changed files with 190 additions and 230 deletions
|
@ -1,7 +1,6 @@
|
||||||
{ config, pkgs, inputs, nurNoPkgs, ... }:
|
{ config, pkgs, inputs, lib, ... }:
|
||||||
|
|
||||||
let
|
let pcfg = config.programs.emacs.init.usePackage;
|
||||||
pcfg = config.programs.emacs.init.usePackage;
|
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
pkgs.nur.repos.rycee.hmModules.emacs-init
|
pkgs.nur.repos.rycee.hmModules.emacs-init
|
||||||
|
|
13
flake.nix
13
flake.nix
|
@ -11,7 +11,8 @@
|
||||||
nur.url = "github:nix-community/NUR";
|
nur.url = "github:nix-community/NUR";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs-unstable, nixpkgs-22_11, home-manager, nur, ... }@inputs:
|
outputs =
|
||||||
|
{ self, nixpkgs-unstable, nixpkgs-22_11, home-manager, nur, ... }@inputs:
|
||||||
let
|
let
|
||||||
system = "aarch64-darwin";
|
system = "aarch64-darwin";
|
||||||
|
|
||||||
|
@ -37,15 +38,13 @@
|
||||||
|
|
||||||
# Specify your home configuration modules here, for example,
|
# Specify your home configuration modules here, for example,
|
||||||
# the path to your home.nix.
|
# the path to your home.nix.
|
||||||
modules = [
|
modules = [ nur.hmModules.nur ./home.nix ];
|
||||||
./home.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
# Optionally use extraSpecialArgs
|
# Optionally use extraSpecialArgs
|
||||||
# to pass through arguments to home.nix
|
# to pass through arguments to home.nix
|
||||||
extraSpecialArgs = {
|
# extraSpecialArgs = {
|
||||||
inherit nurNoPkgs;
|
# inherit nurNoPkgs;
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
20
home.nix
20
home.nix
|
@ -1,17 +1,23 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, inputs, ... }:
|
||||||
|
|
||||||
let
|
let homeDirectory = config.home.homeDirectory;
|
||||||
inherit (lib.systems.elaborate { system = builtins.currentSystem; }) isLinux isDarwin;
|
|
||||||
homeDirectory = config.home.homeDirectory;
|
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
./emacs.nix
|
#./emacs.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
./programs.nix
|
./programs.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
|
allowUnfreePredicate = pkg:
|
||||||
|
builtins.elem (lib.getName pkg) [ "discord" "unrar" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
home = {
|
||||||
|
username = "willem";
|
||||||
|
homeDirectory = "/Users/willem";
|
||||||
|
stateVersion = "22.11";
|
||||||
};
|
};
|
||||||
|
|
||||||
home.language = {
|
home.language = {
|
||||||
|
@ -25,7 +31,5 @@ in {
|
||||||
variant = "colemak";
|
variant = "colemak";
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = { EDITOR = "emacs"; };
|
||||||
EDITOR = "emacs";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
52
packages.nix
52
packages.nix
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, pkgs, isDarwin, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
comma = (import (pkgs.fetchFromGitHub {
|
comma = (import (pkgs.fetchFromGitHub {
|
||||||
|
@ -6,49 +6,19 @@ let
|
||||||
repo = "comma";
|
repo = "comma";
|
||||||
rev = "v1.4.0";
|
rev = "v1.4.0";
|
||||||
sha256 = "02zh0zn0yibbgn26r0idcsv8nl7pxlnq545qas0fzj5l70hdgyhh";
|
sha256 = "02zh0zn0yibbgn26r0idcsv8nl7pxlnq545qas0fzj5l70hdgyhh";
|
||||||
})).default;
|
|
||||||
|
|
||||||
rnix-lsp = (import (pkgs.fetchFromGitHub {
|
|
||||||
owner = "nix-community";
|
|
||||||
repo = "rnix-lsp";
|
|
||||||
rev = "95d40673fe43642e2e1144341e86d0036abd95d9";
|
|
||||||
sha256 = "197s5qi0yqxl84axziq3pcpf5qa9za82siv3ap6v3rcjmndk8jqp";
|
|
||||||
}));
|
}));
|
||||||
|
in {
|
||||||
darwinPackages = with pkgs; [
|
home.packages = with pkgs;
|
||||||
coreutils
|
[ coreutils gnused spoof-mac colima pinentry_mac iterm2 ] ++ [ discord ]
|
||||||
gnused
|
++ [ docker docker-compose ] ++ [
|
||||||
spoof-mac
|
|
||||||
colima
|
|
||||||
pinentry_mac
|
|
||||||
iterm2
|
|
||||||
];
|
|
||||||
|
|
||||||
guiPackages = with pkgs; [
|
|
||||||
discord
|
|
||||||
];
|
|
||||||
|
|
||||||
dockerPackages = with pkgs; [
|
|
||||||
unstable.docker
|
|
||||||
docker-compose
|
|
||||||
];
|
|
||||||
|
|
||||||
editingPackages = with pkgs; [
|
|
||||||
black
|
black
|
||||||
shellcheck
|
shellcheck
|
||||||
plantuml
|
plantuml
|
||||||
rnix-lsp
|
|
||||||
clang-tools
|
clang-tools
|
||||||
graphviz
|
graphviz
|
||||||
nixfmt
|
nixfmt
|
||||||
texlive.combined.scheme-full
|
texlive.combined.scheme-full
|
||||||
];
|
] ++ [ nodePackages.bash-language-server ] ++ [
|
||||||
|
|
||||||
nodePackages = with pkgs.nodePackages; [
|
|
||||||
bash-language-server
|
|
||||||
];
|
|
||||||
|
|
||||||
sharedPackages = with pkgs; [
|
|
||||||
zsh-powerlevel10k
|
zsh-powerlevel10k
|
||||||
comma
|
comma
|
||||||
automake
|
automake
|
||||||
|
@ -66,17 +36,11 @@ let
|
||||||
jq
|
jq
|
||||||
nmap
|
nmap
|
||||||
unzip
|
unzip
|
||||||
|
unp
|
||||||
|
unrar
|
||||||
rsync
|
rsync
|
||||||
openssh
|
openssh
|
||||||
tldr
|
tldr
|
||||||
(import ./python-packages.nix { inherit pkgs; })
|
(import ./python-packages.nix { inherit pkgs; })
|
||||||
];
|
];
|
||||||
in
|
|
||||||
{
|
|
||||||
home.packages = sharedPackages
|
|
||||||
++ (lib.optionals isDarwin darwinPackages)
|
|
||||||
++ guiPackages
|
|
||||||
++ editingPackages
|
|
||||||
++ nodePackages
|
|
||||||
++ dockerPackages ;
|
|
||||||
}
|
}
|
||||||
|
|
11
programs.nix
11
programs.nix
|
@ -4,9 +4,7 @@
|
||||||
programs = {
|
programs = {
|
||||||
direnv = {
|
direnv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nix-direnv = {
|
nix-direnv = { enable = true; };
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
gpg = {
|
gpg = {
|
||||||
|
@ -24,9 +22,7 @@
|
||||||
|
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
delta = {
|
delta = { enable = true; };
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
signing = {
|
signing = {
|
||||||
key = "C3DE5DF6198DACBD";
|
key = "C3DE5DF6198DACBD";
|
||||||
signByDefault = true;
|
signByDefault = true;
|
||||||
|
@ -55,7 +51,8 @@
|
||||||
enableVteIntegration = true;
|
enableVteIntegration = true;
|
||||||
autocd = true;
|
autocd = true;
|
||||||
defaultKeymap = "emacs";
|
defaultKeymap = "emacs";
|
||||||
envExtra = "export PATH=${pkgs.pinentry_mac.out}/Applications/pinentry-mac.app/Contents/MacOS:$PATH";
|
envExtra =
|
||||||
|
"export PATH=${pkgs.pinentry_mac.out}/Applications/pinentry-mac.app/Contents/MacOS:$PATH";
|
||||||
dirHashes = {
|
dirHashes = {
|
||||||
docs = "$HOME/Documents";
|
docs = "$HOME/Documents";
|
||||||
appsup = "$HOME/Library/Application Support";
|
appsup = "$HOME/Library/Application Support";
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
{ pkgs }:
|
{ pkgs }:
|
||||||
|
|
||||||
pkgs.python310.withPackages(p: with p; [
|
pkgs.python310.withPackages (p: with p; [ matplotlib latexify-py ])
|
||||||
matplotlib
|
|
||||||
latexify-py
|
|
||||||
])
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue