Compare commits
3 Commits
963ab766f5
...
3352d73b3f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3352d73b3f | ||
|
|
ecc1d9e4e9 | ||
|
|
8c48d4ed8b |
19
modules_dentritic/features/core/env.nix
Normal file
19
modules_dentritic/features/core/env.nix
Normal file
@ -0,0 +1,19 @@
|
||||
{ self, inputs, ... }:
|
||||
{
|
||||
flake.homeModules.env = { pkgs, lib, ... }: {
|
||||
home = {
|
||||
shellAliases = {
|
||||
drs = "time sudo darwin-rebuild switch --flake ~/Developer/nix/NixOSDots#macOS";
|
||||
nrs = "time sudo nixos-rebuild switch --flake ~/Developer/nix/NixOSDots#nixos";
|
||||
frs = "time sudo nixos-rebuild switch --flake ~/Developer/nix/NixOSDots#framework";
|
||||
lrs = "time sudo nixos-rebuild switch --flake ~/Developer/nix/NixOSDots#light";
|
||||
lars = "time sudo nixos-rebuild switch --flake ~/Developer/nix/NixOSDots#laptop";
|
||||
cdd = "cd ~/Developer/nix/NixOSDots";
|
||||
ncg = "time nix-collect-garbage -d";
|
||||
nso = "time nix store optimise";
|
||||
nfc = "time nix flake check ~/Developer/nix/NixOSDots";
|
||||
nfu = "time nix flake update --flake ~/Developer/nix/NixOSDots";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
33
modules_dentritic/features/core/git.nix
Normal file
33
modules_dentritic/features/core/git.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ self, inputs, ... }: {
|
||||
flake = {
|
||||
homeModules.git = { pkgs, lib, ... }: {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user = {
|
||||
email = "mateialex@outlook.fr";
|
||||
name = "Alexandre";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nixosModules.git = { pkgs, lib, ... }: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
];
|
||||
programs.ssh = {
|
||||
startAgent = true;
|
||||
extraConfig = ''
|
||||
Host github.com
|
||||
IdentityFile ~/.ssh/git
|
||||
Host git.alexdelcamp.fr
|
||||
IdentityFile ~/.ssh/git
|
||||
Port 2222
|
||||
User git
|
||||
'';
|
||||
};
|
||||
services.gnome.gcr-ssh-agent.enable = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
15
modules_dentritic/features/desktop/core/editors.nix
Normal file
15
modules_dentritic/features/desktop/core/editors.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{ self, inputs, ... }:
|
||||
{
|
||||
flake.homeModules.zed = { pkgs, lib, ... }: {
|
||||
programs.zed-editor = {
|
||||
enable = true;
|
||||
extensions = [
|
||||
"nix"
|
||||
];
|
||||
userSettings = {
|
||||
tab_size = 2;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
@ -1,6 +1,10 @@
|
||||
{ self, inputs, ... }:
|
||||
{
|
||||
flake.nixosModules.sysFetch = { pkgs, lib, ... }: {
|
||||
environment.systemPackages = with pkgs; [ fastfetch ];
|
||||
};
|
||||
|
||||
flake.homeModules.sysFetch = { pkgs, lib, ... }: {
|
||||
programs.fastfetch = {
|
||||
enable = true;
|
||||
package = self.packages.${pkgs.stdenv.hostPlatform.system}.myFastfetch;
|
||||
|
||||
@ -21,6 +21,7 @@
|
||||
|
||||
binds = {
|
||||
"Mod+Return".spawn-sh = lib.getExe pkgs.kitty;
|
||||
"Mod+R".spawn-sh = lib.getExe pkgs.hyprlauncher;
|
||||
"Mod+Q".close-window = {};
|
||||
};
|
||||
};
|
||||
|
||||
@ -1,9 +1,28 @@
|
||||
{ self, inputs, ... }:
|
||||
{
|
||||
flake.homeModules.commonHomeConfig = { config, pkgs, inputs, ... }: {
|
||||
imports = [
|
||||
self.homeModules.sysFetch
|
||||
self.homeModules.zed
|
||||
self.homeModules.env
|
||||
self.homeModules.git
|
||||
];
|
||||
|
||||
home = {
|
||||
packages = [ pkgs.hello ];
|
||||
|
||||
|
||||
stateVersion = "25.11"; # Upgrade maybe ?
|
||||
};
|
||||
};
|
||||
|
||||
flake.nixosModules.commonConfig = { config, pkgs, inputs, ...}: {
|
||||
imports = [
|
||||
self.nixosModules.nixConfig
|
||||
self.nixosModules.kernelConfig
|
||||
self.nixosModules.utils
|
||||
self.nixosModules.sysFetch
|
||||
self.nixosModules.git
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@ -4,12 +4,11 @@
|
||||
modules = [
|
||||
self.nixosModules.FW16Config
|
||||
inputs.lanzaboote.nixosModules.lanzaboote
|
||||
|
||||
inputs.home-manager.nixosModules.default
|
||||
];
|
||||
};
|
||||
|
||||
flake.nixosModules.FW16Config = { config, pkgs, inputs, ...}:
|
||||
{
|
||||
flake.nixosModules.FW16Config = { config, pkgs, inputs, ...}: {
|
||||
imports = [
|
||||
self.nixosModules.FW16Hardware
|
||||
self.nixosModules.amd
|
||||
@ -53,12 +52,19 @@
|
||||
alex = {
|
||||
isNormalUser = true;
|
||||
description = "Alexandre Delcamp--Enache";
|
||||
shell= pkgs.zsh;
|
||||
shell = pkgs.zsh;
|
||||
extraGroups = [ "networkmanager" "wheel" "video" "render" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
users = {
|
||||
"alex" = self.homeModules.commonHomeConfig;
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
hyprland = {
|
||||
enable = true;
|
||||
|
||||
@ -1,10 +1,13 @@
|
||||
{ inputs, ... }:
|
||||
{
|
||||
config = {
|
||||
imports = [
|
||||
inputs.home-manager.flakeModules.home-manager
|
||||
];
|
||||
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
"x86_64-darwin"
|
||||
"aarch64-linux"
|
||||
"aarch64-darwin"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user