begun making my home-manager config modular

This commit is contained in:
Emile Clark-Boman 2024-11-10 23:10:51 +10:00
parent 97b344eb03
commit 4fcc76a32c
23 changed files with 1586 additions and 947 deletions

View file

@ -1,8 +1,13 @@
{
pkgs,
inputs,
lib,
...
}: let
#home-manager = builtins.fetchTarball {
# url = "https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz";
# sha256 = "00wp0s9b5nm5rsbwpc1wzfrkyxxmqjwsc1kcibjdbfkh69arcpsn";
#};
home-manager = builtins.fetchTarball {
url = "https://github.com/nix-community/home-manager/archive/master.tar.gz";
sha256 = "19w63qccz78v0spx03911z98w1bvlxvd07hb0ma14a4vdzi4ninj";
@ -38,6 +43,13 @@ in {
#efiInstallAsRemovable = true; # in case canTouchEfiVariables doesn't work on this system
device = "nodev";
};
# GitHub: vinceliuice/grub2-themes
grub2-theme = {
enable = true;
theme = "whitesur"; # sylish, vimix, or whitesur
footer = true;
customResolution = "1920x1080"; # Optional: Set a custom resolution
};
};
# Set your time zone.
@ -67,10 +79,11 @@ in {
services = {
# Set display manager (login screen)
displayManager = {
# sddm relies on pkgs.libsForQt5.qt5.qtgraphicaleffects
sddm = {
enable = true;
wayland.enable = true; # enable experimental sddm support for wayland
theme = "${import ./sddm-theme-corners.nix {inherit pkgs;}}";
theme = "corners";
};
defaultSession = "hyprland";
};
@ -114,6 +127,11 @@ in {
firefox
nitch
starfetch
# flatpak requires gnome-software
# for graphical applications
flatpak
gnome.gnome-software
];
};
@ -126,7 +144,7 @@ in {
];
};
# # programming/development account
# # This is the user account for servers
# dev = {
# isNormalUser = true;
# extraGroups = ["wheel"];
@ -149,6 +167,7 @@ in {
users.me = import ../../homes/me;
sharedModules = [
inputs.nixcord.homeManagerModules.nixcord
inputs.ags.homeManagerModules.default
];
};
@ -163,6 +182,10 @@ in {
wl-clipboard # clipboard for wayland
kcalc # TEMP: (FOR TESTING)
(callPackage ./sddm-theme-corners.nix {}).sddm-theme-corners
# dependencies for my sddm theme:
pkgs.libsForQt5.qt5.qtgraphicaleffects
python311 # I use 3.11 since it's in a pretty stable state now
poetry # python dependency management and packaging
@ -180,6 +203,7 @@ in {
git
brightnessctl
acpi
vim
# Unix Commands
wget

View file

@ -1,6 +1,6 @@
{pkgs}: {
sddm-theme-corners = pkgs.stdenv.mkDerivation rec {
pname = "sddm-theme-corners";
name = "sddm-theme-corners";
#version = "1.0";
#dontBuild = true;
installPhase = ''