Modular things!
This commit is contained in:
+16
@@ -40,3 +40,19 @@ as source to BASH. before we install
|
|||||||
- NIX will copy each ORG file to the 'extras' folder
|
- NIX will copy each ORG file to the 'extras' folder
|
||||||
- Entanglement should happen in tmpfolder place (IDEALLY tmp buff)
|
- Entanglement should happen in tmpfolder place (IDEALLY tmp buff)
|
||||||
- Can I do this by tangling a big org thing for the features? Yes? No? Probably not!
|
- Can I do this by tangling a big org thing for the features? Yes? No? Probably not!
|
||||||
|
|
||||||
|
* usage tips
|
||||||
|
|
||||||
|
If you want nix rpel
|
||||||
|
|
||||||
|
#+begin_src bash
|
||||||
|
nix repl
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
Then in this directory:
|
||||||
|
|
||||||
|
#+begin_src nix
|
||||||
|
:lf .
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
You'll get acces to 'lib' and such. (It evals here)
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
#https://xeiaso.net/talks/asg-2023-nixos/ example
|
||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.azos.gpgagent;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.azos.gpgagent.enable = lib.mkEnableOption "Enables AZOS GPG agent";
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
home.packages = [ pkgs.gnupg ];
|
||||||
|
home.file.".gnupg/gpg-agent.conf".source = ./gpg-agent.conf;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
# You can also split up your configuration and import pieces of it here:
|
# You can also split up your configuration and import pieces of it here:
|
||||||
# ./nvim.nix
|
# ./nvim.nix
|
||||||
|
./gpg-agent.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
@@ -47,12 +48,23 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
azos.gpgagent.enable = true;
|
||||||
|
|
||||||
# TODO: Set your username
|
# TODO: Set your username
|
||||||
home = {
|
home = {
|
||||||
username = "aner";
|
username = "aner";
|
||||||
homeDirectory = "/home/aner";
|
homeDirectory = "/home/aner";
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# config = {
|
||||||
|
# #My config stuff
|
||||||
|
# azos.gpg-agent.enable = true;
|
||||||
|
# };
|
||||||
|
# home.config.azos.gpg-agent.enable = true;
|
||||||
|
|
||||||
|
|
||||||
# Add stuff for your user as you see fit:
|
# Add stuff for your user as you see fit:
|
||||||
# programs.neovim.enable = true;
|
# programs.neovim.enable = true;
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
@@ -72,6 +84,7 @@
|
|||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
programs.git.enable = true;
|
programs.git.enable = true;
|
||||||
|
|
||||||
|
|
||||||
# Nicely reload system units when changing configs
|
# Nicely reload system units when changing configs
|
||||||
systemd.user.startServices = "sd-switch";
|
systemd.user.startServices = "sd-switch";
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,4 @@
|
|||||||
# These should be stuff you would like to share with others, not your personal configurations.
|
# These should be stuff you would like to share with others, not your personal configurations.
|
||||||
{
|
{
|
||||||
# List your module files here
|
# List your module files here
|
||||||
# gpg-agent = import ./gpg-agent.nix;
|
|
||||||
# config.azos.gpg-agent.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
#https://xeiaso.net/talks/asg-2023-nixos/ example
|
|
||||||
{ lib, config, pkgs, ... }:
|
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let cfg = config.azos.gpg-agent;
|
|
||||||
in {
|
|
||||||
cfg.enable = mkEnableOption "Enables AZOS GPG agent";
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
programs.gnupg.agent.enable = true;
|
|
||||||
home.file.".gnupg/gpg-agent.conf".source = ./gpg-agent.conf;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -15,7 +15,6 @@
|
|||||||
x = 1280;
|
x = 1280;
|
||||||
y = 1024;
|
y = 1024;
|
||||||
};
|
};
|
||||||
virtualisation.diskImage = "/dev/null";
|
|
||||||
virtualisation.qemu.options = [
|
virtualisation.qemu.options = [
|
||||||
# Better display option
|
# Better display option
|
||||||
"-vga virtio"
|
"-vga virtio"
|
||||||
|
|||||||
Reference in New Issue
Block a user