Working on making assets/conf obsolete

This commit is contained in:
2026-03-02 18:12:22 +01:00
parent 2f5aa6ce98
commit 58a049c93a
2 changed files with 23 additions and 14 deletions
+18 -10
View File
@@ -702,14 +702,6 @@ We also add a devshell that makes editing this repository easier in emacs.
<<flake-config-module>>
<<flake-home-module>>
catppuccin.nixosModules.catppuccin # theme
# Copying ./assets/config/.config to ~/.config
# Ensure the script is executable and available
environment.systemPackages = [ pkgs.bash ];
# Add the activation script
system.activationScripts.recreateConfig = lib.mkAfter "setupNetworking" ''
${self}/assets/scripts/recreate_config.sh
'';
];
specialArgs = {
@@ -1629,6 +1621,7 @@ This module will import all necessities.
./dev/starship.nix
./dev/zsh.nix
./dev/emacs
./copy_config.nix
];
<<home-user>>
@@ -2336,7 +2329,7 @@ Comments describe the emacs package and what it does.
}
#+end_src
** Early Initialization
** Early EMACS Initialization
There are some emacs settings that can be configured before the gui shows up.
And some of them help increase performance and let the gui show up that much faster.
These are listed here.
@@ -2436,7 +2429,7 @@ These are listed here.
;;; early-init.el ends here
#+end_src
** Initialization
** EMACS Initialization
Now starts the main emacs configuration.
#+begin_src emacs-lisp :tangle home/dev/emacs/init.el :mkdirp yes
;;; package --- Summary - My minimal Emacs init file -*- lexical-binding: t -*-
@@ -2922,6 +2915,21 @@ This is mostly about configuring the monitor. And laptop specific utilities.
}
#+end_src
* Copy Files 2 homefolder
This makes sure all ./assets/copy_stuff ends up in the right folder
#+begin_src nix :tangle home/dev/zsh.nix :noweb tangle :mkdirp yes.
{ config, pkgs, lib, ... }:
{
# Ensure the script is executable and available
environment.systemPackages = [ pkgs.bash ];
# Add the activation script
system.activationScripts.recreateConfig = lib.mkAfter "setupNetworking" ''
${config.flakeRoot.outPath}/assets/scripts/recreate_config.sh
'';
}
#+end_src
* README Utils
*** Headers
This script adds a =DO NOT MODIFY= header to all the generated nix files.
+5 -4
View File
@@ -35,7 +35,8 @@ machines = [
pkgs = import nixpkgs {
inherit (user) system;
};
in
in!1!1Salou2@
CV
{
nixosConfigurations = builtins.listToAttrs (
builtins.map (machine: {
@@ -50,12 +51,12 @@ in
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {
inherit user inputs;
flakeRoot.outPath= inputs.self;
};
home-manager.backupFileExtension = "backup";
home-manager.users.${user.username} = {
imports = [
@@ -64,7 +65,7 @@ in
];
};
}
catppuccin.nixosModules.catppuccin # theme
# Copying ./assets/config/.config to ~/.config