chunk flake into modules (part 1)

This commit is contained in:
2025-03-23 18:37:32 +01:00
parent f188b9f398
commit cfd21c973d
18 changed files with 233 additions and 122 deletions

View File

@ -1,27 +1,24 @@
{ pkgs, ... }:
let
username = "sadorowo";
homeDirectory = "/home/${username}";
username = "sadorowo";
homeDirectory = "/home/${username}";
in {
imports = [
./packages.nix # Packages to install
./programs.nix # Programs to enable
./theme.nix # System-wide/GTK theme
./packages.nix
./programs.nix
./theme.nix
];
home = {
inherit username homeDirectory;
sessionVariables = {
NIXPKGS_ALLOW_UNFREE = "1";
NIXPKGS_ALLOW_INSECURE = "1";
NIXOS_OZONE_WL = "1";
TZ = "Europe/Warsaw";
LD_LIBRARY_PATH="${pkgs.stdenv.cc.cc.lib}/lib:$LD_LIBRARY_PATH";
};
};
programs.home-manager.enable = true;
home.stateVersion = "24.11"; # DO NOT change this unless you know what you're doing!
home.stateVersion = "24.11";
}

View File

@ -2,11 +2,17 @@
{
imports = [
../../modules/home-manager/darkman.nix
inputs.ags.homeManagerModules.default
];
modules.darkman = {
enable = true;
customLightModeScript = "$HOME/.config/hypr/scripts/random-wallpaper.sh";
customDarkModeScript = "$HOME/.config/hypr/scripts/random-wallpaper.sh";
};
home.packages = with pkgs; [
hyprland hyprlock hypridle hyprshot wl-clipboard cliphist swww
pywal pywalfox-native
(python3.withPackages (py: with py; [
@ -21,8 +27,6 @@
}))
jq
bluez
dconf
starship
element-desktop
firefox-beta-bin
@ -36,7 +40,6 @@
fish
anydesk
fastfetch
greetd.greetd greetd.tuigreet
playerctl
adwaita-icon-theme
android-tools