Changing the structure of the configuration

This commit is contained in:
Lyes Saadi 2024-05-04 21:48:55 +02:00
parent be8c206e60
commit c06849e70f
No known key found for this signature in database
GPG key ID: 17418538BAA17767
12 changed files with 2 additions and 24 deletions

View file

@ -0,0 +1,31 @@
{ ... }:
{
# Git config
programs.git = {
enable = true;
userName = "Lyes Saadi";
userEmail = "dev@lyes.eu";
signing = {
key = "17418538BAA17767";
signByDefault = true;
};
extraConfig = {
code.editor = "nvim";
merge.tool = "nvim";
color.ui = true;
init.defaultBranch = "main";
includeIf = {
"gitdir:~/Documents/fedpkg/" = {
path = "~/Documents/fedpkg/.gitconfig_include";
};
};
};
};
# Protonup config
home.sessionVariables = {
STEAM_EXTRA_COMPAT_TOOLS_PATHS =
"\${HOME}/.steam/root/compatibilitytools.d";
};
}

View file

@ -0,0 +1,86 @@
{ pkgs, lib, ... }:
let
tex = (pkgs.texlive.combine { inherit (pkgs.texlive)
scheme-medium
lettre
wallpaper
lastpage
hyphenat
moresize
fontawesome5
montserrat
titlesec
ly1;
});
in {
users.users.lyes.packages = with pkgs; [
# Software
firefox
thunderbird
discord
mpv
vlc
syncplay
gnome.gnome-tweaks
gnome-extension-manager
protonmail-bridge-gui
# Games
# citra-canary
minecraft
vvvvvv
# Utilities
home-manager
nix-index
direnv
starship
dropbox
yt-dlp
wl-clipboard
# Customization
adw-gtk3
paper-icon-theme
gnomeExtensions.gsconnect
# Programming
git
git-lfs
vscode
ocaml
ledit
nodejs
nil
# Containers
toolbox
distrobox
# Note taking
setzer
tex
pandoc
# Multimedia
pipewire.dev
pulseaudio
libopus
];
# Flatpaks
services.flatpak.remotes = lib.mkOptionDefault [{
name = "gnome-nightly";
location = "https://nightly.gnome.org/gnome-nightly.flatpakrepo";
}];
services.flatpak.packages = [
"com.github.muriloventuroso.pdftricks"
"app.drey.Damask"
"dev.tchx84.Gameeky"
"dev.tchx84.Gameeky.FreedomValley"
"dev.tchx84.Gameeky.Blasterman"
"dev.tchx84.Gameeky.Wackman"
];
}

View file

@ -0,0 +1,32 @@
{ pkgs, home-manager, ... }:
{
imports =
[
./packages.nix
home-manager.nixosModules.default
];
users.users.lyes = {
description = "Lyes Saadi";
home = "/home/lyes";
isNormalUser = true;
initialHashedPassword = ""; # Set for vms and initial installations
extraGroups = [ "wheel" "networkmanager" ];
shell = pkgs.fish;
};
home-manager.useUserPackages = true;
home-manager.useGlobalPkgs = true;
home-manager.users.lyes = { pkgs, ... }: {
imports =
[
./home.nix
];
home.username = "lyes";
home.homeDirectory = "/home/lyes";
home.stateVersion = "22.11";
};
}