Working on making assets/conf obsolete
This commit is contained in:
+18
-10
@@ -702,14 +702,6 @@ We also add a devshell that makes editing this repository easier in emacs.
|
|||||||
<<flake-config-module>>
|
<<flake-config-module>>
|
||||||
<<flake-home-module>>
|
<<flake-home-module>>
|
||||||
catppuccin.nixosModules.catppuccin # theme
|
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 = {
|
specialArgs = {
|
||||||
@@ -1629,6 +1621,7 @@ This module will import all necessities.
|
|||||||
./dev/starship.nix
|
./dev/starship.nix
|
||||||
./dev/zsh.nix
|
./dev/zsh.nix
|
||||||
./dev/emacs
|
./dev/emacs
|
||||||
|
./copy_config.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
<<home-user>>
|
<<home-user>>
|
||||||
@@ -2336,7 +2329,7 @@ Comments describe the emacs package and what it does.
|
|||||||
}
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Early Initialization
|
** Early EMACS Initialization
|
||||||
There are some emacs settings that can be configured before the gui shows up.
|
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.
|
And some of them help increase performance and let the gui show up that much faster.
|
||||||
These are listed here.
|
These are listed here.
|
||||||
@@ -2436,7 +2429,7 @@ These are listed here.
|
|||||||
;;; early-init.el ends here
|
;;; early-init.el ends here
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Initialization
|
** EMACS Initialization
|
||||||
Now starts the main emacs configuration.
|
Now starts the main emacs configuration.
|
||||||
#+begin_src emacs-lisp :tangle home/dev/emacs/init.el :mkdirp yes
|
#+begin_src emacs-lisp :tangle home/dev/emacs/init.el :mkdirp yes
|
||||||
;;; package --- Summary - My minimal Emacs init file -*- lexical-binding: t -*-
|
;;; 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
|
#+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
|
* README Utils
|
||||||
*** Headers
|
*** Headers
|
||||||
This script adds a =DO NOT MODIFY= header to all the generated nix files.
|
This script adds a =DO NOT MODIFY= header to all the generated nix files.
|
||||||
|
|||||||
@@ -35,7 +35,8 @@ machines = [
|
|||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit (user) system;
|
inherit (user) system;
|
||||||
};
|
};
|
||||||
in
|
in!1!1Salou2@
|
||||||
|
CV
|
||||||
{
|
{
|
||||||
nixosConfigurations = builtins.listToAttrs (
|
nixosConfigurations = builtins.listToAttrs (
|
||||||
builtins.map (machine: {
|
builtins.map (machine: {
|
||||||
@@ -50,12 +51,12 @@ in
|
|||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
|
|
||||||
home-manager.extraSpecialArgs = {
|
home-manager.extraSpecialArgs = {
|
||||||
inherit user inputs;
|
inherit user inputs;
|
||||||
flakeRoot.outPath= inputs.self;
|
flakeRoot.outPath= inputs.self;
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.backupFileExtension = "backup";
|
home-manager.backupFileExtension = "backup";
|
||||||
home-manager.users.${user.username} = {
|
home-manager.users.${user.username} = {
|
||||||
imports = [
|
imports = [
|
||||||
@@ -64,7 +65,7 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
catppuccin.nixosModules.catppuccin # theme
|
catppuccin.nixosModules.catppuccin # theme
|
||||||
|
|
||||||
# Copying ./assets/config/.config to ~/.config
|
# Copying ./assets/config/.config to ~/.config
|
||||||
|
|||||||
Reference in New Issue
Block a user