77 lines
1.7 KiB
Nix
77 lines
1.7 KiB
Nix
{ inputs, pkgs, ... }:
|
|
|
|
let
|
|
wallpaper = ./wallpapers/clouds.png;
|
|
init = pkgs.pkgs.writeShellScriptBin "hyprland-init" ''
|
|
${pkgs.swww}/bin/swww-daemon &> /tmp/swww.log &
|
|
|
|
while ! swww query &> /dev/null; do
|
|
sleep 0.1
|
|
done
|
|
|
|
${pkgs.swww}/bin/swww img ${wallpaper}
|
|
'';
|
|
vars = import ./vars.nix;
|
|
in
|
|
{
|
|
users.users."${vars.user}" = {
|
|
isNormalUser = true;
|
|
createHome = true;
|
|
home = "/home/${vars.user}";
|
|
description = vars.fullName;
|
|
hashedPassword = "***REMOVED***";
|
|
extraGroups = [ "wheel" ];
|
|
linger = true;
|
|
uid = 1000;
|
|
};
|
|
|
|
systemd.tmpfiles.rules = [ "d /persist/home/${vars.user} 0700 ${vars.user} users -" ];
|
|
|
|
programs.hyprland.enable = true;
|
|
|
|
home-manager.users."${vars.user}" = {
|
|
imports = [
|
|
inputs.impermanence.nixosModules.home-manager.impermanence
|
|
inputs.stylix.homeManagerModules.stylix
|
|
./configs/stylix.nix
|
|
./configs/hyprland.nix
|
|
./configs/zsh.nix
|
|
./configs/kitty.nix
|
|
./configs/firefox.nix
|
|
./configs/git.nix
|
|
];
|
|
|
|
home = {
|
|
persistence."/persist/home/${vars.user}" = {
|
|
directories = [
|
|
"Documents"
|
|
"Downloads"
|
|
"Music"
|
|
"Pictures"
|
|
"Videos"
|
|
"Templates"
|
|
"VMs"
|
|
"git"
|
|
".mozilla"
|
|
];
|
|
files = [
|
|
".zsh_history"
|
|
];
|
|
allowOther = true;
|
|
};
|
|
|
|
packages = with pkgs; [
|
|
rofi-wayland
|
|
swww
|
|
];
|
|
|
|
stateVersion = "24.05";
|
|
};
|
|
|
|
stylix.image = wallpaper;
|
|
wayland.windowManager.hyprland.settings.exec-once = "${init}/bin/hyprland-init";
|
|
|
|
systemd.user.startServices = "sd-switch";
|
|
};
|
|
}
|