Reorganized

This commit is contained in:
2024-08-23 05:39:44 +03:00
parent e25d8a17cf
commit 860eba085f
6 changed files with 27 additions and 13 deletions
+4 -1
View File
@@ -1 +1,4 @@
result result
.#*
*.qcow2
+13
View File
@@ -0,0 +1,13 @@
#https://xeiaso.net/talks/asg-2023-nixos/ example
{ lib, config, pkgs, ... }:{
imports = [./gpg-agent.nix
./name.nix];
#OPTIONS
options.azos.name = lib.mkOption{
default = "YOUR NAME HERE";
type = lib.types.str;
description = "Your full name.";
};
}
+4
View File
@@ -0,0 +1,4 @@
#https://xeiaso.net/talks/asg-2023-nixos/ example
{ lib, config, pkgs, ... }:{
home.file."name.txt".text = ''${config.azos.name}'';
}
+6 -12
View File
@@ -18,7 +18,10 @@
# 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 # ./gpg-agent.nix
# ./options.nix
# ./name.nix
./base
]; ];
nixpkgs = { nixpkgs = {
@@ -49,26 +52,18 @@
}; };
azos.gpgagent.enable = true; azos.gpgagent.enable = true;
azos.name = "Aner Zakobar";
# 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; [
steam # steam
emacs emacs
pandoc pandoc
offlineimap #emailing offlineimap #emailing
@@ -84,7 +79,6 @@
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";