wip
This commit is contained in:
@@ -50,16 +50,14 @@
|
|||||||
modules =
|
modules =
|
||||||
[
|
[
|
||||||
nix-index-database.homeModules.default
|
nix-index-database.homeModules.default
|
||||||
"${modules}/base.nix"
|
"${modules}"
|
||||||
"${modules}/desktop.nix"
|
|
||||||
"${modules}/shibumi.nix"
|
|
||||||
"${modules}/shibumi-desktop.nix"
|
|
||||||
] ++
|
] ++
|
||||||
[{
|
[{
|
||||||
home.stateVersion = "22.05";
|
home.stateVersion = "22.05";
|
||||||
home.username = "jfrikker";
|
home.username = "jfrikker";
|
||||||
home.homeDirectory = "/Users/jfrikker";
|
home.homeDirectory = "/Users/jfrikker";
|
||||||
home.packages = [ pkgs.pinentry_mac ];
|
home.packages = [ pkgs.pinentry_mac ];
|
||||||
|
jfrikker.desktop.enable = true;
|
||||||
}];
|
}];
|
||||||
|
|
||||||
extraSpecialArgs = { kube = kube.packages.aarch64-darwin.default; };
|
extraSpecialArgs = { kube = kube.packages.aarch64-darwin.default; };
|
||||||
|
|||||||
@@ -1,36 +1,32 @@
|
|||||||
#+PROPERTY: header-args :mkdirp yes
|
#+PROPERTY: header-args :mkdirp yes
|
||||||
#+PROPERTY: header-args:elisp :lexical t
|
#+PROPERTY: header-args:elisp :lexical t
|
||||||
* Categories
|
* Base
|
||||||
|
|
||||||
#+BEGIN_SRC nix :tangle target/base.nix
|
#+BEGIN_SRC nix :tangle target/default.nix
|
||||||
{lib, ...}: {
|
{
|
||||||
imports = lib.filter
|
imports = [
|
||||||
(n: lib.strings.hasSuffix ".nix" n)
|
./base_options.nix
|
||||||
(lib.filesystem.listFilesRecursive ./base);
|
./sbcl.nix
|
||||||
|
./crypto.nix
|
||||||
|
./rust-reimpls.nix
|
||||||
|
./ledger.nix
|
||||||
|
./nil.nix
|
||||||
|
./magic-wormhole.nix
|
||||||
|
./desktop-packages.nix
|
||||||
|
./shibumi.nix
|
||||||
|
./slack.nix
|
||||||
|
];
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
#+BEGIN_SRC nix :tangle target/desktop.nix
|
#+BEGIN_SRC nix :tangle target/base_options.nix
|
||||||
{lib, ...}: {
|
{lib, ...}:
|
||||||
imports = lib.filter
|
with lib;
|
||||||
(n: lib.strings.hasSuffix ".nix" n)
|
{
|
||||||
(lib.filesystem.listFilesRecursive ./desktop);
|
options = {
|
||||||
}
|
jfrikker.desktop.enable = mkEnableOption "desktop tools";
|
||||||
#+END_SRC
|
jfrikker.shibumi.enable = mkEnableOption "shibumi-specific tools";
|
||||||
|
};
|
||||||
#+BEGIN_SRC nix :tangle target/shibumi.nix
|
|
||||||
{lib, ...}: {
|
|
||||||
imports = lib.filter
|
|
||||||
(n: lib.strings.hasSuffix ".nix" n)
|
|
||||||
(lib.filesystem.listFilesRecursive ./shibumi);
|
|
||||||
}
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
#+BEGIN_SRC nix :tangle target/shibumi-desktop.nix
|
|
||||||
{lib, ...}: {
|
|
||||||
imports = lib.filter
|
|
||||||
(n: lib.strings.hasSuffix ".nix" n)
|
|
||||||
(lib.filesystem.listFilesRecursive ./shibumi-desktop);
|
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
@@ -45,7 +41,7 @@ in a ~nix~ devshell I think I'd also like to use it for scripting / exploratory
|
|||||||
so I'm installing it globally with a useful set of libraries. I should curate this somewhat
|
so I'm installing it globally with a useful set of libraries. I should curate this somewhat
|
||||||
carefully so it doesn't get carried away...
|
carefully so it doesn't get carried away...
|
||||||
|
|
||||||
#+BEGIN_SRC nix :tangle target/base/sbcl.nix
|
#+BEGIN_SRC nix :tangle target/sbcl.nix
|
||||||
{pkgs, ...}:
|
{pkgs, ...}:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
@@ -96,7 +92,7 @@ the name implies, allows generating and storing ~age~ keys on a Yubikey. ~rage~
|
|||||||
~age~ when using ~age.el~, because it supports ~pinentry~. That allows it to prompt for yubikey pins
|
~age~ when using ~age.el~, because it supports ~pinentry~. That allows it to prompt for yubikey pins
|
||||||
using a dialog, rather than a command line prompt.
|
using a dialog, rather than a command line prompt.
|
||||||
|
|
||||||
#+BEGIN_SRC nix :tangle target/base/crypto.nix
|
#+BEGIN_SRC nix :tangle target/crypto.nix
|
||||||
{pkgs, ...}:
|
{pkgs, ...}:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
@@ -116,7 +112,7 @@ tools. They boost better speed, or simply more streamlined features.
|
|||||||
| ~ripgrep~ | ~grep~ |
|
| ~ripgrep~ | ~grep~ |
|
||||||
| ~xh~ | ~curl~ |
|
| ~xh~ | ~curl~ |
|
||||||
|
|
||||||
#+BEGIN_SRC nix :tangle target/base/rust-reimpls.nix
|
#+BEGIN_SRC nix :tangle target/rust-reimpls.nix
|
||||||
{pkgs, ...}:
|
{pkgs, ...}:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
@@ -131,7 +127,7 @@ tools. They boost better speed, or simply more streamlined features.
|
|||||||
|
|
||||||
[[https://ledger-cli.org/][~ledger~]] is how I manage my budget. It's a plain-text accounting tool that's really awesome.
|
[[https://ledger-cli.org/][~ledger~]] is how I manage my budget. It's a plain-text accounting tool that's really awesome.
|
||||||
|
|
||||||
#+BEGIN_SRC nix :tangle target/base/ledger.nix
|
#+BEGIN_SRC nix :tangle target/ledger.nix
|
||||||
{pkgs, ...}:
|
{pkgs, ...}:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
@@ -142,7 +138,7 @@ tools. They boost better speed, or simply more streamlined features.
|
|||||||
|
|
||||||
~nil~ is an LSP server for nix files.
|
~nil~ is an LSP server for nix files.
|
||||||
|
|
||||||
#+BEGIN_SRC nix :tangle target/base/nil.nix
|
#+BEGIN_SRC nix :tangle target/nil.nix
|
||||||
{pkgs, ...}:
|
{pkgs, ...}:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
@@ -155,7 +151,7 @@ tools. They boost better speed, or simply more streamlined features.
|
|||||||
computers in the world, assuming that you have an out-of-band way to communicate a passphrase
|
computers in the world, assuming that you have an out-of-band way to communicate a passphrase
|
||||||
between them. Once installed, the actual command is ~wormhole~.
|
between them. Once installed, the actual command is ~wormhole~.
|
||||||
|
|
||||||
#+begin_src nix :tangle target/base/magic-wormhole.nix
|
#+begin_src nix :tangle target/magic-wormhole.nix
|
||||||
{pkgs, ...}:
|
{pkgs, ...}:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
@@ -167,46 +163,52 @@ between them. Once installed, the actual command is ~wormhole~.
|
|||||||
These are the other programs I have installed globally. A few (like ~awscli~, ~mysql-client~, etc.)
|
These are the other programs I have installed globally. A few (like ~awscli~, ~mysql-client~, etc.)
|
||||||
are still Shibumi-specific; ideally I'd find another way to install them.
|
are still Shibumi-specific; ideally I'd find another way to install them.
|
||||||
|
|
||||||
#+BEGIN_SRC nix :tangle target/shibumi/other-packages.nix
|
#+BEGIN_SRC nix :tangle target/shibumi.nix
|
||||||
{pkgs, kube, ...}:
|
{lib, pkgs, kube, config, ...}:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
config = lib.mkIf config.jfrikker.shibumi.enable {
|
||||||
aws-iam-authenticator
|
home.packages = with pkgs; [
|
||||||
awscli2
|
aws-iam-authenticator
|
||||||
kube
|
awscli2
|
||||||
kubectl
|
kube
|
||||||
mariadb.client
|
kubectl
|
||||||
openssh
|
mariadb.client
|
||||||
];
|
openssh
|
||||||
|
];
|
||||||
fonts.fontconfig.enable = true;
|
};
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
These programs require a full desktop environment:
|
These programs require a full desktop environment:
|
||||||
|
|
||||||
#+BEGIN_SRC nix :tangle target/desktop/desktop-packages.nix
|
#+BEGIN_SRC nix :tangle target/desktop-packages.nix
|
||||||
{pkgs, ...}:
|
{lib, pkgs, config, ...}:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
config = lib.mkIf config.jfrikker.desktop.enable {
|
||||||
google-chrome
|
home.packages = with pkgs; [
|
||||||
nerd-fonts.jetbrains-mono
|
google-chrome
|
||||||
(iosevka-bin.override { variant = "Aile"; })
|
nerd-fonts.jetbrains-mono
|
||||||
(iosevka-bin.override { variant = "Etoile"; })
|
(iosevka-bin.override { variant = "Aile"; })
|
||||||
(iosevka-bin.override { variant = "SGr-IosevkaTerm"; })
|
(iosevka-bin.override { variant = "Etoile"; })
|
||||||
keymapp
|
(iosevka-bin.override { variant = "SGr-IosevkaTerm"; })
|
||||||
proton-pass
|
keymapp
|
||||||
wireshark
|
proton-pass
|
||||||
];
|
wireshark
|
||||||
|
];
|
||||||
|
|
||||||
|
fonts.fontconfig.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
#+BEGIN_SRC nix :tangle target/shibumi-desktop/desktop-packages.nix
|
#+BEGIN_SRC nix :tangle target/slack.nix
|
||||||
{pkgs, ...}:
|
{lib, pkgs, config, ...}:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
config = lib.mkIf (config.jfrikker.shibumi.enable && config.jfrikker.desktop.enable) {
|
||||||
slack
|
home.packages = with pkgs; [
|
||||||
];
|
slack
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user