this is the error I am getting when I run home manager switch and to my understanding it does have the “default” attribute
error:
… while calling the 'derivationStrict' builtin
at /builtin/derivation.nix:9:12: (source not available)
… while evaluating derivation 'home-manager-generation'
whose name attribute is located at /nix/store/0g53xyh39z3y90p4d8r341wbqyjy1zhl-source/pkgs/stdenv/generic/make-derivation.nix:348:7
… while evaluating attribute 'buildCommand' of derivation 'home-manager-generation'
at /nix/store/0g53xyh39z3y90p4d8r341wbqyjy1zhl-source/pkgs/build-support/trivial-builders/default.nix:98:16:
97| enableParallelBuilding = true;
98| inherit buildCommand name;
| ^
99| passAsFile = [ "buildCommand" ]
(stack trace truncated; use '--show-trace' to show the full trace)
error: attribute 'default' missing
at /nix/store/1rnnsw1440l1wbmh7cybq0f76dwywapc-source/home.nix:67:5:
66| ] ++ [
67| inputs.orca.packages.${system}.default
| ^
68| ]);
flake.nix
# flake.nix
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "github:hyprwm/Hyprland";
orca = { url = "github:ovlach/nix-orca-slicer"; };
};
outputs = {nixpkgs, home-manager, hyprland, ...}@inputs: {
homeConfigurations."histic@nixos" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
modules = [
hyprland.homeManagerModules.default
{wayland.windowManager.hyprland.enable = true;}
./home.nix
./hypr.nix
];
};
};
}
home.nix
{ config, pkgs, lib, inputs, system, ... }:
let inherit (inputs) orca;
in {
nixpkgs = {
config = {
allowUnfree = true;
permittedInsecurePackages = [
"electron-25.9.0"
];
};
};
home.username = "histic";
home.homeDirectory = "/home/histic";
xdg.cacheHome = "/home/histic/.cache";
xdg.configHome = "/home/histic/.config";
xdg.dataHome = "/home/histic/.local/share";
home.stateVersion = "23.11";
home.packages = with pkgs; ([
firefox
swayidle
swaylock
udiskie
stremio
hyprpaper
parsec-bin
pavucontrol
killall
wineWowPackages.waylandFull
bottles
nnn
thonny
steam
libvirt
steam-run
git
obsidian
discord
cozette
spleen
pipewire
wireplumber
sublime
webcord-vencord
inconsolata
qflipper
cliphist
pamixer
kitty
tofi
qt5.qtwayland
rustup
libvirt
virt-manager-qt
qt6.qtwayland
webkitgtk
eww-wayland
] ++ [
orca.packages.${system}.default
]);
fonts = {
fontconfig = {
enable = lib.mkForce true;
};
};
home.file = {
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
# # symlink to the Nix store copy.
# ".screenrc".source = dotfiles/screenrc;
# # You can also set the file content immediately.
# ".gradle/gradle.properties".text = ''
# org.gradle.console=verbose
# org.gradle.daemon.idletimeout=3600000
# '';
};
home.sessionVariables = {
EDITOR = "hx";
};
programs = {
home-manager.enable = true;
zsh = {
enable = true;
enableCompletion = true;
enableAutosuggestions = true;
history = {
expireDuplicatesFirst = true;
};
};
};
xdg.enable = true;
services = {
syncthing.enable = true;
swayidle = {
enable = true;
systemdTarget = "hyprland=session.target";
timeouts = [
{
timeout = 300;
command = "${pkgs.swaylock}/bin/swaylock -fFu -c 1a1b26f2";
}
{
timeout = 600;
command = "${pkgs.hyprland}/bin/hyprctl dispatch dpms off";
resumeCommand = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on";
}
];
events = [
{
event = "before-sleep";
command = "${pkgs.swaylock}/bin/swaylock -fFu -c 1a1b26f2";
}
{
event = "lock";
command = "${pkgs.swaylock}/bin/swaylock -fFu -c 1a1b26f2";
}
];
};
};
}