Something went wrong. Try again.
A nix-first approach to my computing
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344{ config, inputs, withSystem, ...}: let username = "emilia";
homeModules = [ ({pkgs, ...}: { home.username = username; home.homeDirectory = if pkgs.stdenv.hostPlatform.isDarwin then "/Users/${username}" else "/home/${username}"; home.stateVersion = "25.11"; })
config.flake.homeModules.dev config.flake.homeModules.shell ];in { flake.nixosModules.${username} = {pkgs, ...}: { imports = [inputs.home-manager.nixosModules.home-manager];
users.users.${username} = { isNormalUser = true; extraGroups = ["wheel"]; shell = pkgs.fish; };
home-manager.useGlobalPkgs = true;
home-manager.users.${username}.imports = homeModules; };
# I use a standalone configuration on macOS, no nix-darwin flake.homeConfigurations.${username} = withSystem "aarch64-darwin" ({pkgs, ...}: inputs.home-manager.lib.homeManagerConfiguration { inherit pkgs; modules = homeModules ++ [config.flake.homeModules.desktop]; });}